Thanks Ed.
I finished the build using "sh build-solaris.sh" after I updated my apxs
file as below:
#my $CFG_CFLAGS_SHLIB = q(); # substituted via Makefile.tmpl
#my $CFG_LD_SHLIB = q(); # substituted via Makefile.tmpl
#my $CFG_LDFLAGS_SHLIB = q(); # substituted via Makefile.tmpl
my $CFG_CFLAGS_SHLIB = q(-fPIC -DSHARED_MODULE); # substituted via
Makefile.tmpl
my $CFG_LD_SHLIB = q(gcc); # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-G); # substituted via Makefile.tmpl
Before receiving your mail I tried with the following updates, it failed
with the same error number.
my $CFG_CFLAGS_SHLIB = q(-fPIC -DSHARED_MODULE); # substituted via
Makefile.tmpl
my $CFG_LD_SHLIB = q(ld); # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-G); # substituted via Makefile.tmpl
Hong-Bing
==
At 03:20 PM 4/5/01 -0500, Ed Gomolka wrote:
At 02:46 PM 4/5/01 -0400, Hong-Bing Chen wrote:
Hi,
I am trying to compile tomcat-apache plugin for Solaris and it fails. The
versions are Apache 1.3.19, SunOs 5.8 and Perl 5.6.0.
The error message is :
"gcc -DSOLARIS -DUSE_EXPAT -I../lib/expat-lite
-I/usr/apache1.3.19/include -I../common -I/usr/java1.3/j2sdk1_3_0/include
-I/usr/java1.3/j2sdk1_3_0/include/solaris -c mod_jk.c -o mod_jk.so
mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o
jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o -lposix4
apxs:Break: Command failed with rc=16777215
Error with apxs"
I have searched faq and archive, and could not find any answer.
Could somebody point out the problem? Any help is appreciated.
Hong-Bing Chen
You need to look at both the apxs Perl script, and your command.
When Apache is installed, the apxs perl script is configured based on the
machine environment. Unfortunately,
in the case of Solaris, if you're using gcc, it probably didn't get the
values right.
Here is an excerpt from my apxs script for Solaris 5.7 with gcc.. The
items that are commented out reflect original values that I had to change.
## Configuration
##
#my $CFG_CC= 'cc';# substituted via Makefile.tmpl
#my $CFG_CFLAGS_SHLIB = '-KPIC -DSHARED_MODULE'; # substituted via
Makefile.tmpl
#my $CFG_LD_SHLIB = 'ld'; # substituted via Makefile.tmpl
#my $CFG_LDFLAGS_SHLIB = '-G'; # substituted via Makefile.tmpl
my $CFG_TARGET= 'httpd';# substituted via Makefile.tmpl
my $CFG_CC= 'gcc';# substituted via Makefile.tmpl
my $CFG_CFLAGS= ' -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite
`../apaci`';# substituted via Makefile.tmpl
my $CFG_CFLAGS_SHLIB = '-fPIC -DSHARED_MODULE'; # substituted via
Makefile.tmpl
my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = '-G'; # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= '';# substituted via Makefile.tmpl
==
Here is my command to execute the apxs script:
/usr/local/apache/bin/apxs -o mod_jk.so -c -I /usr/java/include -I
/usr/java/include/solaris -I ../jk -DSOLARIS -l posix4 *.c ../jk/*.c
Good luck.
Ed