Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179280 - net-misc/mDNSResponder-107.6-r5 does not build with debug use flag
Summary: net-misc/mDNSResponder-107.6-r5 does not build with debug use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 176297
  Show dependency tree
 
Reported: 2007-05-20 22:29 UTC by Maurice van der Pot (RETIRED)
Modified: 2007-09-06 21:00 UTC (History)
2 users (show)

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


Attachments
mDNSResponder-107.6-debug-Makefiles.diff (mDNSResponder-107.6-debug-Makefiles.diff,321 bytes, patch)
2007-07-16 00:25 UTC, KOVACS Tamas
Details | Diff
mDNSResponder-107.6-r6.ebuild (mDNSResponder-107.6-r6.ebuild,3.54 KB, text/plain)
2007-07-16 00:30 UTC, KOVACS Tamas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice van der Pot (RETIRED) gentoo-dev 2007-05-20 22:29:09 UTC
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
Comment 1 Marcin Gryszkalis 2007-06-01 17:25:31 UTC
Confirming, without debug builds ok, with debug fails on linking with dns_sd
Comment 2 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-15 17:35:52 UTC
Looks like this will require the build system files to be patched. Anyone have the time to do the honours?
Comment 3 KOVACS Tamas 2007-07-16 00:25:32 UTC
Created attachment 124978 [details, diff]
mDNSResponder-107.6-debug-Makefiles.diff
Comment 4 KOVACS Tamas 2007-07-16 00:28:16 UTC
Comment on attachment 124978 [details, diff]
mDNSResponder-107.6-debug-Makefiles.diff

Fixing object directory in case of building with debug
Comment 5 KOVACS Tamas 2007-07-16 00:30:42 UTC
Created attachment 124979 [details]
mDNSResponder-107.6-r6.ebuild
Comment 6 KOVACS Tamas 2007-07-16 00:32:28 UTC
Comment on attachment 124979 [details]
mDNSResponder-107.6-r6.ebuild

mDNSResponder-107.6-r6.ebuild

Updated ebuild, integrating mDNSResponder-107.6-debug-Makefiles.diff
Comment 7 KOVACS Tamas 2007-07-16 00:40:23 UTC
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.
Comment 8 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-17 18:52:53 UTC
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 :)
Comment 9 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-20 20:24:01 UTC
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...
Comment 10 Michal Suchanek 2007-09-06 21:00:20 UTC
still does not work for me