Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107953 - unrealircd-3.2.3-r1 fails to build with curl use flag enabled
Summary: unrealircd-3.2.3-r1 fails to build with curl use flag enabled
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: 107146
  Show dependency tree
 
Reported: 2005-10-02 21:26 UTC by Jason Wever (RETIRED)
Modified: 2005-11-13 03:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wever (RETIRED) gentoo-dev 2005-10-02 21:26:36 UTC
On an ~arch system, unrealircd-3.2.3-r1 fails to build with the curl use flag
enabled.  This is due to the configure script looking for a -lares that does not
exist.  The ebuild has a check to make sure people build curl with ares support
enabled, however currently only the x86 architecture really does anything with
the ares use flag in the curl ebuild.

Also since we're using net-dns/c-ares for our ares library, it should be noted
that all versions of c-ares currently in portage do not provide a -lares but
rather a -lcares.  If you edit the configure script for unrealircd to use
-lcares instead of -lares, it will then at least build with the curl use flag
enabled (even though in my case curl itself was not built with ares support
enabled due to the logic in the curl ebuild).  Whether curl support in
unrealircd works is another story as I haven't tested.
Comment 1 Sven Wegener gentoo-dev 2005-10-03 06:15:47 UTC
If curl is properly compiled with USE="ares -ipv6" for ares support, curl-config
will output the following:

morpheus ~ # curl-config --libs
-L/usr/lib -lcurl -L/usr/lib -lssl -lcrypto -ldl -lz -lcares

UnrealIRCd uses curl-config and will only use -lares if the --libs output from
curl-config doesn't include ares. Sure, -lares is wrong and I'm going to fix
his, but if all is properly setup this fallback should never be used. And
linking to -lcares even if curl was compiled without it doesn't gain anything.
It's libcurl that needs ares for asynchronous resolving, else UnrealIRCD may
block when fetching the configuration files on /rehash, which is pretty bad.
Best would be to make the curl support only active for x86, matching the logic
from curl.
Comment 2 Jason Wever (RETIRED) gentoo-dev 2005-10-19 13:29:12 UTC
curl-7.15.0 solves this problem as the ares use flag is no longer soley
dependent on x86.  Please feel free to resolve the bug as unrealircd emerges
just fine now.
Comment 3 Jason Wever (RETIRED) gentoo-dev 2005-11-08 18:29:40 UTC
You guys mind if I resolve this since this bug is fixed?
Comment 4 Sven Wegener gentoo-dev 2005-11-13 03:49:00 UTC
closing