You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "K.P.Majoor" <kp...@7bulls.com> on 2001/04/23 14:01:09 UTC

apxs:Break: Command failed with rc=16777215

Hi there,

After long searching, trying and investigating I have to say that I can
not figure it out. My last hope is you guys (&girls) and I wonder if
someone knows the solution for this problem. I've seen many similar
problems, but none like this exactly.
My system:
    Debian Linux, testing
    Apache 3.19 compiled with DSO support
    Binary tomcat 4.0 works fine !
    Trying to install mod_jk.so from the source of tomcat-3.2.1
     And there is where my misery started....
For some kind of odd reason apxs does not want to compile the mod_jk at
all.

I execute :

/usr/local/apache/bin/apxs -o mod_jserv.so -I/usr/java/include/linux
-I../jk -I/usr/java/include -c *.c ../jk/*.c

And this is the result:
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c mod_jk.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_ajp12_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_ajp13.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_ajp13_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_connect.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_jni_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_lb_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_map.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_msg_buff.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_nwmain.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_pool.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_sockbuf.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_uri_worker_map.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_util.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_worker.c
  -o mod_jserv.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

No matter what I try, ( remove apache, reconfigure and reinstall it for
example) I simply cannot get this "piece of cake" done. Seems like
nobody has troubles with it and if they have it, then the rc number is
almost never the same I remember Scott having a problem with it, but
couldn't find a solution altough he said he had a solution.

People, many thanks for helping me out with this one.
I'd like to connect apache and tomcat sooner or later!

Regards,

Klaas-Pieter


Re: apxs:Break: Command failed with rc=16777215

Posted by "K.P.Majoor" <kp...@7bulls.com>.
I cannot believe what I have done to myself, cuz I remember this from the
HOWTO very well. It seemed for me that this would be a problem in case the
../jk directory wasn't in the right place. But I admit (and right now feel
that I waisted my time... ) when I read it now, I certainly see what is meant.
Well, thanks for the efoort anyway.

Benoit Jacquemont wrote:

> Really happy that worked for you.
>
> But, anyway and just for information (;-) ), this solution comes directly
> from the mod_jk-howto.html file from the Jakarta project documentation...
>
> Yes it's written in small characters, but it is written... ;-)
>
> Extract from the mod_jk-howto.html:
> "
>  For Linux: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include
> -I/usr/local/jdk/include/linux -c *.c ../jk/*.c
>
> Your build may fail because the object files from the ../jk directory have
> been compiled to the current directory, rather than their source directory.
> Running gcc -shared -o mod_jk.so *.o should finish the build.
> "
>
> Benoît
>
> > It worked for me too!
> >
> > Thanks a lot, unbelievable simple solution for what I thought already was
> > impossible.
> >
> > Thanks again,
> >
> > Klaas-Pieter
> >
> > Benoit Jacquemont wrote:
> > > I had the same problem some months ago.
> > >
> > > In fact, all the object files have been compiled, now you just need to
> > > build the mod_jk.so from them:
> > > Just go to the directory where the objects files are located and try:
> > >
> > > gcc -shared -o mod_jk.so *.o
> > >
> > > You will get a mod_jk.so file.
> > >
> > > It worked for me very fine, so I hope it will be the same for you.
> > >
> > > Benoît


Re: apxs:Break: Command failed with rc=16777215

Posted by Benoit Jacquemont <be...@smile.fr>.
Really happy that worked for you.

But, anyway and just for information (;-) ), this solution comes directly 
from the mod_jk-howto.html file from the Jakarta project documentation...

Yes it's written in small characters, but it is written... ;-)

Extract from the mod_jk-howto.html:
"
 For Linux: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include 
-I/usr/local/jdk/include/linux -c *.c ../jk/*.c

Your build may fail because the object files from the ../jk directory have 
been compiled to the current directory, rather than their source directory. 
Running gcc -shared -o mod_jk.so *.o should finish the build.
"

Benoît

> It worked for me too!
>
> Thanks a lot, unbelievable simple solution for what I thought already was
> impossible.
>
> Thanks again,
>
> Klaas-Pieter
>
> Benoit Jacquemont wrote:
> > I had the same problem some months ago.
> >
> > In fact, all the object files have been compiled, now you just need to
> > build the mod_jk.so from them:
> > Just go to the directory where the objects files are located and try:
> >
> > gcc -shared -o mod_jk.so *.o
> >
> > You will get a mod_jk.so file.
> >
> > It worked for me very fine, so I hope it will be the same for you.
> >
> > Benoît

Re: apxs:Break: Command failed with rc=16777215

Posted by "K.P.Majoor" <kp...@7bulls.com>.
It worked for me too!

Thanks a lot, unbelievable simple solution for what I thought already was
impossible.

Thanks again,

Klaas-Pieter

Benoit Jacquemont wrote:

> I had the same problem some months ago.
>
> In fact, all the object files have been compiled, now you just need to build
> the mod_jk.so from them:
> Just go to the directory where the objects files are located and try:
>
> gcc -shared -o mod_jk.so *.o
>
> You will get a mod_jk.so file.
>
> It worked for me very fine, so I hope it will be the same for you.
>
> Benoît


Re: apxs:Break: Command failed with rc=16777215

Posted by Benoit Jacquemont <be...@smile.fr>.
I had the same problem some months ago.

In fact, all the object files have been compiled, now you just need to build 
the mod_jk.so from them:
Just go to the directory where the objects files are located and try:

gcc -shared -o mod_jk.so *.o

You will get a mod_jk.so file.

It worked for me very fine, so I hope it will be the same for you.

Benoît



> Hi there,
>
> After long searching, trying and investigating I have to say that I can
> not figure it out. My last hope is you guys (&girls) and I wonder if
> someone knows the solution for this problem. I've seen many similar
> problems, but none like this exactly.
> My system:
>     Debian Linux, testing
>     Apache 3.19 compiled with DSO support
>     Binary tomcat 4.0 works fine !
>     Trying to install mod_jk.so from the source of tomcat-3.2.1
>      And there is where my misery started....
> For some kind of odd reason apxs does not want to compile the mod_jk at
> all.
>
> I execute :
>
> /usr/local/apache/bin/apxs -o mod_jserv.so -I/usr/java/include/linux
> -I../jk -I/usr/java/include -c *.c ../jk/*.c
>
> And this is the result:
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c mod_jk.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_ajp12_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_ajp13.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_ajp13_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_connect.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_jni_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_lb_worker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_map.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_msg_buff.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_nwmain.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_pool.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_sockbuf.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_uri_worker_map.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_util.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
> -I../jk -I/usr/java/include  -c ../jk/jk_worker.c
>   -o mod_jserv.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
>
> No matter what I try, ( remove apache, reconfigure and reinstall it for
> example) I simply cannot get this "piece of cake" done. Seems like
> nobody has troubles with it and if they have it, then the rc number is
> almost never the same I remember Scott having a problem with it, but
> couldn't find a solution altough he said he had a solution.
>
> People, many thanks for helping me out with this one.
> I'd like to connect apache and tomcat sooner or later!
>
> Regards,
>
> Klaas-Pieter