> First off, you are using the "wrong" package - the BLFS 8.0 version is
> bind-9.11.0-P3:
>
> http://www.linuxfromscratch.org/blfs/view/stable/basicnet/bind-utils.html
>
> When building the full Bind package, it'll make the libdns.so (and other
> libs), and the subsequent packages with be linked to those lib.
>
> Since you didn't install the full package, the Makefiles can't find the
> libdns.so (and others), and therefore fails.
>
> You should go back, and use the commands specified by the Bind-utils
> page, and post the errors you get instead.

Thanks for the answer and your suggestions.

Let me clarify in advance: I ran the commands from the BLFS book (all
the make -C && ... commands) and it did not work. I then ran a full make
of everything, which yielded the libs as expected, but the installation
of the client binaries failed. I tried some more and came up with what I
then asked previously today.

Of course I'd like to stick to the book as close as possible so I did as
you wrote in your answer.

I downloaded the version you referred to, although I know that the
version I used does indeed work, since I used that exact version on my
server machine (with LFS 7.10). I simply wanted the client binaries on a
client machine.

I unpacked, ./configure'd and tried to run the exact commands from the
BLFS 8.0 book which failed quite early in the build process. The first
make command compiles a lot of files but fails to link.

/bin/sh /sources/bind-9.11.0-P3/libtool --mode=link --tag=CC \
        gcc  -I/sources/bind-9.11.0-P3 -I../.. -I. -I../../lib/dns -Iinclude
-I/sources/bind-9.11.0-P3/lib/dns/include -I../../lib/dns/include
-I/sources/bind-9.11.0-P3/lib/isc/include -I../../lib/isc
-I../../lib/isc/include -I../../lib/isc/unix/include
-I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MD5
-DOPENSSL   -D_GNU_SOURCE -g -w -I/usr/include/libxml2  -fPIC  -W -Wall
-Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks
-L/usr/lib -L/opt/mysql/lib -o libdns.la -rpath /usr/lib \
        -version-info 166:5:0 \
        acache.lo acl.lo adb.lo badcache.lo byaddr.lo cache.lo callbacks.lo
catz.lo clientinfo.lo compress.lo db.lo dbiterator.lo dbtable.lo diff.lo
dispatch.lo dlz.lo dns64.lo dnssec.lo ds.lo dyndb.lo forward.lo
ipkeylist.lo iptable.lo journal.lo keydata.lo keytable.lo lib.lo log.lo
lookup.lo master.lo masterdump.lo message.lo name.lo ncache.lo nsec.lo
nsec3.lo nta.lo order.lo peer.lo portlist.lo private.lo rbt.lo rbtdb.lo
rbtdb64.lo rcode.lo rdata.lo rdatalist.lo rdataset.lo rdatasetiter.lo
rdataslab.lo request.lo resolver.lo result.lo rootns.lo rpz.lo rrl.lo
rriterator.lo sdb.lo sdlz.lo soa.lo ssu.lo ssu_external.lo stats.lo
tcpmsg.lo time.lo timer.lo tkey.lo tsec.lo tsig.lo ttl.lo update.lo
validator.lo version.lo view.lo xfrin.lo zone.lo zonekey.lo zt.lo
openssl_link.lo openssldh_link.lo openssldsa_link.lo
opensslecdsa_link.lo opensslgost_link.lo opensslrsa_link.lo dst_api.lo
dst_lib.lo dst_parse.lo dst_result.lo gssapi_link.lo gssapictx.lo
hmac_link.lo key.lo client.lo ecdb.lo  ../../lib/isc/libisc.la  -lcrypto
-ldl -lcap -lpthread -ldl -lm -lz -liconv -L/usr/lib -L/opt/mysql/lib
-lxml2 -L/opt/lib -lz -liconv -lm -ldl -lm -lz -L/usr/lib -L/opt/mysql/lib
libtool: link: cannot find the library `../../lib/isc/libisc.la' or
unhandled argument `../../lib/isc/libisc.la'
make: *** [Makefile:562: libdns.la] Error 1
make: Leaving directory '/sources/bind-9.11.0-P3/lib/dns'

I noticed that after the 2nd make command (make isc) the 1st command
succeeds. Same is true for the next few commands. "bind9" does not link
until after you have ran make on "isccc" and "isccfg" (where isccc is
not mentioned at all in the book's list).

Conclusion: the sequence of make commands as listed in the BLFS book is
not working. A correct sequence is this one:

  make -C lib/isc
  make -C lib/dns
  make -C lib/isccc
  make -C lib/isccfg
  make -C lib/bind9
  make -C lib/lwres
  make -C bin/dig

After this I could build the client binaries, but install failed to
install the libs. It installed the binaries but nothing else. Friendly
enough it emitted warnings that the libs were not installed.

I then ran a full make which should build all libraries, and I still
ended with the same problem: make install does not install the libraries.

# make -C bin/dig install
make: Entering directory '/sources/bind-9.11.0-P3/bin/dig'
/bin/sh ../../mkinstalldirs /usr/bin
/bin/sh ../../mkinstalldirs /usr/share/man/man1
/bin/sh /sources/bind-9.11.0-P3/libtool --mode=install --tag=CC
/usr/bin/install -c \
        dig /usr/bin
libtool: install: warning: `../../lib/dns/libdns.la' has not been
installed in `/usr/lib'
libtool: install: warning: `../../lib/lwres/liblwres.la' has not been
installed in `/usr/lib'
libtool: install: warning: `../../lib/bind9/libbind9.la' has not been
installed in `/usr/lib'
libtool: install: warning:
`/sources/bind-9.11.0-P3/lib/isccfg/libisccfg.la' has not been installed
in `/usr/lib'
libtool: install: warning: `../../lib/isccfg/libisccfg.la' has not been
installed in `/usr/lib'
libtool: install: warning: `/sources/bind-9.11.0-P3/lib/dns/libdns.la'
has not been installed in `/usr/lib'
libtool: install: warning:
`/sources/bind-9.11.0-P3/lib/isccc/libisccc.la' has not been installed
in `/usr/lib'
libtool: install: warning: `/sources/bind-9.11.0-P3/lib/isc/libisc.la'
has not been installed in `/usr/lib'
libtool: install: warning: `../../lib/isc/libisc.la' has not been
installed in `/usr/lib'
libtool: install: /usr/bin/install -c .libs/dig /usr/bin/dig


Using the following commands I was successfull in installing a working
client package:

  make -C lib/isc install
  make -C lib/dns install
  make -C lib/isccc install
  make -C lib/isccfg install
  make -C lib/bind9 install
  make -C lib/lwres install
  make -C bin/dig install

ldd confirms that all required libs are where they should be, and I
could run host and dig commands on the client.

Tschau...Thomas
-- 
"Do you wanna be a legend or a passing footprint on the sands of time?"

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to