LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,
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 liblber.la 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/liblber.la .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
creating liblber.la
(cd .libs && rm -f liblber.la && ln -s ../liblber.la liblber.la)
/bin/sh ../../libtool --mode=link /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -static -g -O2 -o dtest dtest.o liblber.la ../../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.

Regards
Vijay S.
 
  


Reply



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 02:56 AM
sendmail cross compilation error tamilm Linux - Software 1 10-24-2008 08:29 AM
cross compilation error for ssh-3.2.9.1 tamilm Linux - Networking 1 09-17-2008 02:32 PM
linking error during cross compilation with ucibc libraries raklo Linux - Kernel 0 03-25-2007 11:48 PM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 PM.

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