Compiling Cyrus-SASL GIT master on Solaris 11.3
Kraft, Matthias
Matthias.Kraft at softwareag.com
Fri Mar 17 09:34:56 EDT 2017
Hi everybody,
I am trying to compile the HEAD of the Cyrus-SASL github repository on a Solaris 11.3 x86_64 machine using the Oracle Developer Studio 12.5.
However, it ends when it tries to link the libsasl2.so complaining that a libobj.a is missing:
8<----
makr at sun2:~/sun2/cyrus-sasl-2.1.27-GIT$ (PATH="`getconf PATH`" ./configure; gmake)
[… skipping to the last few lines …]
source='../plugins/plugin_common.c' object='../plugins/plugin_common.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -DLIBSASL_EXPORTS=1 -I../include -I../plugins -I../include -I../sasldb -DOBSOLETE_CRAM_ATTR=1 -g -c -o ../plugins/plugin_common.lo ../plugins/plugin_common.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -DLIBSASL_EXPORTS=1 -I../include -I../plugins -I../include -I../sasldb -DOBSOLETE_CRAM_ATTR=1 -g -c ../plugins/plugin_common.c -KPIC -DPIC -o ../plugins/.libs/plugin_common.o
/bin/sh ../libtool --tag=CC --mode=link cc -g -o libobj.la -lresolv -lresolv -lsocket
libtool: link: ar cru .libs/libobj.a
libtool: link: ranlib .libs/libobj.a
libtool: link: ( cd ".libs" && rm -f "libobj.la" && ln -s "../libobj.la" "libobj.la" )
/bin/sh ../libtool --tag=CC --mode=link cc -g -version-info 3:0:0 -no-undefined -o libsasl2.la -rpath /usr/local/lib auxprop.lo canonusr.lo checkpw.lo client.lo common.lo config.lo external.lo md5.lo saslutil.lo server.lo seterror.lo dlopen.lo ../plugins/plugin_common.lo libobj.la -ldl -lsocket -lnsl -lsocket -lresolv -lresolv -lsocket
libtool: link: cc -G -z defs -h libsasl2.so.3 -o .libs/libsasl2.so.3.0.0 .libs/auxprop.o .libs/canonusr.o .libs/checkpw.o .libs/client.o .libs/common.o .libs/config.o .libs/external.o .libs/md5.o .libs/saslutil.o .libs/server.o .libs/seterror.o .libs/dlopen.o ../plugins/.libs/plugin_common.o -z allextract ./.libs/libobj.a -z defaultextract -ldl -lnsl -lresolv -lsocket -lc
ld: fatal: file ./.libs/libobj.a: open failed: No such file or directory
gmake[3]: *** [libsasl2.la] Error 2
gmake[3]: Leaving directory `/path/to/sun2/cyrus-sasl-2.1.27-GIT/lib'
---->8
There is indeed only a libobj.la, but no libobj.a. The same behavior can be observed on a Solaris 11.3 sparc.
The autoconf stuff had been generated on a Linux box using autoconf 2.69.
However, the same sources do compile on various Linuxes as well as AIX 7.1 and even HP-UX 11iv3 using their native compilers.
Has this been observed before? Does anyone have an idea for a solution or workaround?
I thought I ask before opening a ticket …
Thanks!
--
Matthias Kraft
Sr. Software Specialist
Uhlandstrasse 12, 64297 Darmstadt, Germany
T: +49-6151-92-1791
E: matthias.kraft at softwareag.com
W: softwareag.com
Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Eric Duffaut, Dr. Wolfram Jost, Arnd Zinnhardt; - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Andreas Bereczky - http://www.softwareag.com
More information about the Cyrus-sasl
mailing list