[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Compile Issues on AIX 5.1
On Mon, 12 May 2003, Howard Chu wrote:
> > configure: error: BDB: BerkeleyDB not available
> >
> > I know the libraries are available in my environment, and
> > have followed all the recommendations that I can find online for how to
> > compile OpenLDAP for AIX, as I know this system is trickier than most.
>
> Look at the config.log file and see what error messages occur when it tries
> each of the above link steps.
In looking at the config.log, I find a series of entries like this;
configure:17982: checking for Berkeley DB link (-ldb-41)
configure:18039: /usr/vac/bin/xlc_r -o conftest -g -I/usr/local/ssl/include -I/usr/local/BerkeleyD
B.4.1/include -I/usr/local/include -I/usr/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.1
/lib -L/usr/local/lib -L/usr/lib conftest.c -ldb-41 -lc_r -lssl -ldb 1>&5
ld: 0706-006 Cannot find or open library file: -l db-41
ld:open(): No such file or directory
Each link attempt is met with the "No such file or directory" warning.
The contents of /usr/local/BerkeleyDB.4.1/lib are;
libdb-4.1.a
libdb-4.1.la
libdb-4.1.so
libdb-4.so -> libdb-4.1.so
libdb.a -> libdb-4.1.a
libdb.so -> libdb-4.1.so
However, the link attempt for 'db-4.1' was a little more enlightening;
configure:18063: checking for Berkeley DB link (-ldb-4.1)
configure:18120: /usr/vac/bin/xlc_r -o conftest -g -I/usr/local/ssl/include -I/usr/local/BerkeleyD
B.4.1/include -I/usr/local/include -I/usr/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.1
/lib -L/usr/local/lib -L/usr/lib conftest.c -ldb-4.1 -lc_r -lssl -ldb 1>&5
ld: 0711-317 ERROR: Undefined symbol: .mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .cond_signal
ld: 0711-317 ERROR: Undefined symbol: .mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .mutex_trylock
ld: 0711-317 ERROR: Undefined symbol: .cond_wait
ld: 0711-317 ERROR: Undefined symbol: .mutex_init
ld: 0711-317 ERROR: Undefined symbol: .cond_init
ld: 0711-317 ERROR: Undefined symbol: .mutex_destroy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
So perhaps threading support is an issue here that I also need to look into. I note
that configure --without-threads produces the same result.
I guess the configure step will keep going through *all* the different versions
of BerkeleyDB libs until it can find something suitable on the system to link
against ?
To debug this issue, I may pull out the source for the conftest.c, and compile and link
it up on its own to see if that uncovers any additional information.
The other option may be to try with the GNU build tools instead, as it sounds like
others have had success there on AIX 5.x - although the IBM compile tools don't usually
present too much of a problem....so much so that to date we have not needed gcc for
anything...
Thanks for the tips...!
Corey
Corey Scholefield
=================
Unix Systems Administrator
University of Victoria, B.C. Canada
coreys@uvic.ca