This is what worked for me with that same configuration:
The order of arguments was critical, as were the apxs settings.
This was the command that worked:

/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

Here is the configuration section in my apxs file. (I had to edit it to get
it to work
with gcc.)

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
my $CFG_PREFIX        = '/usr/local/apache';            # substituted via
APACI install
my $CFG_SBINDIR       = '/usr/local/apache/bin';           # substituted via
APACI install
my $CFG_INCLUDEDIR    = '/usr/local/apache/include';        # substituted
via APACI install
my $CFG_LIBEXECDIR    = '/usr/local/apache/libexec';        # substituted
via APACI install
my $CFG_SYSCONFDIR    = '/usr/local/apache/conf';        # substituted via
APACI install


> -----Original Message-----
> From: sun [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 9:24 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: It is getting closer to make "mod_jk.so", but??
>
>
> hi, scott,
> how did you resolve that, can you share with me? I got same error.
> I am using:
> solaris 2.7, tomcat3.2, perl 5 and apache 1.3.4.
>
> thanks a lot.
>
> rgds
> sun
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Tuesday, December 05, 2000 2:25 AM
> Subject: Re: It is getting closer to make "mod_jk.so", but??
>
>
> >Thanks all. It is solved.
> >
> >Scott
> >Quoting [EMAIL PROTECTED]:
> >
> >> Hi All,
> >>
> >> I downloaded a precompiled "mod_jk.so" for solaris 2.6 offered
> >> by a tomcat-user and it did not work on my system. I still need
> >> to compile it myself. It is almost there.
> >>
> >> Solaris 2.6/tomcat3.2/perl5/apache1.3.14
> >>
> >> command used to build "mod_jk.so":
> >>
> >> /usr/local/apache/bin/apxs  -o mod_jk.so -DSOLARIS -I../jk
> >> -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -c *.c ../jk/*.c
> >>
> >> log result with error "apxs:Break: Command failed with rc=16777215":
> >>
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_map.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c
> >> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> >> -I/usr/local/apache/include -I../jk -I/usr/j2se/include
> >> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
> >>   -o mod_jk.so 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 mod_jk.o
> >> apxs:Break: Command failed with rc=16777215
> >>
> >> Thanks,
> >>
> >> Scott
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to