Skip to Content.
Sympa Menu

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

Subject: Shibboleth Developers

List archive

target 1.2: compiling log4cpp on Solaris with Sun CC?


Chronological Thread 
  • From: Valery Tschopp <>
  • To:
  • Subject: target 1.2: compiling log4cpp on Solaris with Sun CC?
  • Date: Fri, 25 Jun 2004 18:13:01 +0200
  • Organization: SWITCH - Swiss Education & Research Network

Hi,

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

Compiling goes through but every time is try to compile the log4cpp tests the link reports Undefined Symbols...

I've try with -Kpic, -KPIC, ... nothing is working, impossible to link with the lib...

As apache and openssl are already installed on the host and compiled with Sun CC, I think it is better to also compile Shibboleth Target 1.2 with Sun CC ?!?

Any idea very welcome ^_^

Config:
------

CC: Forte Developer 7 C++ 5.4 2002/03/09


PATH=/opt/SUNWspro/bin:/home/tschopp/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/X/bin:/usr/dt/bin:/home/tschopp/bin
CC=/opt/SUNWspro/bin/cc
CXX=/opt/SUNWspro/bin/CC
CFLAGS=
LDFLAGS=
CPPFLAGS=
CXXFLAGS=-pthreads -Kpic

$ cd log4cpp-0.3.4b
$ ./configure --prefix=/opt/shibboleth-1.2 --with-pthreads --disable-static
...
$ gmake
...
Making all in tests
gmake[1]: Entering directory `/home/tschopp/projects/shibboleth-1.2/log4cpp-0.3.4b/tests'
/bin/bash ../libtool --mode=link /opt/SUNWspro/bin/CC -pthreads -Kpic -o testmain testmain.o ../src/liblog4cpp.la -lnsl -lsocket
/opt/SUNWspro/bin/CC -pthreads -Kpic -o .libs/testmain testmain.o ../src/.libs/liblog4cpp.so -lnsl -lsocket -R/opt/shibboleth-1.2/lib
CC: Warning: Option -pthreads passed to ld, if ld is invoked, ignored otherwise
__1cHlog4cppOCategoryStream2l4Cpkc_6MrkTA_r1_ is out-of-date and will be regenerated
Undefined first referenced
symbol in file
void std::vector<log4cpp::NDC::DiagnosticContext,std::allocator<log4cpp::NDC::DiagnosticContext> >::__insert_aux(log4cpp::NDC::DiagnosticContext*,const log4cpp::NDC::DiagnosticContext&) ../src/.libs/liblog4cpp.so
void std::vector<log4cpp::Category*,std::allocator<log4cpp::Category*> >::__insert_aux(log4cpp::Category**,log4cpp::Category*const&) ../src/.libs/liblog4cpp.so
void std::list<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::__deallocate_buffers() ../src/.libs/liblog4cpp.so
void __rwstd::__rb_tree<log4cpp::Appender*,std::pair<log4cpp::Appender*const,bool>,__rwstd::__select1st<std::pair<log4cpp::Appender*const,bool>,log4cpp::Appender*>,std::less<log4cpp::Appender*>,std::allocator<std::pair<log4cpp::Appender*const,bool> > >::__deallocate_buffers() ../src/.libs/liblog4cpp.so
__type_0&__rwstd::rw_extract_string<std::basic_istream<char,std::char_traits<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::char_traits<char> >(__type_0&,__type_1&,__type_2) ../src/.libs/liblog4cpp.so

and so one, and so one...

Valery Tschopp - SWITCH





Archive powered by MHonArc 2.6.16.

Top of Page