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

build failure on 2.2.x and 2.1.1x for shared only target



Hi,

I'm configuring openldap with

	./configure --enable-shared --disable-static

but the compile always fails like so (for 2.2.7)

/bin/sh /usr/src/sources/openldap-2.2.7/libtool --mode=compile gcc-3 -O2 -I../../../include -I../../../include -I.. -I./.. -I/usr/local/include -O2 -c version.c
gcc-3 -O2 -I../../../include -I../../../include -I.. -I./.. -I/usr/local/include -O2 -c version.c -fPIC -DPIC -o version.lo
ar ruv libback_bdb.a `echo init.lo tools.lo config.lo add.lo bind.lo compare.lo delete.lo modify.lo modrdn.lo search.lo extended.lo referral.lo operational.lo attr.lo index.lo key.lo dbcache.lo filterindex.lo dn2entry.lo dn2id.lo error.lo id2entry.lo idl.lo nextid.lo cache.lo trans.lo ctxcsn.lo | sed 's/\.lo/.o/g'` version.o
ar: init.o: No such file or directory
make[3]: *** [libback_bdb.a] Error 1
make[3]: Leaving directory `/usr/src/sources/openldap-2.2.7/servers/slapd/back-bdb'
make[2]: *** [.backend] Error 1
make[2]: Leaving directory `/usr/src/sources/openldap-2.2.7/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/sources/openldap-2.2.7/servers'
make: *** [all-common] Error 1



and the same for 2.1.28.

/bin/sh /usr/src/sources/openldap-2.1.28/libtool --mode=compile gcc-3 -O2 -I../../../include -I../../../include -I.. -I./.. -I/usr/local/include -O2 -c version.c
gcc-3 -O2 -I../../../include -I../../../include -I.. -I./.. -I/usr/local/include -O2 -c version.c -fPIC -DPIC -o version.lo
ar ruv libback_bdb.a `echo init.lo tools.lo config.lo add.lo bind.lo compare.lo delete.lo modify.lo modrdn.lo search.lo extended.lo passwd.lo referral.lo attribute.lo group.lo operational.lo attr.lo index.lo key.lo dbcache.lo filterindex.lo dn2entry.lo dn2id.lo error.lo id2entry.lo idl.lo nextid.lo cache.lo | sed 's/\.lo/.o/g'` version.o
ar: init.o: No such file or directory
make[3]: *** [libback_bdb.a] Error 1
make[3]: Leaving directory `/usr/src/sources/openldap-2.1.28/servers/slapd/back-bdb'
make[2]: *** [.backend] Error 1
make[2]: Leaving directory `/usr/src/sources/openldap-2.1.28/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/sources/openldap-2.1.28/servers'
make: *** [all-common] Error 1



Clearly the 'sed' line in the Makefile is incorrect since there are no .o targets created as libtool only creates .lo files for the shared -fPIC objects.

Or am i doing something wrong ?

Thanks
Mitch