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
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.
Created attachment 120193 [details, diff] linking-fix.patch
Looks fine. Feel free to commit that patch to /var/cvsroot/gentoo-projects/portage-utils/
this is released in portage-utils-0.1.27-r1.ebuild thanks for the report and the patch.
*** Bug 179605 has been marked as a duplicate of this bug. ***
The InCVS version of the ebuild works fine for me. Thanks.
Closing bug