The reason for it seems to be that the build looks for the dns_sd in ../mDNSPosix/build/prod/ while it has just been created in ../mDNSPosix/build/debug/ (see below). Building without the debug use flag works without problems. Responder daemon done i686-pc-linux-gnu-gcc -I. -I../mDNSCore -I../mDNSShared -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -g -DMDNS_DEBUGMSGS=2 -march=pentium4 -O2 -pipe -g -fstack-protector -c -fPIC -o objects/debug/dnssd_clientlib.c.so.o ../mDNSShared/dnssd_clientlib.c i686-pc-linux-gnu-gcc -I. -I../mDNSCore -I../mDNSShared -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -g -DMDNS_DEBUGMSGS=2 -march=pentium4 -O2 -pipe -g -fstack-protector -c -fPIC -o objects/debug/dnssd_clientstub.c.so.o ../mDNSShared/dnssd_clientstub.c i686-pc-linux-gnu-gcc -I. -I../mDNSCore -I../mDNSShared -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -g -DMDNS_DEBUGMSGS=2 -march=pentium4 -O2 -pipe -g -fstack-protector -c -fPIC -o objects/debug/dnssd_ipc.c.so.o ../mDNSShared/dnssd_ipc.c build/debug/libdns_sd.so Client library done make[1]: Entering directory `/var/tmp/portage/net-misc/mDNSResponder-107.6-r5/work/mDNSResponder-107.6/Clients' mkdir build cc dns-sd.c -L../mDNSPosix/build/prod/ -ldns_sd -I../mDNSShared -o build/dns-sd /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldns_sd collect2: ld returned 1 exit status make[1]: *** [build/dns-sd] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/mDNSResponder-107.6-r5/work/mDNSResponder-107.6/Clients' make: *** [../Clients/build/dns-sd] Error 2 !!! ERROR: net-misc/mDNSResponder-107.6-r5 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile mDNSResponder-107.6-r5.ebuild, line 46: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/net-misc/mDNSResponder-107.6-r5/temp/build.log'. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info
Confirming, without debug builds ok, with debug fails on linking with dns_sd
Looks like this will require the build system files to be patched. Anyone have the time to do the honours?
Created attachment 124978 [details, diff] mDNSResponder-107.6-debug-Makefiles.diff
Comment on attachment 124978 [details, diff] mDNSResponder-107.6-debug-Makefiles.diff Fixing object directory in case of building with debug
Created attachment 124979 [details] mDNSResponder-107.6-r6.ebuild
Comment on attachment 124979 [details] mDNSResponder-107.6-r6.ebuild mDNSResponder-107.6-r6.ebuild Updated ebuild, integrating mDNSResponder-107.6-debug-Makefiles.diff
On a second thought, you might want to overwrite -r5 instead of adding -r6, sparing a rebuild for those who built it with -debug, they are not affected by the update anyways. And feel free to flame me about the submission screwups or the submissions themselves, I'm new.
Diffs to the existing ebuild are far more useful than posting the whole ebuild. We are mostly interested in what you have changed and can apply the patch ourselves. I will look into this shortly and look at integrating it. Thanks for taking the time to work on this - much appreciated :)
Thanks for the patches - went with a slight variant but it seems to work well and should be easier to maintain using a sed statement. Ideally the Makefile should be patched in a form that could be applied upstream...
still does not work for me