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

Re: Segmentation fault on 2.1.13



I have tried reinstalled db-4.1.25, sasl-2.1.12 and openldap-2.1.13 several times. I indeed found that there might be an issue with db library linking. But I had forced to use db-4.1.25 libs as:


CPPFLAGS="-I/usr/local/bdb4.1.25/include" LDFLAGS="-L/usr/local/bdb4.1.25/lib"


Before a symlink for libdb-4.1.so to libdb41.so or libdb-41.so:

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 (-ldb4)... no
checking for Berkeley DB link (-ldb-4)... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB backend... yes


After the symlink for libdb41.so to libdb-4.1.so is made:

hecking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb41)... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB backend... yes


It appears that CPPFLAGS does not work. The db-4.1.25 libraries and symlink must in /lib or /usr/lib.


Anyway, I am pretty sure 2.1.13 now links to db-4.1.25 library. However, I still got seg fault.

Any help is appreciated.

Thanks.

Simon Gao











Michael Ströder wrote:

Simon Gao wrote:

I still got segmentation fault even without any index. This is really wired. Have you tried 2.1.13 with your current slapd.conf yet?


Any chance you have a Berkeley-DB library mix on your system? Check your RPM-list.

Ciao, Michael.