Compiling on GCC 4.1
Subject : Compiling on GCC 4.1
From: Josh Pollak <email@hidden >
Date: Tue, 23 Jan 2007 11:50:28 -0500
Delivered-to: email@hidden
Delivered-to: email@hidden
Hello,
I have found an issue with compiling mDNSResponder-107.6 (and probably
older versions) with GCC 4.1. Basically, you will see (solution is
below):
jpollak@moya:/tmp/mDNSResponder-107.6/mDNSPosix$ make os=linux
Responder daemon done
Client library done
make[1]: Entering directory `/tmp/mDNSResponder-107.6/Clients'
cc dns-sd.c -L../mDNSPosix/build/prod/ -ldns_sd -I../mDNSShared -o
build/dns-sd
/usr/bin/ld: build/dns-sd: hidden symbol `__stack_chk_fail_local'
in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by
DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [build/dns-sd] Error 1
make[1]: Leaving directory `/tmp/mDNSResponder-107.6/Clients'
make: *** [../Clients/build/dns-sd] Error 2
Solution: Edit mDNSResponder-107.6/mDNSPosix/Makefile, and find line
271:
LD = ld -shared
and change it to:
LD = gcc -shared
Now when you build, everything works:
jpollak@moya:/tmp/mDNSResponder-107.6/mDNSPosix$ make os=linux clean
make[1]: Entering directory `/tmp/mDNSResponder-107.6/Clients'
rm -rf build
make[1]: Leaving directory `/tmp/mDNSResponder-107.6/Clients'
jpollak@moya:/tmp/mDNSResponder-107.6/mDNSPosix$ make os=linux
Responder daemon done
Client library done
make[1]: Entering directory `/tmp/mDNSResponder-107.6/Clients'
mkdir build
cc dns-sd.c -L../mDNSPosix/build/prod/ -ldns_sd -I../mDNSShared -o
build/dns-sd
make[1]: Leaving directory `/tmp/mDNSResponder-107.6/Clients'
Clients done
Embedded Standalone Client done
Embedded Standalone Responder done
Embedded Standalone ProxyResponder done
Identify done
NetMonitor done
dnsextd done
Name Service Switch module done
To give credit where credit is due, I found this solution here:
http://www.xastir.org/wiki/index.php/HowTo:Ubuntu_6.10
Thanks,
Josh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.