• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64)


  • Subject: Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64)
  • From: Paolo Sommaruga <email@hidden>
  • Date: Mon, 16 Nov 2009 12:26:01 +0100

Hi Raghu,

I'm not a really Solaris expert, but I think you need to add some compiler option in order to match your processor architecture, for me i.e. sparc 64 bits.

It can also be that you must execute apache after to have indicated in path some libraries demanded from the compilation of mod_WebObjects.so, like

LD_LIBRARY_PATH=/usr/local/lib:/usr/sfw/lib:/opt/sfw/lib
export LD_LIBRARY_PATH
/usr/local/apache/bin/apachectl startssl

In order to compile for ssl, I have add the APACHE_SECURITY_ENABLED option. The script I used is the following

//////////////////////
#!/bin/sh
LTFLAGS="--tag=CC"; export LTFLAGS

/usr/apache2/bin/apxs -i -a -c -S CC=/usr/sfw/bin/gcc -S CFLAGS='-O2 -Wall -fpic -DSSL_EXPERIMENTAL -DSSL_ENGINE' -I /usr/sfw/include/openssl -DAPACHE_SECURITY_ENABLED -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
///////////////////////

Before the compilation, I have modified the mod_WebObjects.c in the following way:

….
#ifdef APACHE_SECURITY_ENABLED
#include <mod_ssl.h>
#include "apache_security.h" <----- line added
#endif

.....

#define ap_snprintf apr_snprintf <----- line added

I took the apache_security.h file from the wonder source, the path is Wonder-Source/Utilities/Adaptors/Apache/apache_security.h. It look very simple. The following is the file content:

//////////////////////
#ifdef APACHE_SECURITY_ENABLED

// include the openssl stuff we're going to care about for the getting of certificates
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/crypto.h>
#include <openssl/rand.h>

#endif /* APACHE_SECURITY_ENABLED */ 
//////////////////////

Put apache_security.h in the SolarisAdaptor folder. In the script you must include the correct ssl include files path. If you look at the script above, you can see it in the option  -I /usr/sfw/include/openssl

I hope this can help you

Paolo



Il giorno 15/nov/2009, alle ore 18.24, Raghavender ha scritto:

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
 <URL:http://cooltools.sunsource.net Issue Tracker>.
apxs:Error: Command failed with rc=65536
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Regards,
Raghu.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64) (From: Raghavender <email@hidden>)
 >Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64) (From: Paolo Sommaruga <email@hidden>)
 >Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64) (From: Raghavender <email@hidden>)

  • Prev by Date: Little help with a Db design quesiton
  • Next by Date: postgresql boolean error with a new jdbc driver
  • Previous by thread: Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64)
  • Next by thread: Eclipse is ignoring my breakpoints
  • Index(es):
    • Date
    • Thread