[ldns-users] ldns 1.2.0 compile error

Paul Wouters paul at xelerance.com
Thu Apr 12 03:57:43 UTC 2007


Hi,

The 1.2.0 release fixed compiling the ldns library on x86_64 machines,
but drill is still using hardcoded path to /usr/lib:

gcc -g -O2 -I. -L/usr/lib -L../lib  -o drill drill.o drill_util.o error.o root.o work.o chasetrace.o dnssec.o securetrace.o -lssl -lcrypto  -lldns
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: warning: libcrypto.so.5, needed by /usr/lib/libldns.so, not found (try using -rpath or -rpath-link)
drill.o: In function `main':
/usr/src/redhat/BUILD/ldns-1.2.0/drill/drill.c:740: undefined reference to `ldns_send_buffer'
/usr/src/redhat/BUILD/ldns-1.2.0/drill/drill.c:631: undefined reference to `ldns_resolver_prepare_query_pkt'
/usr/src/redhat/BUILD/ldns-1.2.0/drill/drill.c:679: undefined reference to `ldns_dname_reverse'
/usr/src/redhat/BUILD/ldns-1.2.0/drill/drill.c:692: undefined reference to `ldns_dname_reverse'
drill_util.o: In function `print_dnskey_abbr':

[...]

Seems that whatever was fixed for ldns, did not get fixed for the drill subdirectory.

Paul



More information about the ldns-users mailing list