[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
libgdbm.so error on Solaris 2.7
when trying to install OpenLDAP on a Solaris 7
box, slapd fails to execute due to following error:
ld.so.1: slapd: fatal: libgdbm.so.2: open
failed: No such file or directory
I have the correct environment variables. The
file "libgdbm.so" sits in my /usr/local/lib directory and I have the following
variables in my environment:
CPPFLAGS=-I/space/openldap-2.0.10/include
-I/usr/local/include
LDFLAGS=-L/usr/local/lib -L/lib
-L/usr/local/include
LD_LIBRARY_PATH=-L/usr/local/lib
Despite this, it is unable to compile.
Does anyone know what I am doing wrong ??
During configuration using the "./configure"
command, i get the following in the config.log file
configure:12604: checking for GDBM
library
configure:12610: checking for gdbm_open
configure:12639: gcc -o
conftest -O -g -I/space/openldap-2.0.10/include -I/usr/local/include
-L/usr/local/lib -L/lib -L/usr/local/include
-L/s
pace/GNUgdbm/GNUgdbm/root/usr/local/lib conftest.c -lresolv -lgen -lnsl
-lsocket -ldl 1>&5
Undefined
first
referenced
symbol
in
file
gdbm_open
/var/tmp/ccSHoDgr.o
ld:
fatal: Symbol referencing errors. No output written to conftest
collect2: ld
returned 1 exit status
configure: failed program was:
#line 12615
"configure"
#include "confdefs.h"
/* System header to define __stub macros
and hopefully few prototypes,
How come it is unable to pick up the
lidgdbm.so.2 file that sits in my /usr/local/lib directory ??
# ls -l /usr/local/lib
total
10986
drwxr-xr-x 3 root root
512 May 24 15:29
gcc-lib
-rw-r--r-- 1 root root
2072264 Jan 16 1999 libbfd.a
-rwxr-xr-x
1 root root
429 Jan 16 1999
libbfd.la
-rw-r--r-- 1 root root
49012 Dec 25 1999
libgdbm.a
-rwxr-xr-x 1 root root
472 Dec 25 1999
libgdbm.la
lrwxrwxrwx 1 root other
16 May 24 15:54 libgdbm.so ->
libgdbm.so.2.0.0
lrwxrwxrwx 1 root other
16 May 24 15:54 libgdbm.so.2
-> libgdbm.so.2.0.0
-rwxr-xr-x 1 root
root 30848 Dec 25
1999 libgdbm.so.2.0.0
-rw-r--r-- 1 root
root 325596 Dec 19
1999 libiberty.a
-rw-r--r-- 1 root
root 49032 Jan 16
1999 libmmalloc.a
-rw-r--r-- 1 root
root 238540 Jan 16
1999 libopcodes.a
-rwxr-xr-x 1 root
root 441
Jan 16 1999 libopcodes.la
-rw-r--r-- 1 root
root 632984 Jan 16
1999 libreadline.a
-rw-r--r-- 1 root
root 2162324 Dec 19 1999
libstdc++.a.2.10.0
This is confusing. Have i set any
environment variables wrong ??
I know this problem had occurred previously on
the mailing lists, but going through them didn't help me solve my
problem.
Any help would be greatly
appreciated
Thank you