mace-opensaml-users - Compiling shibboleth mods
Subject: OpenSAML user discussion
List archive
- From: James Shvarts <>
- To:
- Subject: Compiling shibboleth mods
- Date: Tue, 10 Sep 2002 11:25:26 -0700
All,
The issues with compiling log4cpp and opensaml were resolved (thanks Scott!). The following command properly set up env for log4cpp and ensured that opensaml compiled properly:
env CC=gcc CXX=/opt/gcc-3.2/bin/g++ ./configure --prefix=/nsdl/apache-common --with-pthreads
Moving along, below are a couple of other issues i have encountered while compiling shibboleth libs and modules:
(1) Compiling shibboleth code:
...
/opt/gcc-3.2/bin/g++ -g -fpic -Iinclude
-I../../opensaml/c/include
-I/nsdl/apache-common/include eduPerson/Constants.o
eduPerson/EPPNAttribute.o
eduPerson/AffiliationAttribute.o
eduPerson/PrimaryAffiliationAttribute.o
eduPerson/EntitlementAttribute.o
eduPerson/ScopedAttribute.o -o lib/libeduPerson.so
-shared -L/nsdl/apache-common/lib -Llib
-L../../opensaml/c/lib -luuid -lcurl -lxerces-c1_7_0
-lsaml -lshib
ld: warning: symbol `g_config' has differing sizes:
(file ../../opensaml/c/lib/libsaml.so
value=0x34; file lib/libshib.so value=0x8);
../../opensaml/c/lib/libsaml.so definition
taken
/opt/gcc-3.2/bin/g++ -g -fpic -Iinclude
-I../../opensaml/c/include
-I/nsdl/apache-common/include shibtest/shibtest.cpp -o
bin/shibtest -L/nsdl/apache-common/lib -Llib
-L../../opensaml/c/lib -luuid -lcurl -lxerces-c1_7_0
-lsaml -lshib -leduPerson
shibtest/shibtest.cpp: In function `int main(int,
char**)':
shibtest/shibtest.cpp:96: cannot declare variable
`conf1' to be of type `
saml::SAMLConfig'
shibtest/shibtest.cpp:96: because the following
virtual functions are
abstract:
../../opensaml/c/include/saml.h:435: virtual void
saml::SAMLConfig::saml_register_extension(const
char*, void* = 0) const
../../opensaml/c/include/saml.h:429: virtual void
saml::SAMLConfig::saml_unlock() const
../../opensaml/c/include/saml.h:428: virtual void
saml::SAMLConfig::saml_lock() const
../../opensaml/c/include/saml.h:416: virtual void
saml::SAMLConfig::term()
../../opensaml/c/include/saml.h:415: virtual bool
saml::SAMLConfig::init()
shibtest/shibtest.cpp:125: `class saml::SAMLConfig'
has no member named `
bVerbose'
shibtest/shibtest.cpp:126: no matching function for
call to `saml::SAMLConfig::
init(saml::SAMLConfig*)'
../../opensaml/c/include/saml.h:415: candidates are:
virtual bool
saml::SAMLConfig::init()
shibtest/shibtest.cpp:130: no matching function for
call to `
shibboleth::ShibConfig::init(shibboleth::ShibConfig*)'
include/shib.h:167: candidates are: virtual bool
shibboleth::ShibConfig::init()
shibtest/shibtest.cpp:136: base operand of `->' has
non-pointer type `
saml::SAMLConfig'
shibtest/shibtest.cpp:142:84: warning: pasting "::"
and "AttributeQuery" does not give a valid
preprocessing token
shibtest/shibtest.cpp:215: cannot call member function
`virtual void
shibboleth::ShibConfig::term()' without object
shibtest/shibtest.cpp:216: cannot call member function
`virtual void
saml::SAMLConfig::term()' without object
make: *** [bin/shibtest] Error 1
(2) Compiling mod_eduPerson and mod_shib:
$ make -f Makefile.gcc
/opt/gcc-3.2/bin/g++ -fpic -g -I../../../opensaml/c/include -I/nsdl/apache-common/include -I../include -I`/nsdl/apache-common/bin/apxs -q INCLUDEDIR` -I`/nsdl/apache-common/bin/apxs -q CFLAGS` `/nsdl/apache-common/bin/apxs -q CFLAGS_SHLIB` -c -o mod_eduPerson.o mod_eduPerson.cpp
In file included from /nsdl/apache-common/include/ap_config.h:1254,
from /nsdl/apache-common/include/httpd.h:72,
from mod_eduPerson.cpp:57:
/usr/include/unistd.h:278: declaration of C function `int gethostname(char*,
unsigned int)' conflicts with
/nsdl/apache-common/include/ap_config.h:193: previous declaration `int
gethostname(char*, int)' here
make: *** [mod_eduPerson.o] Error 1
The libraries libeduPerson.so and libshib.so in (1) were created successfully. I am tempted to ignore that error since it seems to be related to building shib test only
I am not sure about (2). Have you seen this error?
Thanks a lot for any ideas,
James
---------------------------------------------------mace-opensaml-users-+
For list utilities, archives, subscribe, unsubscribe, etc. please visit the
ListProc web interface at
http://archives.internet2.edu/
---------------------------------------------------mace-opensaml-users--
- Compiling shibboleth mods, James Shvarts, 09/10/2002
- RE: Compiling shibboleth mods, Scott Cantor, 09/10/2002
- Re: Compiling shibboleth mods, James Shvarts, 09/10/2002
- RE: Compiling shibboleth mods, Scott Cantor, 09/10/2002
- Re: Compiling shibboleth mods, Derek Atkins, 09/10/2002
- RE: Compiling shibboleth mods, Scott Cantor, 09/10/2002
- Re: Compiling shibboleth mods, James Shvarts, 09/10/2002
- RE: Compiling shibboleth mods, Scott Cantor, 09/10/2002
Archive powered by MHonArc 2.6.16.