curl compile error

These are old archives. They are kept for historic purposes only.
DeMiNe0
Posts: 50
Joined: Sat Feb 28, 2004 4:11 am

curl compile error

Post by DeMiNe0 »

gmake[1]: Entering directory `/usr/home/digtox/shell/Unreal3.2/src'
gcc -I../include -I/usr/home/digtox/shell/Unreal3.2/extras/regexp/include -pipe
-g -O2 -funsigned-char -I/usr/local/ssl/include -DZIP_LINKS -DUSE_LIBCURL
-export-dynamic -L/usr/local/ssl/lib -c url.c
url.c: In function `url_do_transfers_async':
url.c:320: `CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
url.c:320: (Each undeclared identifier is reported only once
url.c:320: for each function it appears in.)
gmake[1]: *** [url.o] Error 1
gmake[1]: Leaving directory `/usr/home/digtox/shell/Unreal3.2/src'
gmake: *** [build] Error 2


i do have libcurl installed.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Yes you do, however, it's an old version. Try getting the latest version.
-- codemastr
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Curl Install

Post by jewles »

A lot of people are having problems with with curl and ares...

download this script

http://source.webworkadmin.com/curlinstall.sh
chmod 700 curlinstall.sh
./curlinstall.sh
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
troyb
Posts: 5
Joined: Mon Apr 12, 2004 10:04 pm

Post by troyb »

Hello everyone,

Im having the exact same error listed above however:

The file which you have listed is not currently available. Also Im using FreeBSD if thats of any consequence.

Regards,

Troyb
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Curl Install

Post by jewles »

I'm sorry, the script was moved....

here is the new location

source.webworkadmin.com/IRCd/UnrealIRCd/curlinstall.sh
chmod 700 curlinstall.sh
sh curlinstall.sh
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Reason a lot of people have trouble installing recently is logical... The instructions shipped with RC2 do no longer apply since ares got renamed, moved it's files, etc... Of course INSTALL.REMOTEINC and ./curlinstall have all been updated in CVS (long ago). Perhaps I should temporary add a FAQ entry for this till 3.2 is out ;).
troyb
Posts: 5
Joined: Mon Apr 12, 2004 10:04 pm

Post by troyb »

Great,

Until then could you post some sort of quick step by step guide so we can get through this if you have time.

Regards,

Troyb
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

curlinstall script

Post by jewles »

The Script that is included with Unreal doesn't work because it uses

./configure --prefix=$HOME/ares && make && make install
and
make && make install

instead of ./configure --prefix=$HOME/ares && gmake && gmake install
and
gmake && gmake install

which seems to work... As far as I understood codemastr figured this out a while back when Unreal3.2RCfix was released...
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
troyb
Posts: 5
Joined: Mon Apr 12, 2004 10:04 pm

Post by troyb »

Sorry no dice!

I still get this error even after editing curlinstall

su-2.05b$ gmake
Building src
gmake[1]: Entering directory `/usr/home/sbm2/Unreal3.2/src'
gcc -I../include -I/home/sbm2/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -I/usr/local/ssl/include -DZIP_LINKS -I/home/sbm2/curl/include -DUSE_LIBCURL -export-dynamic -L/usr/local/ssl/lib -c url.c
url.c: In function `url_do_transfers_async':
url.c:320: `CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
url.c:320: (Each undeclared identifier is reported only once
url.c:320: for each function it appears in.)
gmake[1]: *** [url.o] Error 1
gmake[1]: Leaving directory `/usr/home/sbm2/Unreal3.2/src'
gmake: *** [build] Error 2
su-2.05b$


Hopefully you can help with this !

Regards,

Troyb
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

What version of libcurl do you have? Seems like the version you are installing is too old.
-- codemastr
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

jewles: well if you found a bug then you should report it on http://bugs.unrealircd.org/
Else your bug is not "official" (or however you'll call it).

For example I don't read this forum every day, certainly don't read all topics, etc. Same applies for complaing on IRC etc... It sucks :/.
With the bugtracker we get immediate notification of bugs and when we want to fix some bugs we just look at the list, we cannot go search in forums, irc logs, mailinglists, etc for "the rest".

(That's general talk, not specificly to you ;p).
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

To Syzop:
jewles: well if you found a bug then you should report it on http://bugs.unrealircd.org/
Else your bug is not "official" (or however you'll call it).
As far as I know it's the curl problems aren't related to unreal as much just the "curlinstall" script was incurrectly written. And (more speculation, I think codemastr fixed this problem in the next release) I will however post the problem on bugs.unrealircd.org.

to troyb: Did you try using the "Unofficial Curl Install Script"? http://unreal.phpmemx.net/forums/viewtopic.php?t=183 try the directions on that page and if it has the same problem please let us know so I can fix the script.[/quote]
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
troyb
Posts: 5
Joined: Mon Apr 12, 2004 10:04 pm

Post by troyb »

Hey All,

Im back again, i tried that script too without success, it works fine without remote includes but for this purpose its a necessity any help would be appreciated. Also it seems that an entire ISP has been blocked on the support server which does not make things easy.

Regards,

Troy B
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

troyb, if you ignore me this time, I'm just going to close the thread. WHAT VERSION OF LIBCURL ARE YOU USING?

I don't care what script you used, whether it works without remote includes, etc. Just answer the questions you are asked, then we can help you.

The error message pasted here has _nothing_ to do with the install script. It has to do with what version of libcurl you are using.
-- codemastr
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Jewles: Well the script is shipped with Unreal, so if it has a bug or is broken we would like to fix it. Curl developers don't have access to it ;). Oh and no, the latest './curlinstall' uses make && make install, I checked this before posting of course.

troyb: Just tested it with curl 7.11.1 and c-ares 1.2.0 and it worked fine here with latest CVS, this is (similar to) what I did:

Code: Select all

cd /tmp
wget http://daniel.haxx.se/projects/c-ares/c-ares-1.2.0.tar.gz
tar xzf c-ares-1.2.0.tar.gz
wget http://curl.haxx.se/download/curl-7.11.1.tar.gz
tar xzf curl-7.11.1.tar.gz
cd -
./curlinstall /tmp/c-ares-1.2.0 /tmp/curl-7.11.1
Post Reply