Subject: problem building libtool on openbsd 3.5
To: None <tech-pkg@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: tech-pkg
Date: 05/26/2004 08:06:45
So, I've never installed OpenBSD before, and am doing it under
protest.  :)  I figured I may as well make the environment as
comfortable and familiar as possible, and install the NetBSD pkgsrc
tree.  There seems to be a problem in the way libtool is built;
some symlinks which it expects don't get installed and so the link
fails:


[snip]
Making install in libltdl
test -z "/usr/pkg/lib" || install -d "/usr/pkg/lib"
 /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g wheel  'libltdl.la' '/usr/pkg/lib/libltdl.la'
/usr/bin/install -c -o root -g wheel .libs/libltdl.so.4.0 /usr/pkg/lib/libltdl.so.4.0
/usr/bin/install -c -o root -g wheel .libs/libltdl.lai /usr/pkg/lib/libltdl.la
/usr/bin/install -c -o root -g wheel .libs/libltdl.a /usr/pkg/lib/libltdl.a
ranlib -t /usr/pkg/lib/libltdl.a
chmod 644 /usr/pkg/lib/libltdl.a
PATH="$PATH:/sbin" ldconfig -m /usr/pkg/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/pkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-Wl,-rpath,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/pkg/include" || install -d "/usr/pkg/include"
 install -c -o root -g wheel -m 444 'ltdl.h' '/usr/pkg/include/ltdl.h'
Making install in tests
install -c -o root -g wheel -m 555 /usr/pkgsrc/devel/libtool-base/work.i386/libtool-1.5.6/shlibtool /usr/pkg/bin/shlibtool
===> [Automatic ELF shared object handling]
ls: /usr/pkg/lib/libltdl.so: No such file or directory
ls: /usr/pkg/lib/libltdl.so.4: No such file or directory
===> Registering installation for libtool-base-1.5.6
pkg_create: can't stat `/usr/pkg/lib/libltdl.so'
pkg_create: can't stat `/usr/pkg/lib/libltdl.so.4'
===> Packaging libtool-base-1.5.6
===> Building binary package for libtool-base-1.5.6
Creating package /usr/pkgsrc/packages/All/libtool-base-1.5.6.tgz
Using SrcDir value of /usr/pkg
Registering depends:.
Registering conflicts: glibtool-[0-9]*.
pkg_create: can't stat `/usr/pkg/lib/libltdl.so'
pkg_create: can't stat `/usr/pkg/lib/libltdl.so.4'
tar: Unable to access lib/libltdl.so (No such file or directory)
tar: Unable to access lib/libltdl.so.4 (No such file or directory)
tar: WARNING! These file names were not selected:
lib/libltdl.so
lib/libltdl.so.4
pkg_create: /usr/pkg/bin/tar command failed with code 256
*** Error code 1


-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz