[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problem building OpenLDAP on Solaris



Hi.
I faced this problem yesterday trying to compile OpenLDAP 2.1.16 in the same
environment.
My solution was to create symbolic links in /usr/local/lib and
/usr/local/include for OpenSSL and BDB libs and headers respectively. For
instance:
er:updater# ls -l /usr/local/lib/libdb*
lrwxrwxrwx   1 root     other         41 Apr  2 14:43
/usr/lib/libdb-4.1.a -> /u
sr/local/BerkeleyDB.4.1/lib/libdb-4.1.a
lrwxrwxrwx   1 root     other         42 Apr  2 14:42
/usr/lib/libdb-4.1.la -> /
usr/local/BerkeleyDB.4.1/lib/libdb-4.1.la
lrwxrwxrwx   1 root     other         42 Apr  2 14:42
/usr/lib/libdb-4.1.so -> /
usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so
lrwxrwxrwx   1 root     other         40 Apr  2 14:41 /usr/lib/libdb-4.so ->
/us
r/local/BerkeleyDB.4.1/lib/libdb-4.so
lrwxrwxrwx   1 root     other         37 Apr  2 14:42 /usr/lib/libdb.a ->
/usr/l
ocal/BerkeleyDB.4.1/lib/libdb.a
lrwxrwxrwx   1 root     other         38 Apr  2 14:42 /usr/lib/libdb.so ->
/usr/
local/BerkeleyDB.4.1/lib/libdb.so

After doing that compilation was successful.

----- Original Message -----
From: "Alan Sparks" <asparks@doublesparks.net>
To: <markliu1989@yahoo.com>
Cc: <OpenLDAP-software@OpenLDAP.org>
Sent: Thursday, April 03, 2003 5:08 PM
Subject: Re: Problem building OpenLDAP on Solaris


> I have a little 'doit' script myself that sets up the required LDFLAGS,
> CFLAGS, and CPPFLAGS for stuff to work right for my Solaris stuff.  This
> will give you some ideas...
>
> CC=gcc
> BDB_ROOT=/usr/local/BerkeleyDB/4.1
> SSL_ROOT=/usr/local/ssl
> CFLAGS="-I$BDB_ROOT/include -I/usr/local/include -I$SSL_ROOT/include"
> CPPFLAGS="-I$BDB_ROOT/include -I/usr/local/include -I$SSL_ROOT/include"
> LDFLAGS="-L$BDB_ROOT/lib -L/usr/local/lib -L$SSL_ROOT/lib"
> LIBS="-lgnuregex"
> export CC CFLAGS LDFLAGS CPPFLAGS LIBS
>
> ./configure --prefix=/opt/ldap ...
>
>
> Mark Liu said:
> > I am trying to build OpenLDAP on my Sun Sparc work
> > station running Solaris 9.
> >
> > I have actually successfully installed OpenSSL under
> > /usr/local/openssl, and also Berkeley DB 4.1.25 under
> > /usr/local/BerkeleyDB.4.1.25.
> >
> > When I run ./configure for OpenLDAP, the script
> > complains:
> >
> > ...
> > checking for ssl.h... no
> > checking for SSLeay_add_ssl_algorithms in -lssl... no
> > checking for SSL_library_init in -lssl... no
> > checking for ssl3_accept in -lssl... no
> > configure: warning: Could not locate TLS/SSL package
> > configure: warning: TLS data protection not supported!
> > ...
> > checking for db.h... yes
> > checking for Berkeley DB link (default)... no
> > checking for Berkeley DB link (-ldb41)... no
> > checking for Berkeley DB link (-ldb-41)... no
> > checking for Berkeley DB link (-ldb-4.1)... no
> > checking for Berkeley DB link (-ldb-4-1)... no
> > checking for Berkeley DB link (-ldb-4)... no
> > checking for Berkeley DB link (-ldb4)... no
> > checking for Berkeley DB link (-ldb)... no
> > checking for Berkeley DB link (-ldb3)... no
> > checking for Berkeley DB link (-ldb-3)... no
> > checking for Berkeley DB link (-ldb2)... no
> > checking for Berkeley DB link (-ldb-2)... no
> > checking for Berkeley DB link (-ldb1)... no
> > checking for Berkeley DB link (-ldb-1)... no
> > configure: error: BDB: BerkeleyDB not available
> >
> > Obviously the script is not able to fine these
> > installed packages.  I do not know how to handle this,
> > being new to both LDAP and Solaris.
> >
> > Please kindly help.  Thanks a lot.
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online, calculators, forms, and more
> > http://tax.yahoo.com
>
>
> ===========
> Alan Sparks, UNIX/Linux Systems Administrator
<asparks@doublesparks.net>
>
>