I checked in the config.log file it's really a huge file. I found few errors. which are as below. configure:10558: checking for shl_load in -ldldconfigure:10583: /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -o conftest -g -O2 -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix -Bshareable conftest.c -ldld >&5/opt/montavista/pro/devkit/mips/fp_be/bin/../lib/gcc-lib/mips-hardhat-linux/3.3.1/../../../../mips-hardhat-linux/bin/ld: cannot find -ldldcollect2: ld returned 1 exit status configure:15013: /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -o conftest -g -O2 -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix -Bshareable conftest.c -lrpcrt4 >&5conftest.c:88: error: parse error before "UuidCreate"conftest.c:88: warning: data definition has no type or storage classconftest.c:89: error: parse error before "UuidToStringA"conftest.c:89: warning: data definition has no type or storage classconfigure:15013: $? = 1
configure:19146: /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -o conftest -g -O2 -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix -Bshareable conftest.c -pthread -lresolv >&5conftest.c:106: error: parse error before "rwlock"conftest.c:106: warning: data definition has no type or storage class conftest.c:125: error: too many arguments to function `ctime_r'conftest.c:133: error: too few arguments to function `gethostbyname_r'conftest.c:136: error: too few arguments to function `gethostbyaddr_r' onfigure:22645: /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -c -g -O2 -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix conftest.c >&5conftest.c: In function `main':conftest.c:170: error: parse error before ')' token conftest.c:173: error: size of array `test_array' is negative conftest.c:247: error: structure has no member named `msg_accrightslen' Is there any problem with the libtool? I am not quite familiar with libtool.
On Mon, 19 Sep 2011, vijay s sheelavantar wrote: [...]
configure:10583: /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -o conftest -g -O2 -I/product/wibro/premium/src/APP/Protocols/ASNGW/vijay/db-4.8.26/build_unix -Bshareable conftest.c -ldld >&5 /opt/montavista/pro/devkit/mips/fp_be/bin/../lib/gcc-lib/mips-hardhat-linux/3.3.1/../../../../mips-hardhat-linux/bin/ld: cannot find -ldld
Are you sure that -Bshareable is the right thing to set LDFLAGS to? That doesn't seem likely for a gcc/linux combination.
Really, for whatever reason:
checking if libtool supports shared libraries... no
it can't figure out how to make a shared object on your system. I'd check in the config.log closer to "checking dynamic linker characteristics..." for what's going on. I'd guess that it's not finding any linker match that it's happy with, and if that's the case it's not going to compile shared objects no matter what arguments you give...
NOTE: on a Fedora system that test produces "result: GNU/Linux ld.so" and, since it appears you're crosscompiling to Linux, you'd likely be served well by making a similar result appear. And even though it's extremely bad form to do so, hand-hacking the configure bash script may be in order. (Of course, if you can figure out and submit an ITS with the appropriate m4, that'd be great...)
openldap-technical@openldap.org