[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#5460) unresolved symbol
Full_Name: ST Wong
Version: 2.4.8
OS: CentOS 5.1
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (137.189.29.184)
Got error when compiling Openldap 2.4.8 with BerkeleyDB 4.6:
---------------------- cut here -----------------------
...
checking for db.h... yes
checking for Berkeley DB major version... 4
checking for Berkeley DB minor version... 3
checking for Berkeley DB link (-ldb-4.3)... (cached) no
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4-3)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB version match... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB/HDB backends... no
configure: error: BDB/HDB: BerkeleyDB version incompatible
---------------------- cut here -----------------------
In config.log:
---------------------- cut here -----------------------
configure:17625: checking for resolver link (default)
configure:17691: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.6/include
-L/usr/local/BerkeleyDB.4.6/lib conftest.c >&5
/tmp/ccczbyKW.o: In function `main':
/usr/local/src/openldap-2.4.8/conftest.c:113: undefined reference to
`__res_query'
/usr/local/src/openldap-2.4.8/conftest.c:132: undefined reference to
`__dn_expand'
collect2: ld returned 1 exit status
---------------------- cut here -----------------------
Have to add "-lresolv" to LDFLAGS in order to resolve the problem. I suppose
configure will add all libraries required.
Thanks a lot.