Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125705 - net-irc/unrealircd-3.2.4 doesn't compile without curl-useflag
Summary: net-irc/unrealircd-3.2.4 doesn't compile without curl-useflag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 06:00 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2006-03-18 19:31 UTC (History)
0 users

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


Attachments
unrealircd-3.2.4.ebuild.diff (unrealircd-3.2.4.ebuild.diff,571 bytes, patch)
2006-03-10 06:02 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-03-10 06:00:25 UTC
Hi,

# emerge -av unrealircd

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-irc/unrealircd-3.2.4  -curl -hub +ipv6 +ssl +zlib 0 kB

-----8<-----------8<----------8<-----------8<----

i686-pc-linux-gnu-gcc -I../include -I/var/tmp/portage/unrealircd-3.2.4/work/Unreal3.2/extras/regexp/include -I/var/tmp/portage/unrealircd-3.2.4/work/Unreal3.2/extras/c-ares/include -pipe -march=pentium3 -mcpu=pentium3 -O3 -pipe -funsigned-char -fno-strict-aliasing -DZIP_LINKS  -DUSE_LIBCURL -export-dynamic   -c list.c
ircd.c:74:23: curl/curl.h: No such file or directory
ircd.c: In function `do_version_check':
ircd.c:863: warning: assignment makes pointer from integer without a cast
ircd.c:864: error: `LIBCURL_VERSION' undeclared (first use in this function)
ircd.c:864: error: (Each undeclared identifier is reported only once
ircd.c:864: error: for each function it appears in.)
make[1]: *** [ircd.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory /var/tmp/portage/unrealircd-3.2.4/work/Unreal3.2/src'
make: *** [build] Error 2
!!! ERROR: net-irc/unrealircd-3.2.4 failed.
!!! Function src_compile, Line 76, Exitcode 2
!!! emake failed

It seems like unrealircd doesn't like the --disable-libcurl option and tries to include curl anyhow. The solution would be to remove the 

$(use_enable curl libcurl '/usr') 

line from the ebuild and replace it with a classic 

if use curl; then... 

statement.

I'll attach a patch so you can see what I did to get unrealircd compiled without curl.

Cheers
Polynomial-C
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-03-10 06:02:03 UTC
Created attachment 81840 [details, diff]
unrealircd-3.2.4.ebuild.diff
Comment 2 Sven Wegener gentoo-dev 2006-03-18 11:21:30 UTC
Blame Alec Warner! I implemented the original ebuild with myconf, because *I* know that the configure script is broken. Reverted back. Thanks for reporting!
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-03-18 11:51:59 UTC
Yeah I definately messed that up, although I recalled testing it and getting the same printed output, but I guess I was wrong ;)
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-03-18 19:31:32 UTC
Hi,

yes, I later found out, that it's the same problem with ipv6 so I assumed that this would apply to all configure-flags. I'm glad that the ebuild now works again and I can remove this ebuild from my overlay :)

Happy Gentooin'

Cheers
Poly