[Date Prev][Date Next] [Chronological] [Thread] [Top]

Open LDAP Installation/Configuration Failed.

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

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.

Vijay S.

Treat yourself at a restaurant, spa, resort and much more with Rediff Deal ho jaye!