Skip to Content.
Sympa Menu

shibboleth-dev - Re: Problems Compiling 'apache.cpp'

Subject: Shibboleth Developers

List archive

Re: Problems Compiling 'apache.cpp'


Chronological Thread 
  • From: Philip Mötteli <>
  • To:
  • Subject: Re: Problems Compiling 'apache.cpp'
  • Date: Thu, 25 Jan 2007 16:20:00 +0100

Hi,


Am 24.01.2007 um 17:17 schrieb Scott Cantor:

These are well known issues with 64-bit builds

I followed your recommendation and tried it on a 32bit OpenSuSE 10.2 installation. And yes, it has less errors:

Making all in apache
make[2]: Entering directory `/tmp/shibboleth-1.3/apache'
if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ - DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -pthread -O2 - DNDEBUG -DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 - DLDAP_DEPRECATED -DMAXLINE=4096 -O2 -march=i586 -mtune=i686 -fmessage- length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict- aliasing -DLDAP_DEPRECATED -pthread -DLINUX=2 -D_REENTRANT - D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1 -I/usr/ include/apache2 -pthread -Wall -O2 -DNDEBUG -MT mod_shib_20_la- mod_shib_20.lo -MD -MP -MF ".deps/mod_shib_20_la-mod_shib_20.Tpo" -c - o mod_shib_20_la-mod_shib_20.lo `test -f 'mod_shib_20.cpp' || echo './'`mod_shib_20.cpp; \
then mv -f ".deps/mod_shib_20_la-mod_shib_20.Tpo" ".deps/ mod_shib_20_la-mod_shib_20.Plo"; else rm -f ".deps/mod_shib_20_la- mod_shib_20.Tpo"; exit 1; fi
mod_apache.cpp: In constructor 'ShibTargetApache::ShibTargetApache (request_rec*)':
mod_apache.cpp:224: error: 'ap_http_method' was not declared in this scope
make[2]: *** [mod_shib_20_la-mod_shib_20.lo] Error 1
make[2]: Leaving directory `/tmp/shibboleth-1.3/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/shibboleth-1.3'
make: *** [all] Error 2


Unfortunately there's still at least one show stopping error.
Btw, 'configure' gave the following output:

aaitest:/tmp/shibboleth-1.3 # ./configure --enable-apache-20 --with- apr=/usr/bin/apr-1-config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether the compiler implements namespaces... yes
checking whether the compiler supports Standard Template Library... yes
checking whether the compiler implements namespaces... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for strftime... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking for gmtime_r... yes
checking for strtok_r... yes
checking for strcasecmp... yes
checking for dlfcn.h... (cached) yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking for pthread_rwlock_init... yes
checking for library containing svcfd_create... none required
checking for library containing socket... none required
configure: does the native Sun RPC library support svcfd_create...yes
configure: WARNING: embedded Sun RPC library does not support Linux
checking whether svcfd_create is declared... no
checking for pkg-config... /usr/bin/pkg-config
checking for OpenSSL libraries... -lssl -lcrypto -ldl -lz
checking for OpenSSL cflags...
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for ERR_load_CRYPTO_string... yes
checking for SSL_library_init... yes
checking for log4cpp-config... /usr/local/bin/log4cpp-config
checking log4cpp/Category.hh usability... yes
checking log4cpp/Category.hh presence... yes
checking for log4cpp/Category.hh... yes
checking xercesc/dom/DOM.hpp usability... yes
checking xercesc/dom/DOM.hpp presence... yes
checking for xercesc/dom/DOM.hpp... yes
checking Xerces version... OK
checking for xsec/xenc/XENCEncryptionMethod.hpp... yes
checking saml/saml.h usability... yes
checking saml/saml.h presence... yes
checking for saml/saml.h... yes
checking for NSAPI module option... no
checking whether to build Apache 1.3 module... no
checking whether to build Apache 2.0 module... yes
checking for apxs2... /usr/sbin/apxs2
checking to see if Apache2 apxs was located... /usr/sbin/apxs2
checking for user-specified apr-config name/location... "/usr/bin/ apr-1-config"
checking whether to build Apache 2.2 module... no
checking whether to build the MySQL ccache... yes, if it can be found
checking for mysql_config... /usr/bin/mysql_config
checking for mysql version >= 4... yes
checking for embedded-MySQL libraries... yes
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking if we can link againt mysql... no. skipping MySQL
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating shib/Makefile
config.status: creating schemas/Makefile
config.status: creating configs/Makefile
config.status: creating oncrpc/Makefile
config.status: creating oncrpc/rpc/Makefile
config.status: creating shib-target/Makefile
config.status: creating shar/Makefile
config.status: creating siterefresh/Makefile
config.status: creating test/Makefile
config.status: creating xmlproviders/Makefile
config.status: creating adfs/Makefile
config.status: creating selinux/Makefile
config.status: creating nsapi_shib/Makefile
config.status: creating apache/Makefile
config.status: creating shib-mysql-ccache/Makefile
config.status: creating config.h
config.status: executing depfiles commands



that have been fixed in svn.

I checked out the SVN cpp-sp and bootstrapped:

aaitest:/usr/src/SVN/cpp-sp/trunk # ./bootstrap
./bootstrap: line 8: aclocal-1.7: command not found
./bootstrap: line 8: autoheader-2.53: command not found
./bootstrap: line 8: automake-1.7: command not found
./bootstrap: line 8: autoconf-2.53: command not found
+ rm -rf 'autom4te*.cache'
+ aclocal -I .
acinclude.m4:57: warning: underquoted definition of YAD_CHECK_INCLUDE_LIB
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending- aclocal
+ autoheader
+ automake --foreign --add-missing --copy
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
apache/Makefile.am: installing `./depcomp'
shar/Makefile.am:8: USE_OUR_ONCRPC does not appear in AM_CONDITIONAL
configure.ac:30: installing `./config.guess'
configure.ac:30: installing `./config.sub'
+ exit 1


As I understand it, the versions of automake, etc. are hardcoded?


Thanks for any help!
Phil




Archive powered by MHonArc 2.6.16.

Top of Page