View Issue Details

IDProjectCategoryView StatusLast Update
0001458unrealinstallingpublic2004-01-02 04:25
Reportermustapha88 Assigned Tocodemastr 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSRedHatOS Version8.0/8.1
Product Version3.2-beta19 
Summary0001458: A compile bug with the latest CVS version, I believe it has to do with enabling Remote Includes...
DescriptionI received this output when running make (note: I did follow all instructions in INSTALL.REMOTEINC):
gcc -I../include -pipe -g -O2 -funsigned-char -DZIP_LINKS -I/home/ace/curl/include -DUSE_LIBCURL -export-dynamic -c random.c
gcc -I../include -pipe -g -O2 -funsigned-char -DZIP_LINKS -I/home/ace/curl/include -DUSE_LIBCURL -export-dynamic -c extcmodes.c
gcc -I../include -pipe -g -O2 -funsigned-char -DZIP_LINKS -I/home/ace/curl/include -DUSE_LIBCURL -export-dynamic -c extbans.c
gcc -I../include -pipe -g -O2 -funsigned-char -DZIP_LINKS -I/home/ace/curl/include -DUSE_LIBCURL -export-dynamic -c url.c
gcc -I../include -pipe -g -O2 -funsigned-char -DZIP_LINKS -I/home/ace/curl/include -DUSE_LIBCURL -export-dynamic -o ircd auth.o aln.o badwords.o channel.o cloak.o crule.o dbuf.o events.o fdlist.o hash.o help.o ircd.o ircsprintf.o list.o lusers.o match.o modules.o packet.o parse.o res.o res_init.o res_comp.o res_mkquery.o res_skipname.o s_auth.o s_bsd.o s_conf.o s_debug.o s_err.o s_extra.o s_kline.o s_misc.o s_numeric.o s_serv.o s_svs.o socket.o ssl.o s_user.o scache.o send.o support.o umodes.o s_stats.o version.o webtv.o whowas.o zip.o cidr.o random.o extcmodes.o extbans.o url.o -lcrypt -lnsl -lz -L/home/ace/curl/lib -lcurl -lz -ldl -lz -L/home/ace/curl/ares -lares -ldl
/usr/bin/ld: cannot find -lares
collect2: ld returned 1 exit status
make[1]: *** [ircd] Error 1
make[1]: Leaving directory `/home/ace/Unreal3.2/src'
make: *** [build] Error 2

Steps To Reproduceattempt to compile
TagsNo tags attached.
3rd party modules

Activities

codemastr

2003-12-30 18:46

reporter   ~0004469

This should be fixed in the latest CVS (among other remote include fixes). I'm going to leave the bug report open until you verify it though. After you update to the current CVS, you'll need to rerun ./curlinstall as well as ./Config to make the new changes take effect.

syzop

2003-12-30 19:38

administrator   ~0004471

compiles fine here now :).

Could you take a look at the following warnings however (they are all easy to fix ;p):
ircd.c:859: warning: implicit declaration of function `url_init'
s_bsd.c:1653: warning: implicit declaration of function `url_do_transfers_async'
s_conf.c:2448: warning: implicit declaration of function `remote_include'
s_conf.c:6973: warning: implicit declaration of function `rehash_internal'
url.c:140: warning: `res' might be used uninitialized in this function

yeah I know, I'm keeping you buzzy :p.

mustapha88

2003-12-30 20:36

reporter   ~0004472

OK, compiles fine here as well. I have the IRCd configured to pull some config files (the badwords and help configs) from another server and appears to work fine. However, I would like to see some errors to be more detailed. For example, I copied all of the configs from Unreal3.2 to my HTTP directory and they had owner permissions, so could not be accessed by the web or UnrealIRCd. UnrealIRCd said that it couldn't download the fhttp://www.talkingirc.com/conf/badwords.message.conf because of error 403. Well, could we make it say something like "error 403 forbidden"? Thanks!

codemastr

2003-12-30 21:32

reporter   ~0004473

Well the error message is generated by libcurl.

mustapha88

2003-12-31 18:28

reporter   ~0004491

I am not sure if this is the proper place to post this or not. Yesterday, everything seemed to work fine. Now, when I logged onto my test server, today, to rehash it, I got the following:
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- ace is
  rehashing server config file
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  Unable to create file 'tmp/79D9A7DB.conf/badwords.message.conf'
  : No such file or directory
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  Unable to create file 'tmp/51BD0611.conf/badwords.channel.conf'
  : No such file or directory
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  Unable to create file 'tmp/62EA3635.conf/badwords.quit.conf':
  No such file or directory
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  Unable to create file 'tmp/4C306A24.conf/help.conf': No such
  file or directory
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- Loading
  IRCd configuration ..
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice --
  unrealircd.conf:159 Ignoring extra end comment
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  Couldn't open "tmp/79D9A7DB.conf/badwords.message.conf": No
  such file or directory
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  Could not load config file tmp/79D9A7DB.conf/badwords.message.c
  onf
[1:22 PM] -millions.mn.us.talkingirc.com- *** Notice -- error:
  IRCd configuration failed to load

mustapha88

2003-12-31 18:31

reporter   ~0004492

Also, I am not sure if this is a sign that it wasn't really working properly yesterday, but I assumed it had loaded the remote configuration files. All I saw was that it was loading unrealircd.conf and that it had loaded successfully. I know the HTTP messages are generated by Libcurl, but is it possible to say something like:
Loading remote file http://www.talkingirc.com/conf/badwords.message.conf...
Configuration file <URL above> loaded without any problems..

Just an idea...

syzop

2003-12-31 18:36

administrator   ~0004493

> Unable to create file 'tmp/79D9A7DB.conf/badwords.message.conf': No such file or directory

Seems more like an error on our side... funny path :P.

> [..]Configuration file <URL above> loaded without any problems..

nah that sucks ;). If it went ok I don't see any reason to get like 5-10 "blabla loaded without any problems" thingies. The error messages could perhaps someday be improved, but that's another thing.

codemastr

2003-12-31 18:52

reporter   ~0004496

I'll look into those error messages, as for more detailed stuff, if you want to be flooded with tons of information about what files are being loaded, then run src/ircd -C 1

codemastr

2003-12-31 21:24

reporter   ~0004497

That problem should be fixed in the latest CVS (.2023). It was a problem due to local file caching (if the file was not changed on the server).

mustapha88

2003-12-31 22:57

reporter   ~0004498

OK, you fixed most of the errors, however, I still get:
[5:52 PM] -millions.mn.us.talkingirc.com- *** Notice -- ace is rehashing server config file
[5:52 PM] -millions.mn.us.talkingirc.com- *** Notice -- Loading IRCd configuration ..
[5:52 PM] -millions.mn.us.talkingirc.com- *** Notice -- unrealircd.conf:159 Ignoring extra end comment
[5:52 PM] -millions.mn.us.talkingirc.com- *** Notice -- error: Could not load config file tmp/2EBADE47.badwords.message.conf
[5:52 PM] -millions.mn.us.talkingirc.com- *** Notice -- error: IRCd configuration failed to load

And, no, I am not refering to the "ignoring extra end comment" :)

codemastr

2003-12-31 23:16

reporter   ~0004499

Then what are you referring to?

mustapha88

2004-01-01 05:59

reporter   ~0004501

Hey it's new years (12:00) here in the US and I've had a few shots of rum and shit, so let's see how clearly I can explain this............

The line I was refering to was:
[5:52 PM] -millions.mn.us.talkingirc.com- *** Notice -- error: Could not load config file tmp/2EBADE47.badwords.message.conf
Thanks and have a splendid new year! :)

codemastr

2004-01-01 06:06

reporter   ~0004502

That line simply means "we couldn't load the file because of the ignoring extra stuff" The tmp/..... is simply the temporary file it is in. I suppose I could actually make it say "in http://...." though that's actually going to wind up being a lot of work :)

mustapha88

2004-01-01 08:18

reporter   ~0004504

IT couldn't load the file because of the "ignoring extra close comment" thing? What does that have anything to do with the remote file, though? Shouldn't the IRCd just ignore that, as it says it's doing?

codemastr

2004-01-01 17:33

reporter   ~0004508

Whatever it ignored caused it to be unable to correctly parse the file.

mustapha88

2004-01-01 17:43

reporter   ~0004510

OK, I'll fix the configuration file and see if that helps any.

I e-mailed you regarding my bugtracker account, have you received that mail yet?

mustapha88

2004-01-01 18:07

reporter   ~0004511

OK, first off, it said that it was "ignoring extra end comment" on line 159 of the config, which I opened, and it was a open comment (/*) not a close comment. So I fixed this error, however, still:
[1:02 PM] -millions.mn.us.talkingirc.com- *** Notice -- ace is rehashing server config file
[1:02 PM] -millions.mn.us.talkingirc.com- *** Notice -- Loading IRCd configuration ..
[1:02 PM] -millions.mn.us.talkingirc.com- *** Notice -- error: Could not load config file tmp/2EBADE47.badwords.message.conf
[1:02 PM] -millions.mn.us.talkingirc.com- *** Notice -- error: IRCd configuration failed to load

Also, what does this "2EBADE47" mean?

If you want to talk on IRC about this, let me know where and when and I will try to make it. :)

codemastr

2004-01-01 18:14

reporter   ~0004512

Yeah could you come on IRC?

include "http://www.talkingirc.com/conf/badwords.message.conf";

That's the line you have right? Because I just added that to my config and it's working fine.

Also those numbers and letters are just random. It's just to create a unique filename. Like if we just used tmp/badwords.message.conf, what happens if you have two URLs that use that filename?

codemastr

2004-01-02 04:25

reporter   ~0004513

Hopefully this is the last of the remote include bugs :)

Issue History

Date Modified Username Field Change
2003-12-30 04:49 mustapha88 New Issue
2003-12-30 18:46 codemastr Note Added: 0004469
2003-12-30 19:38 syzop Note Added: 0004471
2003-12-30 20:36 mustapha88 Note Added: 0004472
2003-12-30 21:32 codemastr Note Added: 0004473
2003-12-31 18:28 mustapha88 Note Added: 0004491
2003-12-31 18:31 mustapha88 Note Added: 0004492
2003-12-31 18:36 syzop Note Added: 0004493
2003-12-31 18:52 codemastr Note Added: 0004496
2003-12-31 21:24 codemastr Note Added: 0004497
2003-12-31 22:57 mustapha88 Note Added: 0004498
2003-12-31 23:16 codemastr Note Added: 0004499
2004-01-01 05:59 mustapha88 Note Added: 0004501
2004-01-01 06:06 codemastr Note Added: 0004502
2004-01-01 08:18 mustapha88 Note Added: 0004504
2004-01-01 17:33 codemastr Note Added: 0004508
2004-01-01 17:43 mustapha88 Note Added: 0004510
2004-01-01 18:07 mustapha88 Note Added: 0004511
2004-01-01 18:14 codemastr Note Added: 0004512
2004-01-02 04:25 codemastr Status new => resolved
2004-01-02 04:25 codemastr Resolution open => fixed
2004-01-02 04:25 codemastr Assigned To => codemastr
2004-01-02 04:25 codemastr Note Added: 0004513