Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179639 - app-portage/portage-utils-0.1.27 fails to link w/ user supplied LDFLAGS
Summary: app-portage/portage-utils-0.1.27 fails to link w/ user supplied LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords: InVCS
: 179605 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-24 14:09 UTC by Doug Goldstein (RETIRED)
Modified: 2007-06-21 14:01 UTC (History)
1 user (show)

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


Attachments
linking-fix.patch (linking-fix.patch,1.39 KB, patch)
2007-05-24 14:27 UTC, Doug Goldstein (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Goldstein (RETIRED) gentoo-dev 2007-05-24 14:09:12 UTC
q.c and main.c use dl* functions without including dlfcn.h, as such it fails to compile.

x86_64-pc-linux-gnu-gcc -O2 -pipe -march=athlon64 -msse3 -ggdb -Wl,--as-needed -Wl,--export-dynamic -ldl main.c -o q
/var/tmp/portage/app-portage/portage-utils-0.1.27/temp/ccFMhdcD.o: In function `lookup_dl_applet':
/var/tmp/portage/app-portage/portage-utils-0.1.27/work/portage-utils-0.1.27/q.c:112: undefined reference to `dlopen'
/var/tmp/portage/app-portage/portage-utils-0.1.27/work/portage-utils-0.1.27/q.c:121: undefined reference to `dlsym'
/var/tmp/portage/app-portage/portage-utils-0.1.27/temp/ccFMhdcD.o: In function `cleanup':
/var/tmp/portage/app-portage/portage-utils-0.1.27/work/portage-utils-0.1.27/main.c:991: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make: *** [q] Error 1
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2007-05-24 14:15:20 UTC
wow. I totally did not read that error message at all. It's a linking issue since you're specifying the -ldl too early. Just tack the -ldl onto the end and it will be ok.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2007-05-24 14:27:03 UTC
Created attachment 120193 [details, diff]
linking-fix.patch
Comment 3 solar (RETIRED) gentoo-dev 2007-05-24 14:30:24 UTC
Looks fine. Feel free to commit that patch to /var/cvsroot/gentoo-projects/portage-utils/
Comment 4 solar (RETIRED) gentoo-dev 2007-05-24 16:24:47 UTC
this is released in portage-utils-0.1.27-r1.ebuild thanks for the report and the patch.
Comment 5 solar (RETIRED) gentoo-dev 2007-05-24 16:30:38 UTC
*** Bug 179605 has been marked as a duplicate of this bug. ***
Comment 6 Sandro Bonazzola (RETIRED) gentoo-dev 2007-05-24 18:48:00 UTC
The InCVS version of the ebuild works fine for me. Thanks.
Comment 7 solar (RETIRED) gentoo-dev 2007-06-21 14:01:24 UTC
Closing bug