[Date Prev][Date Next]
Re: Re: Re: make test fails
In order to compile OL 2.0.27 with Berkeley BDB4.0.14 you should try the
following configure (do a bash file for convenience):
export CPPFLAGSexport LDFLAGSexport LD_LIBRARY_PATHexport CC./configure --with-ldbm-api¾rkeley --enable-bdb --without-tls
ln -s /usr/local/Berkeley4.0/lib/lib4.0.so /usr/lib/lib4.0.so # Check the
-1- For HP-UX u should check if 'export' works; otherwise try 'env' or
-2- If u enable tls or else make sure that libs can be found. For testing
purpose disable them as above
-3- If u do ./configure --help u get all other options
-4- It works for Linux but Linux is Linux :-)
The PTHREAD problem is maybe due to the platform configuration: for testing
purposes try to add the '--without-threads' in the ./configure and check if
it works. Anyway threads are useful ...
If unsuccess fall back to a previous version or (better) try to understand
how to enable your machine to use the PTHREADS
Data: mercoledì 05 marzo 2003 12.14.34
A: Walter Vendraminetto; OpenLDAP List
Oggetto: Re: Re: make test fails
> What parameters did u pass to the "./configure" ?
As per your suggestion, i tried openldap-2.0.27 and bdb-4.0.14
configure itself gives error as
checking for pthread.h... yes
checking POSIX thread version... final
checking for LinuxThreads pthread.h... no
checking for GNU Pth pthread.h... no
checking for sched.h... yes
checking for pthread_create in default libraries... no
checking for pthread link with -kthread... no
checking for pthread link with -pthread... no
checking for pthread link with -pthreads... no
checking for pthread link with -mthreads... no
checking for pthread link with -thread... no
checking for pthread link with -lpthread -lmach -lexc -lc_r... no
checking for pthread link with -lpthread -lmach -lexc... no
checking for pthread link with -lpthread -Wl,-woff,85... no
checking for pthread link with -lpthread... no
checking for pthread link with -lc_r... no
checking for pthread link with -threads... no
checking for pthread link with -lpthreads -lmach -lexc -lc_r... no
checking for pthread link with -lpthreads -lmach -lexc... no
checking for pthread link with -lpthreads -lexc... no
checking for pthread link with -lpthreads... no
configure: error: could not locate usable POSIX Threads
But on same machine, openldap-2.0.7 is configured well without any posix
Could you plz tell me what may be the problem and how to avoid this.
Thanks for your time
> You should check the file config.log before doing "make depend" to be sure
> that your configuration is accepted ..
> Why don't u try to compile a more recent version of Berkeley DB (not the
> latest if u don't use OpenLDAP 2.1.x) ?
> -------Messaggio originale-------
> Da: Rahul
> Data: mercoledì 05 marzo 2003 06.47.30
> A: Walter Vendraminetto; OpenLDAP List
> Oggetto: Re: make test fails
> Hello Walter,
> Thanks for your help. But i built db as a static one, so "ldd slapd" - not
> listed the db library
> Could you plz help me to solve this.
> I chked the pernmissions too.
> But i'm not able to solve.
> I'm using
> Openldap-2.0.15(since openldap-2.0.27 has configure problem(could not able
> to locate posix threads)
> Bdb- 2.7.7.
> OS HP-UX(itanium processor)
> Pz help me asap.
> ----- Original Message -----
> From: Walter Vendraminetto <email@example.com>
> To: OpenLDAP List <openldap-software@OpenLDAP.org>
> Sent: Tuesday, March 04, 2003 7:51 PM
> Subject: Re: make test fails
> > Check that slapd is able to find the Berkeley libs (if i'm not wrong
> > OpenLDAP 2.0.27 is recommended version 4.0.x).
> > Do "ldd slapd"
> > If the berkeley libs are not found just put a link in /usr/lib to
> > /usr/Berkeleyx.x.x/lib/libx.x.so , just like i did ...
> > Hope this helps
> > Bye
> > Walter
> > -------Messaggio originale-------
> > Da: Rahul
> > Data: martedl 04 marzo 2003 14.03.23
> > A: openldap-software@OpenLDAP.org
> > Oggetto: make test fails
> > Hello all,
> > As there is a pthread problem in openldap-2.0.27, i compiled
> > with berkely db-2.7.7
> > all configure, make steps went fine.
> > But make test fails, so i installed it and while starting slapd, not
> > start
> > i.e
> > ldapadd -f <pathto>/<ldif filename> -xv-D"cnÚnager,dc?main,dc/m" -w
> > secret -d 8
> > gives---------->
> > ldap_initialize( <DEFAULT> )
> > ldap_bind: Can't contact LDAP server
> > what may be the problem? i',m not able to trceout.
> > plz help me asap.
> > Regards,
> > -sadha