A while back
I reported on an obscure problem when compiling applications against the dnssd library that comes with Apple’s mDNSResponder.
This post is just to report that these problems persist in mDNSResponder 108.4. As I reported before, here is what you’ll see when compiling your program:
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
As you can see, its all very intuitive.
If you change the Makefile to add -fno-stack-protector to the CFLAGS variable line, then the build will go through.
It’s magic!