View previous topic :: View next topic |
Author |
Message |
TheNewOsiris Tux's lil' helper
Joined: 18 Dec 2006 Posts: 91
|
Posted: Fri Mar 14, 2008 3:17 am Post subject: Failure installing mDNSResponder!!! |
|
|
mDNSResponder is being pulled in as a dependency of one of the packages that are in the kdebase-meta package.
I get the following error when I try to install mDNSResponder:
Code: |
# On OS X the dns_sd library functions are included in libSystem, which is implicitly linked with every executable
# If /usr/lib/libSystem.dylib exists, then we're on OS X, so we don't need also to link the "dns_sd" shared library
ifneq "$(wildcard /usr/lib/libSystem.dylib)" ""
LIBS =
else
LIBS = -L../mDNSPosix/build/debug/ -ldns_sd
endif
targets: build/dns-sd
clean:
rm -rf build
build:
mkdir build
build/dns-sd: build dns-sd.c
cc $(filter %.c %.o, $+) $(LIBS) -I../mDNSShared -o $@
* Running emake os=linux CC=i686-pc-linux-gnu-gcc LD=i686-pc-linux-gnu-gcc -shared JDK=/opt/sun-jdk-1.6.0.03 DEBUG=1 OPT_CFLAGS=-march=prescott -mtune=prescott -O2 -pipe LIBFLAGS= LOCALBASE=/usr JAVACFLAGS=-source 1.4 -target 1.4
make -j2 -j1 os=linux CC=i686-pc-linux-gnu-gcc LD=i686-pc-linux-gnu-gcc -shared JDK=/opt/sun-jdk-1.6.0.03 DEBUG=1 OPT_CFLAGS=-march=prescott -mtune=prescott -O2 -pipe LIBFLAGS= LOCALBASE=/usr JAVACFLAGS=-source 1.4 -target 1.4
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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/PosixDaemon.c.o PosixDaemon.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/mDNSPosix.c.o mDNSPosix.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/mDNSUNP.c.o mDNSUNP.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/mDNS.c.o ../mDNSCore/mDNS.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/DNSDigest.c.o ../mDNSCore/DNSDigest.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/uDNS.c.o ../mDNSCore/uDNS.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/DNSCommon.c.o ../mDNSCore/DNSCommon.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/uds_daemon.c.o ../mDNSShared/uds_daemon.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/mDNSDebug.c.o ../mDNSShared/mDNSDebug.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/dnssd_ipc.c.o ../mDNSShared/dnssd_ipc.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/GenLinkedList.c.o ../mDNSShared/GenLinkedList.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=prescott -mtune=prescott -O2 -pipe -c -o objects/debug/PlatformCommon.c.o ../mDNSShared/PlatformCommon.c
i686-pc-linux-gnu-gcc -o build/debug/mdnsd objects/debug/PosixDaemon.c.o objects/debug/mDNSPosix.c.o objects/debug/mDNSUNP.c.o objects/debug/mDNS.c.o objects/debug/DNSDigest.c.o objects/debug/uDNS.c.o objects/debug/DNSCommon.c.o objects/debug/uds_daemon.c.o objects/debug/mDNSDebug.c.o objects/debug/dnssd_ipc.c.o objects/debug/GenLinkedList.c.o objects/debug/PlatformCommon.c.o
build/debug/mdnsd
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=prescott -mtune=prescott -O2 -pipe -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=prescott -mtune=prescott -O2 -pipe -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=prescott -mtune=prescott -O2 -pipe -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/paludis/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.2.3/../../../../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/paludis/net-misc/mDNSResponder-107.6-r5/work/mDNSResponder-107.6/Clients'
make: *** [../Clients/build/dns-sd] Error 2
!!! ERROR in net-misc/mDNSResponder-107.6-r5:
!!! In src_compile at line 5350
!!! make failed
!!! Call stack:
!!! * src_compile (/var/tmp/paludis/net-misc/mDNSResponder-107.6-r5/temp/loadsaveenv:5350)
!!! * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:463)
!!! * main (/usr/libexec/paludis/ebuild.bash:481)
diefunc: making ebuild PID 21120 exit with error
die trap: exiting with error.
Install error:
* In program paludis -i kdebase-meta:
* When performing install action from command line:
* When executing install task:
* When installing 'net-misc/mDNSResponder-107.6-r5:0::gentoo':
* Install error: Install failed for 'net-misc/mDNSResponder-107.6-r5:0::gentoo'
Summary of failures:
* net-misc/mDNSResponder-107.6-r5:0::gentoo: failure
|
I can't think of what the problem is.
Any ideas?
Thanks. _________________ Paludis: Gentoo's Finest Package Manager. |
|
Back to top |
|
|
Neo2 Apprentice
Joined: 25 Sep 2006 Posts: 224 Location: Italy
|
Posted: Fri Mar 14, 2008 5:28 pm Post subject: |
|
|
Quote: | cc dns-sd.c -L../mDNSPosix/build/prod/ -ldns_sd -I../mDNSShared -o build/dns-sd
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldns_sd |
This line reveals the problem. The linker cannot find dns_sd library at the specified position. Seems like a makefile/ebuild problem. Anyway, you're compiling with "debug" use flag enabled (or at least it seems so) according to the following lines/excerpts:
Quote: | -DMDNS_DEBUGMSGS=2
build/debug/libdns_sd.so |
Also the "-mtune=prescott" CFLAG is redundant, unless you want to compile for retrocompatibility. Even in that case you should use -mtune alone, not both -march and -mtune. -march generates only specific code for your architecture, whereas -mtune will generate code that will work on all x86 and will introduce architecture-dependant code only where it doesn't affect compatibility.
I've also noticed that you're using paludis... This is not 100% stable yet, I suggest you to try a build with emerge to be sure it's not paludis problem. emerge --metadata before emerging will save you a lot of time, but you'll have to manually recreate /usr/portage/.cache directory after emerge's run and resync portage.
Hope this helps _________________ Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt |
|
Back to top |
|
|
TheNewOsiris Tux's lil' helper
Joined: 18 Dec 2006 Posts: 91
|
Posted: Fri Mar 14, 2008 10:00 pm Post subject: |
|
|
I'll try what you suggested, but what's wrong with the debug useflag? _________________ Paludis: Gentoo's Finest Package Manager. |
|
Back to top |
|
|
Neo2 Apprentice
Joined: 25 Sep 2006 Posts: 224 Location: Italy
|
Posted: Fri Mar 14, 2008 10:17 pm Post subject: |
|
|
Well, usually it just enlarges your code without much benefit (unless you're a software developer or you're trying to debug the application) because all debug symbols get stored in the binaries. Also, the binaries tend to become slower because some optimizations are turned off by debug flags. Occasionally it may happen that in some particular situations having debug turned on may trigger some problems where a compile without debug goes just fine. _________________ Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt |
|
Back to top |
|
|
TheNewOsiris Tux's lil' helper
Joined: 18 Dec 2006 Posts: 91
|
Posted: Sat Mar 15, 2008 3:15 am Post subject: Success!!!!!! |
|
|
I disabled mDNSResponder in favor of Avahi (though, I used mDNSResponder because I was having similar problems with Avahi.). Avahi installed properly after I removed the "debug" use flag and removed mtune from paludis's bashrc. So I am continueing with my install.
Thanks for your help! I really appreciate it! _________________ Paludis: Gentoo's Finest Package Manager. |
|
Back to top |
|
|
Neo2 Apprentice
Joined: 25 Sep 2006 Posts: 224 Location: Italy
|
|
Back to top |
|
|
|