[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#5460) unresolved symbol
st-wong@cuhk.edu.hk wrote:
> 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 -----------------------
Your config.log extract doesn't match the error text above.
> Have to add "-lresolv" to LDFLAGS in order to resolve the problem. I suppose
> configure will add all libraries required.
Configure finds -lresolv automatically. That's certainly not the cause of your
problem.
Your configure session indicates that your system's default db.h came from
BerkeleyDB 4.3 which is explicitly not supported. There's no indication of any
software bug here; this ITS will be closed. Use the openldap-software mailing
list if you need more help, these questions have been covered many times there
and searching the list archives will give you the right answers.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/