Displaying 1 result from an estimated 1 matches for "extra_ld_flag".
Did you mean:
extra_ld_flags
2009 Sep 10
1
need -lresolv on MacOSX 10.6
...in libopenbsd-compat.a(getrrsetbyname.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [ssh] Error 1
Adding -lresolv to the link line fixes it.
Checking <http://opensource.apple.com/release/mac-os-x-106/>, I see that
Apple's OpenSSH package adds -lresolv to "Extra_LD_Flags".
I notice that /usr/include/resolve.h on MacOSX 10.6.0 no longer contains
#ifdef BIND_8_COMPAT
#include <resolv8_compat.h>
as seen in previous MacOSX releases, so we get
#define res_query res_9_query
which creates the dependency on -lresolv.
OpenSSH's configure script t...