Hi Paolo,
I have modified the makeAdaptor.sh file as per your suggestion, it was compiled, but when i tried to use the compiled 'mod_WebObjects.so' and start the apache then the following error is coming up:
------------------------------------------------------------------------------------------------------------------------------------------------------
bash-3.00# sh apache_startup.sh startssl
Starting Apache
httpsd.prefork: Syntax error on line 40 of /export/ers4/servers/test-apache2.2-64/conf/httpsd.conf: Cannot load /export/ers4/apache2.2-64/modules/standard/mod_WebObjects.so into server: ld.so.1: httpsd.prefork: fatal: /export/ers4/apache2.2-64/modules/standard/mod_WebObjects.so: wrong ELF class: ELFCLASS32
Server start FAILED
------------------------------------------------------------------------------------------------------------------------------------------------------
I have also tried to use the installed gcc, modified the path of gcc in the makeAdaptor.sh file and tried to execute, but the following error is generating:
-------------------------------------------------------------------------------------------------------------------------------------------------------------
bash-3.00# cat makeAdaptor.sh
#!/bin/sh
LTFLAGS="--tag=CC"; export LTFLAGS
/usr/apache2/bin/apxs -i -a -c -S CC=/opt/SUNW0gccfss/reloc/gcc/bin/gcc -S CFLAGS='-O2 -Wall -fpic -DSSL_EXPERIMENTAL -DSSL_ENGINE' -DSINGLE_THREADED_ADAPTOR -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSSL_EXPERIMENTAL_PERDIRCA_IGNORE -DSSL_EXPERIMENTAL_PROXY_IGNORE -DEAPI -DAPACHE mod_WebObjects.c appcfg.c cfgparse.c config.c hostlookup.c list.c listing.c loadaverage.c loadbalancing.c log.c MoreURLCUtilities.c nbsocket.c PB.project Platform.c random.c request.c response.c roundrobin.c shmem.c strdict.c strtbl.c transaction.c transport.c wastring.c womalloc.c WOURLCUtilities_3.c WOURLCUtilities.c xmlcparser.c xmlctokenizer.c xmlparse.c
bash-3.00# sh makeAdaptor.sh
/var/apache2/build/libtool --tag=CC --mode=compile /opt/SUNW0gccfss/reloc/gcc/bin/gcc -O2 -Wall -fpic -DSSL_EXPERIMENTAL -DSSL_ENGINE -I/usr/apache2/include -I/usr/apache2/include -I/usr/apache2/include -I/usr/sfw/include -DSINGLE_THREADED_ADAPTOR -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSSL_EXPERIMENTAL_PERDIRCA_IGNORE -DSSL_EXPERIMENTAL_PROXY_IGNORE -DEAPI -DAPACHE -c -o mod_WebObjects.lo mod_WebObjects.c && touch mod_WebObjects.slo
mkdir .libs
/opt/SUNW0gccfss/reloc/gcc/bin/gcc -O2 -Wall -fpic -DSSL_EXPERIMENTAL -DSSL_ENGINE -I/usr/apache2/include -I/usr/apache2/include -I/usr/apache2/include -I/usr/sfw/include -DSINGLE_THREADED_ADAPTOR -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSSL_EXPERIMENTAL_PERDIRCA_IGNORE -DSSL_EXPERIMENTAL_PROXY_IGNORE -DEAPI -DAPACHE -c mod_WebObjects.c -KPIC -DPIC -o .libs/mod_WebObjects.o
ld.so.1: cc1: fatal: lib_I_dbg_gen.so.1: open failed: No such file or directory
gcc: Internal error: Killed (program cc1)
Please submit a full bug report to
apxs:Error: Command failed with rc=65536
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Regards,
Raghu.