Question, compiling Shibboleth SP on SPARC Solaris

Philip Gasser gasserp at gmail.com
Tue Aug 16 23:45:37 BST 2011


I try to compile shibboleth sp 2.4.3, everything from source on a
Solaris 10 SPARC box using this documentation:
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPSolarisSourceBuild
All deps compiled smoothly, but mod_shib_22.la won't compile:

/bin/sh ../libtool --silent --tag=CXX   --mode=link CC
-I/opt/csw/include -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO3 -m32 -xarch=v8
 -mt   -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE  -I/opt/csw/include   -I/opt/csw/include
-I/opt/csw/bdb48/include -I/opt/csw/apache2/include -mt -D_REENTRANT
-xO2 -library=Cstd,Crun -Qoption ccfe -stabs=no%dfltlit+no%dflthlp
-module -avoid-version -L/opt/AAI/lib -L/opt/AAI/lib -L/opt/AAI/lib
-L/opt/AAI/lib  -o mod_shib_22.la -rpath /opt/AAI/lib/shibboleth
mod_shib_22_la-mod_shib_22.lo -lxmltooling-lite
../shibsp/libshibsp-lite.la -lxerces-c -L/opt/AAI/lib -llog4shib
-lpthread -lnsl -lsocket -lpthread
CC: Warning: Option -m32 passed to ld, if ld is invoked, ignored otherwise
/usr/ccs/bin/ld: illegal option -- 3
/usr/ccs/bin/ld: illegal option -- 2
[...]
gmake[2]: *** [mod_shib_22.la] Error 1
gmake[2]: Leaving directory `/opt/aai/src/shibboleth-2.4.3/apache'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/aai/src/shibboleth-2.4.3'
gmake: *** [all] Error 2

Im using sun cc / CC and sun ld:
b1:/opt/aai/src/shibboleth-2.4.3# which ld
/usr/ccs/bin/ld

Configure:
./configure --with-log4shib=/opt/AAI --enable-apache-22
--with-apxs22=/opt/csw/apache2/sbin/apxs --prefix=/opt/aai -C
CFLAGS="-D_sparc_" CXXFLAGS="-D_sparc_ -library=Cstd,Crun"
LDFLAGS="-lz"

and then a make

I just can't figure out where does the error comes from. Apache22 is
precompiled from CSW (compiled with sun cc). Could this be a problem?
I would be grateful for any help.

Phil


More information about the users mailing list