<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.8.5">
</HEAD>
<BODY>
On Tue, 2016-03-22 at 14:31 +0000, Collins, Alex wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi guys
I'm in the process of building the SP on Solaris11.
I am using the native Solaris OpenSSL and Curl. I am aware of the potential issues and it's not related at this point.
If Curl and or OpenSSL bite me I'll build them as required.
Everything else is downloaded from the various links detailed in the Solaris Build info at:
<A HREF="https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPSolarisSourceBuild">https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPSolarisSourceBuild</A>
All is well until I reach xmltooling
Solaris 11.3
SolarisStudio 12.4
GNU Make.
./configure CXXFLAGS='-m64' CFLAGS='-m64' --prefix=/wwwdata/opt/shibboleth-sp --with-log4shib=/wwwdata/opt/shibboleth-sp --with-curl=/usr/bin/curl --with-openssl=/usr/bin/openssl --with-boost=/wwwdata/opt/shibboleth-sp/boost_1_60_0/ -C
I get as far as:
checking for pthread_rwlock_init... yes
checking whether the compiler implements namespaces... yes
checking whether the compiler supports Standard Template Library... yes
checking for Boost headers version >= 0.0.0... /wwwdata/opt/shibboleth-sp/boost_1_60_0/
checking for Boost's header version...
configure: error: invalid value: boost_major_version=''
config.log gives few clues.
Ideas and suggestions welcome.....
</PRE>
</BLOCKQUOTE>
<BR>
I remember having issues building against boost on Solaris 11.2. Its been a while since I built my packages (I need to go back and update my libraries). But, here are my boost and xmltooling-c notes from when I did it last. Like scott recommends, I had to add the '-library=stlpport4' as a CXXFLAGS parameter.<BR>
<BR>
<BLOCKQUOTE>
<PRE>
Require build env variables:
export SHIB_DIR=/opt/shib-sp
export CFLAGS="-xO2"
export CXXFLAGS="-xO2 -library=stlport4"
export LDFLAGS="-R$SHIB_DIR/lib -L$SHIB_DIR/lib -R/usr/local/lib -L/usr/local/lib"
export REPO_BUILD_DIR=/admin/repo_builds/
<... built log4shib, xerces-c, xml-security-c ..>
o boost
http://www.boost.org/more/getting_started/unix-variants.html
http://www.boost.org/boost-build2/doc/html/index.html
cd /opt/bofh/builds
tar xzvf /admin/software/shibboleth/sp/srcs/boost_1_57_0.tar.gz
cd boost_1_57_0
vim ./bootstrap.sh
#!/bin/sh --> #!/bin/bash
mkdir package-root
./bootstrap.sh --with-toolset=sun --prefix=/usr/local
./b2 link=shared runtime-link=shared address-model=64 -j32 --prefix=./package-root install
mv package-root/lib/ package-root/lib-64
./b2 link=shared runtime-link=shared address-model=32 -j32 --prefix=./package-root install
mv package-root/lib-64 package-root/lib/sparcv9
/admin/software/ips-builds/scripts/boost_ips-builds.pl ./package-root
pkgsend publish -d ./package-root -s http://10.4.1.43:8080/ ./build.p5m.dep.res
pkg install boost
o XMLTooling-C
cd /opt/bofh/builds
tar xzvf /admin/software/shibboleth/sp/srcs/xmltooling-1.5.3.tar.gz
cd xmltooling-1.5.3
./configure --with-log4shib=$SHIB_DIR --prefix=$SHIB_DIR
# boost, openssl, xerces, xmlsec, and curl should all be detected
gmake -j32
mkdir package-root
DESTDIR=`pwd`/package-root gmake install
/admin/software/ips-builds/scripts/xmltooling_ips-builds.pl ./package-root
pkgsend publish -d ./package-root -s http://10.4.1.43:8080/ ./build.p5m.dep.res
pkg install xmltooling
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>