Hey all. I first encountered this problem on a RedHat box, and then confirmed it is a problem on Gentoo as well. The 3.1 series of Unrealircd will not compile under systems with gcc2.96 or greater. I think it has to do with lresolv changes between the 2x and 3x series. If you currently try to emerge unrealircd, you get the following error: ------------------------------------------------------------------- gcc -I../include -march=athlon-tbird -O3 -pipe -o ircd agent.o aln.o badword s.o bsd.o channel.o class.o cloak.o crule.o dbuf.o dynconf.o fdlist.o hash.o hel p.o ircd.o ircsprintf.o list.o lusers.o match.o packet.o parse.o res.o res_skip name.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_socks.o ssl.o s_unreal.o s_user.o scache.o send.o suppor t.o userload.o version.o webtv.o whowas.o -lcrypt -lresolv res.o(.text+0x187): In function `init_resolver': : undefined reference to `_res' res.o(.text+0x197): In function `init_resolver': : undefined reference to `_res' res.o(.text+0x1ac): In function `init_resolver': : undefined reference to `_res' res.o(.text+0x6d3): In function `resend_query': : undefined reference to `_res' res.o(.text+0x70c): In function `resend_query': : undefined reference to `_res' res.o(.text+0x811): more undefined references to `_res' follow collect2: ld returned 1 exit status make[1]: *** [ircd] Error 1 make[1]: Leaving directory `/var/tmp/portage/unrealircd-3.1.5.1/work/Unreal3.1.5 .1/src' make: *** [build] Error 2 !!! ERROR: net-irc/unrealircd-3.1.5.1 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! compiling failed ------------------------------------------------------------------- The good news is the 3.2 series of Unrealircd is out and works fine. It is still in beta, but appears quite stable. It could be added to portage as ~. The current 3.2 build is Beta 15, with Beta 16 due out sometime Saturday, May 2nd. -PJ
I feel this will be a racing problem as it seems to compile fine outside of the ebuild for other people. perhaps if we could try MAKEOPTS="-j1" emerge unrealircd first it might spread some light? my appologies for not doing this already.
ps. reassigned to avenj
Created attachment 13154 [details] Proposed new ebuild Same as old ebuild, just add a line for a patch
Created attachment 13155 [details, diff] Patch to fix A(nother) patch for the Config file, it seems to fix the problem
Created attachment 13156 [details] Proposed new ebuild, revised Sorry, I didn't tidy the old one up enough. This is a bit better.
Hi, I've attached two files here, they seem to fix the problem for me. I'm not entirely sure this is the best place to put the fix ... but I don't think it'll break anything.
You might also want to take a look at http://bugs.unrealircd.org/bug_view_page.php?bug_id=0000896 They have recognised this as a problem, but I still think that Gentoo should get this to work for the Gentoo people, as the Unreal people aren't actively maintaining the 3.1 branch (by their own admission).
any news on this ?
Patch applied && fixed