Berkeley DB required ?
Chris Hegarty
chris.hegarty at oracle.com
Thu May 24 03:04:29 PDT 2012
On 23/05/2012 22:54, Henri Gomez wrote:
>> Wondering why dylib is referenced in
>> /usr/local/BerkeleyDB.5.4/lib/libdb-5.4.dylib ?
>
> After installation, otool report dependencies on
> /usr/local/BerkeleyDB.5.4/lib/libdb-5.4.dylib
>
> otool -L /Library/Java/JavaVirtualMachines/1.8.0-jigsaw.jdk/Contents/Home/lib/libdb-rds.dylib
>
> /Library/Java/JavaVirtualMachines/1.8.0-jigsaw.jdk/Contents/Home/lib/libdb-rds.dylib:
> /usr/local/BerkeleyDB.5.4/lib/libdb-5.4.dylib (compatibility version
> 0.0.0, current version 0.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 159.1.0)
>
> Of course there is just no /usr/local/BerkeleyDB.5.4 directory so
> what's this reference ?
This is a bug in the BDB makefile/linker options, for now it should be
harmless. I'll take note and resolve it in the next update to bdb.
The jigsaw bundled BDB is a stripped down version of the full BDB
release. It uses the same configure and makefiles as its larger brother.
The full BDB build can produce several native libraries, for supporting
SQL API, STL API, C++ API, etc, depending on the options passed to the
configure script. These additional libraries have a dependency on the
core libdb-XXX.so library. This is achieved by adding an rpath to the
default location of the libdb, which happens to be
/usr/local/BerkeleyDB.5.4 on Mac OSX. It just happens to be set in a
common linker options variable.
Since the jigsaw bundled bdb library is standalone and independent of
any of the above mentioned additional BDB libraries is does not need
this rpath set.
-Chris.
More information about the jigsaw-dev
mailing list