Re: FreeBSD 10.0-CURRENT/amd64: /usr/bin/ld: cannot find -lisc

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Mon, 26 Dec 2011 22:51:13 +0100
On 2011-12-26 12:12, O. Hartmann wrote:
...
> Yes, I do have WITH_BIND_LIBS on the boxes enabled:
>
> (/etc/src.conf):
> WITH_CLANG=             YES
> WITH_CLANG_EXTRAS=      YES
> #
> WITH_BIND_LIBS=         YES
> WITH_BIND_SIGCHASE=     YES
> WITH_BIND_LARGE_FILE=   YES
> #
> WITH_IDEA=              YES
> WITH_HESIOD=            YES
> #
> #WITH_ICONV=            YES
> WITH_BSD_GREP=          YES
> #
> WITH_LIBCPLUSPLUS=      YES
> #
> #WITH_OFED=             YES

I have done a buildworld with exactly these settings, and there is no
problem linking dig at all.  Stage 4.2 (building libraries) builds and
installs the libraries and headers into the temproot:

   --------------------------------------------------------------
   >>> stage 4.2: building libraries
   --------------------------------------------------------------
   [...]
   ===> lib/bind (install)
   ===> lib/bind/isc (install)
   sh /usr/src/tools/install.sh -C -o root -g wheel -m 444   libisc.a /usr/obj/usr/src/tmp/usr/lib
   sh /usr/src/tools/install.sh -s -o root -g wheel -m 444     libisc.so.83 /usr/obj/usr/src/tmp/usr/lib
   ln -fs libisc.so.83 /usr/obj/usr/src/tmp/usr/lib/libisc.so
   [...]

And later in stage 4.4 (building everything), those libs get used for
linking dig:

   --------------------------------------------------------------
   >>> stage 4.4: building everything
   --------------------------------------------------------------
   [...]
   ===> usr.bin/dig (all)
   clang -O2 -pipe  -DVERSION='"9.8.1-P1"' -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR='"/var"' -DNS_SYSCONFDIR='"/etc/namedb"' -DNAMED_CONFFILE='"/etc/namedb/named.conf"' -DRNDC_CONFFILE='"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE='"/etc/namedb/rndc.key"' -I/usr/src/usr.bin/dig/../../lib/bind -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDIG_SIGCHASE -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/unix/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/pthreads/include -I/usr/src/usr.bin/dig/../dns -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/dns/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isccfg/include -I/usr/src/usr.bin/dig/../isc -I/usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/x86_32/include -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-tautological-c
ompare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -Wno-parentheses -c /usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/dig.c
   clang -O2 -pipe  -DVERSION='"9.8.1-P1"' -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR='"/var"' -DNS_SYSCONFDIR='"/etc/namedb"' -DNAMED_CONFFILE='"/etc/namedb/named.conf"' -DRNDC_CONFFILE='"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE='"/etc/namedb/rndc.key"' -I/usr/src/usr.bin/dig/../../lib/bind -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDIG_SIGCHASE -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/unix/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/pthreads/include -I/usr/src/usr.bin/dig/../dns -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/dns/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isccfg/include -I/usr/src/usr.bin/dig/../isc -I/usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/x86_32/include -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-tautological-c
ompare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -Wno-parentheses -c /usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/dighost.c
   clang -O2 -pipe  -DVERSION='"9.8.1-P1"' -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR='"/var"' -DNS_SYSCONFDIR='"/etc/namedb"' -DNAMED_CONFFILE='"/etc/namedb/named.conf"' -DRNDC_CONFFILE='"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE='"/etc/namedb/rndc.key"' -I/usr/src/usr.bin/dig/../../lib/bind -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDIG_SIGCHASE -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/unix/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/pthreads/include -I/usr/src/usr.bin/dig/../dns -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/dns/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isccfg/include -I/usr/src/usr.bin/dig/../isc -I/usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/x86_32/include -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-tautological-c
ompare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -Wno-parentheses  -o dig dig.o dighost.o -lbind9 -ldns -lisccc -lisccfg -lisc -llwres -lcrypto -lpthread
   clang: warning: argument unused during compilation: '-std=gnu99'
   gzip -cn /usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/dig.1 > dig.1.gz
   ===> usr.bin/dirname (all)
   [...]

Can you please upload a full buildworld log somewhere?  Preferably
without using -j.
Received on Mon Dec 26 2011 - 20:51:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC