Compile Error

These are old archives. They are kept for historic purposes only.
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Compile Error

Post by bchacker »

Ok, This is my problem. I type the make command an after a bit I get this error:

Code: Select all

u36218093:~/irc > make
Building src
make[1]: Entering directory `/homepages/15/d99530129/htdocs/irc/src'
gcc -I../include -I/kunden/homepages/15/d99530129/htdocs/irc/extras/regexp/include -pipe -g -O2 -funsigned-char  -DUSE_LIBCURL -export-dynamic   -c url.c
url.c: In function `url_do_transfers_async':
url.c:328: `CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
url.c:328: (Each undeclared identifier is reported only once
url.c:328: for each function it appears in.)
make[1]: *** [url.o] Error 1
make[1]: Leaving directory `/homepages/15/d99530129/htdocs/irc/src'
make: *** [build] Error 2
Now I know this isnt a CHMOD problem because two other files are inserted in there. Please help me. I want to have this up for my site at the unvailing in January. Everything seems fine with installataion except for this SOB.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Did you install libcurl? (Read INSTALL.REMOTEINC)

*edit* on second thought, if you didn't why wouldn't it have the "no such include file" type errors? :/ */edit*
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Did you install libcurl? (Read INSTALL.REMOTEINC)
*edit* on second thought, if you didn't why wouldn't it have the "no such include file" type errors? :/ */edit*
Because he is using a (old) stock version of curl (like a rpm/deb/.. package), instead of reading INSTALL.REMOTEINC and installing curl+c-ares properly ;).
[CURLINFO_RESPONSE_CODE existed already before we first released our unrealircd w/remote includes version ;p]
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Post by bchacker »

I read and followed all the directions in INSTALL.REMOTEINC. I downloaded both the newest of ares and curl. IDK if I was supposesd to scroll down and download a different curl. Plus a lot of the files copied except that one.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

That error only occurs if you have an old/outdated libcurl.
-- codemastr
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Post by bchacker »

Then which curl should I download?
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Unrelated, but.. it seems your IRC server is in a public www directory?? That doesn't sound too good :P
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Post by bchacker »

1: There will be only a maximum of 5 users on there at once
2: It has its own folder & own subdomain that is seperate from the www domain.

I would really like to put unrealirc on my server so please tell me which of everthing I need to download.
mikeszewil
Posts: 4
Joined: Tue Dec 28, 2004 3:16 pm
Location: PL
Contact:

Post by mikeszewil »

bryan, i hope this gets working :D
mikeszewil

THE IRC GEEK
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Post by bchacker »

Thanks Mike
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Post by bchacker »

OK I ran it again and here is what I got:

Code: Select all

gcc -I../include -I/kunden/homepages/15/d99530129/htdocs/irc/extras/regexp/include -pipe -g -O2 -funsigned-char  -DUSE_LIBCURL -export-dynamic   -c url.c
url.c: In function `url_do_transfers_async':
url.c:328: `CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
url.c:328: (Each undeclared identifier is reported only once
url.c:328: for each function it appears in.)
make[1]: *** [url.o] Error 1
make[1]: Leaving directory `/homepages/15/d99530129/htdocs/irc/src'
make: *** [build] Error 2
And I downloaded both 7.12.3 of Curl (latest), and 1.2.1 of C-Ares (latest). This isnt a old version error.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Then you specified the wrong path when you configured Unreal. Otherwise, you would not get that error.
-- codemastr
bchacker
Posts: 9
Joined: Sat Dec 25, 2004 2:17 am

Post by bchacker »

Then how come 2 other files in that dir were created and a bunch of other ones were
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

What codemastr means (I think) is that you did not supply the correct path to curl during ./Config... I too, don't see any such thing (there's no -I in your 'make' paste thingies).
Good idea to try it all again:

Code: Select all

make clean
./Config
[now answer Yes to curl and specify the correct full path, or just answer no if you don't want curl / remote includes]
make
mikeszewil
Posts: 4
Joined: Tue Dec 28, 2004 3:16 pm
Location: PL
Contact:

Post by mikeszewil »

here's something i saw

/kunden/homepages/15/d99530129/htdocs/irc/extras/regexp/include -pipe -g

So, since there is no space between the i and the data, i think its taking -pipe for the url

i wounder if its that :?:

But it may be a good idea to make sure thats the right path.
mikeszewil

THE IRC GEEK
Post Reply