Page 1 of 2

curl compile error

Posted: Fri Apr 02, 2004 6:14 pm
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.

Posted: Fri Apr 02, 2004 8:22 pm
by codemastr
Yes you do, however, it's an old version. Try getting the latest version.

Curl Install

Posted: Sat Apr 03, 2004 12:48 am
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

Posted: Mon Apr 12, 2004 10:07 pm
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

Curl Install

Posted: Mon Apr 12, 2004 10:24 pm
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

Posted: Mon Apr 12, 2004 10:51 pm
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 ;).

Posted: Tue Apr 13, 2004 2:41 am
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

curlinstall script

Posted: Tue Apr 13, 2004 11:00 am
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...

Posted: Tue Apr 13, 2004 3:38 pm
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

Posted: Tue Apr 13, 2004 4:36 pm
by codemastr
What version of libcurl do you have? Seems like the version you are installing is too old.

Posted: Wed Apr 14, 2004 12:28 am
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).

Posted: Wed Apr 14, 2004 10:56 am
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]

Posted: Wed Apr 14, 2004 8:52 pm
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

Posted: Wed Apr 14, 2004 9:54 pm
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.

Posted: Wed Apr 14, 2004 11:03 pm
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