Subject: libtool problems when buildinglinking net/bind9 under Linux
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/18/2003 23:01:21
I have successfully built bind9 under Linux before, but today I received:
===> Buildlinking for bind-9.2.2
lafile="/tmp/pkgsrc/net/bind9/work.k3/.buildlink/lib/libpthread.la";
libpattern="/usr/lib/libpthread.*"; if [ ! -f $lafile ]; then
case ELF in Mach-O) _lib=`/bin/ls -1
$libpattern 2>/dev/null | /usr/bin/head -1` ;; *) _lib=`/bin/ls -1r
$libpattern 2>/dev/null | /usr/bin/head -1` ;; esac;
if [ -n "$_lib" ]; then /bin/true "Creating
libtool archive: $lafile";
/tmp/pkgsrc/net/bind9/work.k3/.buildlink/bin/.fake-la $_lib > $lafile;
fi; fi
libtool: link: the `-version-info' option requires an argument
Try `libtool --help --mode=link' for more information.
libtool: install: `.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
/bin/sed: can't read
/tmp/pkgsrc/net/bind9/work.k3/.buildlink/.tmp/inst/.la: No such file or
directory
*** Error code 2
I have the /tmp/pkgsrc/net/bind9/work.k3/.buildlink/.tmp/inst/ directory,
but it is empty.
The .wrapper.log has:
/usr/bin/libtool --quiet --mode=compile /tmp/pkgsrc/net/bind9/work.k3/.buildlink
/bin/gcc -c nonempty.c
/usr/bin/gcc -c nonempty.c -fPIC -DPIC -o .libs/nonempty.o
/usr/bin/gcc -c nonempty.c -o nonempty.o
/usr/bin/libtool --quiet /tmp/pkgsrc/net/bind9/work.k3/.buildlink/bin/gcc
-o .la nonempty.lo -rpath /tmp/pkgsrc/net/bind9/work.k3/.buildlink/.tmp/inst
-version-info
/usr/bin/libtool --quiet --mode=install /bin/cp .la
This has:
$ libtool --version
ltmain.sh (GNU libtool) 1.4a (1.641.2.255 2001/05/22 10:39:30)
I see that the net/bind9/Makefile has:
USE_BUILDLINK2= yes
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE+= ${WRKSRC}/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/lib/bind/libtool
Neither of these exists.
I will need to learn more about this.
Any ideas?
Thanks,
Jeremy C. Reed
http://bsd.reedmedia.net/