Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-08-2011, 06:06 AM   #1
Registered: Aug 2010
Posts: 69

Rep: Reputation: 1
OPEN LDAP Installation/cross Compilation error.

I think I fixed the Database related error during openldap configure step.

configure: error: BerkeleyDB version incompatible with BDB/HDB backends

I have downloaded the new DB "db-4.8.26" and I configured it for unix i.e build_unix. and compiled it successfully.

after this I configured the openldap-2.4.26 successfully with the following command.

./configure --host=mips CC=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc LD=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-ld CFLAGS="-g -O2" CPPFLAGS="-I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix" --prefix=/mips/ldap --with-yielding_select=no

after that I build teh dependencies successfully with the command "make depend"

but when I compile I am getting the following error.

/bin/sh ../../libtool --mode=compile /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -g -O2 -I../../include -I../../include -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix -DLBER_LIBRARY -c version.c
/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -g -O2 -I../../include -I../../include -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix -DLBER_LIBRARY -c version.c -o version.o
/bin/sh ../../libtool --mode=link /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -g -O2 -release 2.4 -version-info 9:1:7 -rpath /mips/ldap/lib -o assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo memory.lo options.lo sockbuf.lo stdio.lo version.lo -lresolv
rm -fr .libs/liblber.a .libs/ .libs/liblber.lai
ar cru .libs/liblber.a assert.o decode.o encode.o io.o bprint.o debug.o memory.o options.o sockbuf.o stdio.o version.o
ranlib .libs/liblber.a
(cd .libs && rm -f && ln -s ../
/bin/sh ../../libtool --mode=link /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -static -g -O2 -o dtest dtest.o ../../libraries/liblutil/liblutil.a -lresolv
/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -g -O2 -o dtest dtest.o ./.libs/liblber.a ../../libraries/liblutil/liblutil.a -lresolv
./.libs/liblber.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[2]: *** [dtest] Error 1
make[2]: Leaving directory `/product/wibro/premium/src/APP/Protocols/ASNGW/openldap-2.4.26/libraries/liblber'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/product/wibro/premium/src/APP/Protocols/ASNGW/openldap-2.4.26/libraries'
make: *** [all-common] Error 1

I thought this is because I am compiling openldap for MIPS architecture and db-4.8.26 is compiled for normal linux.

So i thought I'll compile db-4.8.26 for MIPS and run the following command

../dist/configure --host=mips CC=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc LD=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-ld CFLAGS="-g -O2"

and tried to compile this for MIPS, but same error is happening here also. please check the below error

[vijay@trlx6 build_unix]$ make
./libtool --mode=link /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -g -O2 -o db_archive \
db_archive.o util_sig.o libdb-4.8.a -lpthread
libtool: link: /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -g -O2 -o db_archive db_archive.o util_sig.o libdb-4.8.a -lpthread
/opt/montavista/pro/devkit/mips/fp_be/bin/../lib/gcc-lib/mips-hardhat-linux/3.3.1/../../../../mips-hardhat-linux/bin/ld: db_archive.o: Relocations in generic ELF (EM: 3)
db_archive.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [db_archive] Error 1

Kindly help me where I am making mistake and how it can be fixed??

Thank you.

Vijay S.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MIPS cross compilation error sheelavantar Linux - Software 0 09-06-2011 03:56 AM
sendmail cross compilation error tamilm Linux - Software 1 10-24-2008 09:29 AM
cross compilation error for ssh- tamilm Linux - Networking 1 09-17-2008 03:32 PM
linking error during cross compilation with ucibc libraries raklo Linux - Kernel 0 03-26-2007 12:48 AM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 01:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration