[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Options for 64 bit missing in linkmode during symbol table compilati
From: |
Dagobert Michelsen |
Subject: |
Re: Options for 64 bit missing in linkmode during symbol table compilation |
Date: |
Fri, 18 Sep 2009 14:13:08 +0200 |
Hi Ralf,
Am 11.09.2009 um 19:39 schrieb Ralf Wildenhues:
* Dagobert Michelsen wrote on Fri, Sep 11, 2009 at 01:38:23PM CEST:
I have a problem mit the current libtool provided by OpenLDAP 2.4.17
when linking 64 bit. Obviously, the flags to turn on 64 bit
compilation are not passed (-xarch=v9 or -m64)
/bin/sh ../../libtool --mode=link
/opt/studio/SOS11/SUNWspro/bin/cc -static -xO3 -xarch=v9
-xarch=v9 -L/opt/csw/lib/64 -dlopen self -o slapd main.o
[...]
version.o libbackends.a liboverlays.a
../../libraries/liblunicode/liblunicode.a ../../libraries/
librewrite/librewrite.a
../../libraries/liblutil/liblutil.a
../../libraries/libldap_r/libldap_r.la ../../libraries/liblber/
liblber.la
-lltdl -ldb-4.7 -lodbc -lslp -lssl -lcrypto -lresolv -lgen
-lnsl -lsocket -lpthread \
mkdir .libs
rm -f .libs/slapd.nm .libs/slapd.nmS .libs/slapd.nmT
creating .libs/slapdS.c
(cd .libs && /opt/studio/SOS11/SUNWspro/bin/cc -c "slapdS.c")
rm -f .libs/slapdS.c .libs/slapd.nm .libs/slapd.nmS .libs/slapd.nmT
/opt/studio/SOS11/SUNWspro/bin/cc -xO3 -xarch=v9 -xarch=v9 .libs/
slapdS.o -o slapd main.o globals.o bconfig.o config.o daemon.o
[...]
slapschema.o version.o -L/opt/csw/lib/64 libbackends.a
liboverlays.a ../../libraries/liblunicode/liblunicode.a
../../libraries/librewrite/librewrite.a
../../libraries/liblutil/liblutil.a ../../libraries/
libldap_r/.libs/libldap_r.a
/home/dam/mgar/pkg/openldap/trunk/work/build-isa-sparcv9/
openldap-2.4.17/libraries/liblber/.libs/liblber.a
../../libraries/liblber/.libs/liblber.a -lltdl -ldb-4.7 /opt/csw/
lib/sparcv9/libodbc.so
-L/usr/lib/64 -ldl -liconv -lthread -lslp -lssl -lcrypto -lresolv
-lgen -lnsl -lsocket -lpthread
ld: fatal: file .libs/slapdS.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to slapd
How exactly did you invoke configure and make?
The line is rather complicated as it is generated from a package build
framework:
cd work/build-isa-sparcv9/openldap-2.4.18 && prefix="/opt/csw"
exec_prefix="/opt/csw" bindir="/opt/csw/bin/sparcv9" sbindir="/opt/csw/
sbin/sparcv9" libexecdir="/opt/csw/libexec/sparcv9" datadir="/opt/csw/
share" sysconfdir="/etc/opt/csw" sharedstatedir="/opt/csw/share"
localstatedir="/var/opt/csw" libdir="/opt/csw/lib/64" infodir="/opt/
csw/share/info" lispdir="/opt/csw/share/emacs/site-lisp" mandir="/opt/
csw/share/man" docdir="/opt/csw/share/doc" sourcedir="/opt/csw/src"
CPPFLAGS="-I/opt/csw/include" CFLAGS="-xO3 -xarch=v9" CXXFLAGS="-xO3 -
xarch=v9 -I/opt/csw/include" LDFLAGS="-xarch=v9 -L/opt/csw/lib/64"
ASFLAGS="" OPTFLAGS="-xO3 -xarch=v9" CC="/opt/studio/SOS11/SUNWspro/
bin/cc" CXX="/opt/studio/SOS11/SUNWspro/bin/CC" CC_HOME="/opt/studio/
SOS11/SUNWspro" CC_VERSION="Sun C 5.8 Patch 121015-07 2009/04/22"
CXX_VERSION="Sun C++ 5.8 Patch 121017-20 2009/04/22" GARCH="sparc"
GAROSREL="5.8" GARPACKAGE="trunk" LD_OPTIONS="-R/opt/csw/lib/\$ISALIST
-R/opt/csw/lib/64" PKG_CONFIG_PATH="/opt/csw/lib/64/pkgconfig"
DESTDIR="/home/dam/mgar/pkg/openldap/trunk/work/install-isa-sparcv9" ./
configure --prefix=/opt/csw --exec_prefix=/opt/csw --bindir=/opt/csw/
bin/sparcv9 --sbindir=/opt/csw/sbin/sparcv9 --libexecdir=/opt/csw/
libexec/sparcv9 --datadir=/opt/csw/share --sysconfdir=/etc/opt/csw --
sharedstatedir=/opt/csw/share --localstatedir=/var/opt/csw --libdir=/
opt/csw/lib/64 --infodir=/opt/csw/share/info --includedir=/opt/csw/
include --mandir=/opt/csw/share/man --enable-crypt --enable-lmpasswd --
enable-modules --enable-rlookups --enable-slp --without-cyrus-sasl --
enable-backends=mod --enable-overlays=mod --disable-ndb
Can you try either of the following in a clean build tree and post the
resulting links as you did before, iff they still fail?
./configure CC='/opt/studio/SOS11/SUNWspro/bin/cc -xarch=v9'
make
I need at least this for bdb:
./configure CC='/opt/studio/SOS11/SUNWspro/bin/cc -xarch=v9'
CPPFLAGS='-I/opt/csw/include' LDFLAGS='-L/opt/csw/lib/64 -R/opt/csw/
lib/64' && gmake
Works fine.
And it also works with modules:
./configure CC='/opt/studio/SOS11/SUNWspro/bin/cc -xarch=v9'
CPPFLAGS='-I/opt/csw/include' LDFLAGS='-L/opt/csw/lib/64 -R/opt/csw/
lib/64' --enable-modules && gmake
./configure CC='/opt/studio/SOS11/SUNWspro/bin/cc' CFLAGS='-xarch=v9'
make
Without modules this works also:
./configure CC='/opt/studio/SOS11/SUNWspro/bin/cc' CFLAGS='-xarch=v9'
CPPFLAGS='-I/opt/csw/include' LDFLAGS='-L/opt/csw/lib/64 -R/opt/csw/
lib/64' && gmake
This does not work:
./configure CC='/opt/studio/SOS11/SUNWspro/bin/cc' CFLAGS='-xarch=v9'
CPPFLAGS='-I/opt/csw/include' LDFLAGS='-L/opt/csw/lib/64 -R/opt/csw/
lib/64' --enable-modules && gmake
/bin/sh ../../libtool --mode=link /opt/studio/SOS11/SUNWspro/bin/cc -
static -xarch=v9 -L/opt/csw/lib/64 -R/opt/csw/lib/64 -dlopen self -o
slapd main.o globals.o bconfig.o config.o daemon.o connection.o
search.o filter.o add.o cr.o attr.o entry.o backend.o backends.o
result.o operation.o dn.o compare.o modify.o delete.o modrdn.o
ch_malloc.o value.o ava.o bind.o unbind.o abandon.o filterentry.o
phonetic.o acl.o str2filter.o aclparse.o init.o user.o lock.o
controls.o extended.o passwd.o schema.o schema_check.o schema_init.o
schema_prep.o schemaparse.o ad.o at.o mr.o syntax.o oc.o saslauthz.o
oidm.o starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o
mra.o mods.o sl_malloc.o zn_malloc.o limits.o operational.o
matchedValues.o cancel.o syncrepl.o backglue.o backover.o ctxcsn.o
ldapsync.o frontend.o slapadd.o slapcat.o slapcommon.o slapdn.o
slapindex.o slappasswd.o slaptest.o slapauth.o slapacl.o component.o
aci.o alock.o txn.o slapschema.o version.o libbackends.a
liboverlays.a ../../libraries/liblunicode/liblunicode.a ../../
libraries/librewrite/librewrite.a ../../libraries/liblutil/
liblutil.a ../../libraries/libldap_r/libldap_r.la ../../libraries/
liblber/liblber.la -lltdl -ldb-4.7 -lssl -lcrypto -lresolv -
lgen -lnsl -lsocket -lpthread \
rm -f .libs/slapd.nm .libs/slapd.nmS .libs/slapd.nmT
creating .libs/slapdS.c
(cd .libs && /opt/studio/SOS11/SUNWspro/bin/cc -c "slapdS.c")
rm -f .libs/slapdS.c .libs/slapd.nm .libs/slapd.nmS .libs/slapd.nmT
/opt/studio/SOS11/SUNWspro/bin/cc -xarch=v9 .libs/slapdS.o -o slapd
main.o globals.o bconfig.o config.o daemon.o connection.o search.o
filter.o add.o cr.o attr.o entry.o backend.o backends.o result.o
operation.o dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o
value.o ava.o bind.o unbind.o abandon.o filterentry.o phonetic.o acl.o
str2filter.o aclparse.o init.o user.o lock.o controls.o extended.o
passwd.o schema.o schema_check.o schema_init.o schema_prep.o
schemaparse.o ad.o at.o mr.o syntax.o oc.o saslauthz.o oidm.o
starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o mra.o
mods.o sl_malloc.o zn_malloc.o limits.o operational.o matchedValues.o
cancel.o syncrepl.o backglue.o backover.o ctxcsn.o ldapsync.o
frontend.o slapadd.o slapcat.o slapcommon.o slapdn.o slapindex.o
slappasswd.o slaptest.o slapauth.o slapacl.o component.o aci.o alock.o
txn.o slapschema.o version.o -L/opt/csw/lib/64 libbackends.a
liboverlays.a ../../libraries/liblunicode/liblunicode.a ../../
libraries/librewrite/librewrite.a ../../libraries/liblutil/
liblutil.a ../../libraries/libldap_r/.libs/libldap_r.a /home/dam/mgar/
pkg/openldap/trunk/openldap-2.4.18/libraries/liblber/.libs/
liblber.a ../../libraries/liblber/.libs/liblber.a -lltdl -ldb-4.7 -
lssl -lcrypto -lresolv -lgen -lnsl -lsocket -lpthread -R/opt/csw/lib/64
ld: fatal: file .libs/slapdS.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to slapd
rm -f .libs/slapdS.o
gmake[2]: *** [slapd] Error 1
I verified this in OpenLDAP 2.4.18 now and the error persists.
Best regards
-- Dago