Subject: Re: libtool problems when buildinglinking net/bind9 under Linux
To: Jeremy C. Reed <reed@reedmedia.net>
From: Sebastian P. <sebastian-p@gmx.net>
List: tech-pkg
Date: 03/19/2003 22:37:55
On Wednesday 19 March 2003 19:56, you wrote:
> I was able to solve my problem by using the idea from Joachim in PR 20529.

mmmh, i am able to build bind9 with my libpthread.la file. i have these files 
in /usr/lib:

# ls -l /usr/lib/libpthread.*
/usr/lib/libpthread.a
/usr/lib/libpthread.la*
/usr/lib/libpthread.so -> ../../lib/libpthread.so.0*

my libpthread.la looks like this:


# libgthread.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.3.4 (1.385.2.196 1999/12/07 21:47:57)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libpthread.so'

# Names of this library.
library_names='libpthread.so'

# The name of the static archive.
old_library='libpthread.a'

# Libraries that this one depends upon.
#dependency_libs=' -lpthread'

# Version information for libgthread.
current=0
age=0
revision=10

# Is this an already installed library?
installed=yes

# Directory that this library needs to be installed in:
libdir='/usr/lib'



without this .la file, the buildlinking stuff failes like this:

# bmake
=> Checksum OK for bind/9.2.2/bind-9.2.2.tar.gz.
===> Extracting for bind-9.2.2
===> Required installed package openssl>=0.9.6g: openssl-0.9.6gnb1 found
===> Required installed package libtool-base>=1.4.20010614nb11: 
libtool-base-1.4.20010614nb13 found
===> Patching for bind-9.2.2
===> Applying pkgsrc patches for bind-9.2.2
===> Buildlinking for bind-9.2.2
lafile="/usr/pkgsrc/net/bind9/work/.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";  /usr/pkgsrc/net/bind9/work/.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 /usr/pkgsrc/net/bind9/work/.buildlink/.tmp/inst/.la: No 
such file or directory
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/net/bind9
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/bind9


i last updated pkgsrc about 5 hours ago


Sebastian