From fd5ca98a29c5e4b00ab929ea9d8ee8f87a894db7 Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas Date: Tue, 13 May 2003 20:20:04 +0000 Subject: [PATCH] Update and expand a bit the instructions for building a statically linked copy of named-xfer. Also add details on cleaning the source tree after the build to avoid leaving stale objects/binaries around. Prompted by: jeev@boldinternet.net --- .../handbook/advanced-networking/chapter.sgml | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml index 6c4a4dfee1..857f86d8c8 100644 --- a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml @@ -5000,16 +5000,36 @@ $TTL 6h Build a statically linked copy of named-xfer, and copy it into the sandbox: - &prompt.root; cd /usr/src/lib/libisc && make clean all -&prompt.root; cd /usr/src/lib/libbind && make clean all -&prompt.root; cd /usr/src/libexec/named-xfer && make NOSHARED=yes all + &prompt.root; cd /usr/src/lib/libisc +&prompt.root; make cleandir && make cleandir && make depend && make all +&prompt.root; cd /usr/src/lib/libbind +&prompt.root; make cleandir && make cleandir && make depend && make all +&prompt.root; cd /usr/src/libexec/named-xfer +&prompt.root; make cleandir && make cleandir && make depend && make NOSHARED=yes all &prompt.root; cp named-xfer /etc/namedb/bin && chmod 555 /etc/namedb/bin/named-xfer + + After your statically linked + named-xfer is installed some cleaning up + is required, to avoid leaving stale copies of libraries or + programs in your source tree: + + &prompt.root; cd /usr/src/lib/libisc +&prompt.root; make cleandir +&prompt.root; cd /usr/src/lib/libbind +&prompt.root; make cleandir +&prompt.root; cd /usr/src/libexec/named-xfer +&prompt.root; make cleandir + This step has been reported to fail occasionally. If this happens to you, then issue the command: - &prompt.root; cd /usr/src && make cleandir && make cleandir + &prompt.root; cd /usr/src && make cleandir && make cleandir + + and delete your /usr/obj tree: + + &prompt.root; rm -fr /usr/obj && mkdir /usr/obj This will clean out any cruft from your source tree, and retrying the steps above should then work.