|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: NetBSD: unable to find libdb-3.3.so
From: Matthias Andree (ma
dt.e-technik.uni-dortmund.de)
Date: Mon Mar 01 2004 - 15:15:17 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
wietse
porcupine.org (Wietse Venema) writes:
> Postfix does not import LD_LIBRARY_PATH. If software needs
> LD_LIBRARY_PATH, then the library is not correctly installed.
Hear hear.
The default BerkeleyDB library path is /usr/local/BerkeleyDB.N.M/lib,
well outside the ld.so.conf or crle defaults. You'd need to force the
linker to either link against the static library or to store the RPATH
into the program to avoid the - brrrrrrrp - LD_LIBRARY_PATH.
Add to that the asinine renaming game that BSD ports usually play with
the BerkeleyDB files (renaming libdb to libdb4 and db_stat to db4_stat),
it is wonder users are confused. Maybe those reminiscent about lost
a.out traditions should grow up now and fix the ports. ELF has SONAME,
it works and solves a lot of (user) problems.
Did I say there's no portable way to encode the LD_LIBRARY_PATH into an
executable? There's ld -r, -rpath, -R, some systems want multiple
of these options for multiple path components, other expect a
colon-separated list...
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]