Skip to Content.
Sympa Menu

shibboleth-dev - Re: target 1.2: compiling log4cpp on Solaris with Sun CC?

Subject: Shibboleth Developers

List archive

Re: target 1.2: compiling log4cpp on Solaris with Sun CC?


Chronological Thread 
  • From: Valery Tschopp <>
  • To: Derek Morr <>,
  • Subject: Re: target 1.2: compiling log4cpp on Solaris with Sun CC?
  • Date: Tue, 29 Jun 2004 19:22:30 +0200
  • Organization: SWITCH - Swiss Education & Research Network

Hi Derek,

Thanks a lot for the help, but unfortunately it still doesn't work, its impossible to link with log4cpp library :-(
I'm totally deseperate (0_o)

Does anyone already succeed to compile shib target 1.2 on a solaris 8 host with Sun C++ compiler?

$ uname -a
SunOS 5.8 Generic_117350-02 sun4u sparc SUNW,Sun-Blade-100

$ /opt/SUNWspro/bin/CC -V
CC: Forte Developer 7 C++ 5.4 2002/03/09


I have a script to build log4cpp 0.3.4b, perhap's could you also try and see if it work for you.

Otherwise is this possible to compile shib target 1.2 with gcc3 and load the module with a Sun compiled apache?


#!/bin/bash
set -x

# build on Solaris with SUNWspro
SUNWSPRO=/opt/SUNWspro/bin
export PATH=$SUNWSPRO:/usr/ccs/bin:/usr/bin

# + compilers and linker
export CC=$SUNWSPRO/cc
export CXX=$SUNWSPRO/CC

# + flags
#export CFLAGS="-fast -xtraget=ultra"
export CFLAGS=""
export CXXFLAGS=$CFLAGS

# + make
export MAKE=make

# build log4cpp 0.3.4b
export LD="CC -KPIC"
export CXXFLAGS="$CXXFLAGS -lrt -lpthread"
#export CXXFLAGS="$CXXFLAGS -lCrun -lCstd -lpthread"

# build
cd log4cpp-0.3.4b

[ "$1" == "clean" ] && $MAKE distclean

./configure --prefix=/opt/shibboleth-1.2 --with-pthreads=yes --disable-static

[ "$?" == 0 ] && $MAKE
[ "$?" == 0 ] && $MAKE install



Valery Tschopp wrote:

I deseperately try to compile the log4cpp on a solaris8 machine, using SUNWspro compiler...


<snip>

CC: Warning: Option -pthreads passed to ld, if ld is invoked, ignored otherwise


Note, according to Sun ( http://docs.sun.com/db/doc/806-6867/6jfpgdcob?a=view ) -- to compile with pthreads on Forte, you use "-lpthread". Scott, INSTALL.txt should probably be updated to reflect this (any chance you could also mention that blastwave.org has gcc for Solaris too :).

FWIW, I've build log4cpp on Solaris 8 with the following setup:

Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16 (SPARC)
Sun C++ 5.5 Patch 113819-08 2004/04/13 (x86)

export CC=/opt/SUNWspro/bin/cc
export CXX=/opt/SUNWspro/bin/CC
export CXXFLAGS="-fast -xarch=v8 -lrt -lpthread"
export MAKE=gmake

./configure --with-pthreads=yes --enable-static=no --enable-doxygen=no

You might have to set LD="CC -KPIC".

-derek




Archive powered by MHonArc 2.6.16.

Top of Page