Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20321 - Unrealircd 3.1.5.1 Won't Compile on gcc3x Systems
Summary: Unrealircd 3.1.5.1 Won't Compile on gcc3x Systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Greg Fitzgerald (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-02 06:45 UTC by PJ
Modified: 2003-11-19 15:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed new ebuild (unrealircd-3.1.5.1-r1.ebuild,1.80 KB, text/plain)
2003-06-12 07:11 UTC, Russell Cloran
Details
Patch to fix (unrealircd-3.1.5.1-gcc3.Config.patch,480 bytes, patch)
2003-06-12 07:12 UTC, Russell Cloran
Details | Diff
Proposed new ebuild, revised (unrealircd-3.1.5.1-r1.ebuild,1.75 KB, text/plain)
2003-06-12 07:14 UTC, Russell Cloran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PJ 2003-05-02 06:45:22 UTC
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
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2003-06-09 12:11:55 UTC
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.
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2003-06-09 12:29:08 UTC
ps. reassigned to avenj
Comment 3 Russell Cloran 2003-06-12 07:11:48 UTC
Created attachment 13154 [details]
Proposed new ebuild

Same as old ebuild, just add a line for a patch
Comment 4 Russell Cloran 2003-06-12 07:12:56 UTC
Created attachment 13155 [details, diff]
Patch to fix

A(nother) patch for the Config file, it seems to fix the problem
Comment 5 Russell Cloran 2003-06-12 07:14:19 UTC
Created attachment 13156 [details]
Proposed new ebuild, revised

Sorry, I didn't tidy the old one up enough. This is a bit better.
Comment 6 Russell Cloran 2003-06-12 07:17:11 UTC
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.
Comment 7 Russell Cloran 2003-06-13 02:14:51 UTC
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).
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 10:57:31 UTC
any news on this ?
Comment 9 Greg Fitzgerald (RETIRED) gentoo-dev 2003-11-19 15:16:26 UTC
Patch applied && fixed