On 16/09/13 23:49, Stuart Henderson wrote:
the ISC resolver is available in ports/net/libbind, this is used in some
ports which fiddle with resolver internals in _res (e.g. net/mtr).
Thanks for the tip.
Indeed linking with libbind also fixed the problem with the program's
resolver.
The only problem I've found is the following warnings, which according
to archive has to do with the snapshot being used(?).
./a.out:/usr/lib/libc.so.70.0: /usr/local/lib/libbind/libbind.so.3.0 : WARNING:
symbol(__p_class_syms) size mismatch, relink your program
./a.out:/usr/lib/libc.so.70.0: ./a.out : WARNING: symbol(_res) size mismatch,
relink your program
./a.out:/usr/lib/libc.so.70.0: /usr/local/lib/libbind/libbind.so.3.0 : WARNING:
symbol(__p_type_syms) size mismatch, relink your program
This is with the latest snapshot and libbind manually compiled from
ports, after upgrading to latest snapshot (following the normal upgrade
process).
The only available libc in system is /usr/lib/libc.so.70.0
# ldd a.out
a.out:
Start End Type Open Ref GrpRef Name
1c000000 3c004000 exe 1 0 0 a.out
01b9d000 21ba5000 rlib 0 1 0
/usr/local/lib/libbind/libbind.so.3.0
02f09000 22f39000 rlib 0 1 0 /usr/lib/libc.so.70.0
08e96000 08e96000 rtld 0 1 0 /usr/libexec/ld.so
# ldconfig -r | grep libbind
search directories:
/usr/lib:/usr/X11R6/lib:/usr/local/lib:/usr/local/lib/libbind
142:-lbind.3.0 => /usr/local/lib/libbind/libbind.so.3.0
G