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

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



This is a limitation in libtool. We patched around it in older releases, but
now we're using an unmodified libtool 1.4.3 so the problem has reappeared.
Maybe moving to libtool 1.5 will help, I haven't looked too carefully at the
recent versions and libtool 1.6 is already looming...

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Mitch DSouza
> Sent: Wednesday, March 24, 2004 5:58 AM
> To: openldap-software@OpenLDAP.org
> Subject: 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
>
>
>