Subject: database/db4 - compilation fails on Debian (libtool help please)
To: None <>
From: Peter Schuller <>
List: tech-pkg
Date: 10/22/2005 01:19:07

I am attempting to compile databases/db4 on a Debian sarge system. The
package fails the installation step because of:

   cp: cannot stat `.libs/': No such file or directory

I checked 'config.log' for hints but found none; I then inspected the
compilation session. The problem seems to be that when libtool is
invoked in linking mode for the C++ library, it chooses to only create
a static library (just invoke 'ar'), while it does create both a
static and a dynamic library when linking the C API ('ar' and 'gcc
-shared' are invoked).

C library command line:

   /usr/pkgsrc/databases/db4/work/.tools/bin/sh ./libtool --mode=link
       gcc -version-info 3:28 -rpath /usr/pkg/lib -Wl,-R/usr/pkg/lib
       -o  <bunch of .lo files>

C++ library command line:

   /usr/pkgsrc/databases/db4/work/.tools/bin/sh ./libtool --mode=link
      g++ -avoid-version -O2 -rpath /usr/pkg/lib -Wl,-R/usr/pkg/lib 
      -o <bunch of .lo files>

I have very little clue on the inner workings of libtool, and I was
hoping somebody with more knowledge of it might be able to shed some
light on this. What would cause libtool not to detect the ability to
create dynamically linked libraries with C++ (which I assume, perhaps
incorrectly, is what is happening)?


/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <>'
Key retrieval: Send an E-Mail to
E-Mail: Web: