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. <compiledLog.rtf>
On 14-Nov-09, at 3:59 PM, Paolo Sommaruga wrote:
Hi,
I have modified the makeAdaptor.sh in the following wave:
#!/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' -
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
This has compiled successfully in Solaris 10 10/09 sparc with the
installed apache 2.0.63, using the installed gcc
Regards
Paolo
Il giorno 13/nov/2009, alle ore 16.03, Raghavender ha scritto:
Hi,
I have downloaded the Solaris WO Adaptor archive from the
following link:
http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Solaris+WO5.3.3
And tried to build the adaptor using the makeAdaptor shell file,
but i am unable to build it, getting the following error even
though the apache extension tool is existing in the specified path:
-----------------------------------------------------
bash-3.00# ./makeAdaptor.sh
./makeAdaptor.sh: /export/ers4/apache2.2-64/bin/apxs: not found
-----------------------------------------------------
Any help would be appreciated.
Thanks,
Raghu.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/psomma%40jpaso.com
This email sent to [email protected]
--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]