You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "McParland, Micheal" <Mc...@logica.com> on 2000/09/15 02:24:09 UTC
Building mod_jserv
Hi,
I'm trying to execute the build for mod_jserv on unix using the following
command:
apxs -c -o mod_jserv.so *.c
The command runs for several seconds but then terminates with the following
message:
apxs:Break: Command failed with rc=-256
Does anyone know what the problem would be as I haven't a clue. Any help
would be grately appreciated.
Cheers.
Re: Building mod_jserv, the second...
Posted by Daniel Schaller <to...@java-live.de>.
here the pdf-file, I mentioned...
Re: Building mod_jserv
Posted by tomcat-user <to...@java-live.de>.
[...]
Hi,
first, if you running RedHat, but I think, the problom occurs also on other
distributions, check your apx2 - script! It is a perlscript. There you maybe
have to make some changes descriped in my attachment (pdf-file!)
After you will have made that you can try to compile with apxs -c *.c -o
mod_jserv.so.
Does that not work, you can write back, and than I can mail you my
mod_jserv.o, which I could compile successfully.
Bye and so long....
Daniel Schaller
------------------------------------
www.java-live.de
RE: Building mod_jserv
Posted by Jay Herrick <ja...@cybersensor.com>.
I had this problem under solaris!
The fix was simple, it just took forever to figure it out. If you go edit
the apxs file (it's a script) and look for these declarations at the top:
my $CFG_LD_SHLIB = q();
my $CFG_LDFLAGS_SHLIB = q();
The comments say that the values should have been filled in by the
Makefile.tmpl, but obviously in my case they were not. These two
declarations tell apxs how to link the object files together. To fix it on
solaris, I changed these lines to:
my $CFG_LD_SHLIB = q(ld);
my $CFG_LDFLAGS_SHLIB = q(-G);
and issued this command line:
apxs c mod_jserv.c *.c
You will get a warning because mod_jserv.o is in the list of object files to
be linked twice, but when I tried the documentation's example I get an error
because the script tries to guess the name of the module.
Hope that helps some. An if anyone is interested, I could post my copy of
the mod_jserv.so for solaris.
Jay Herrick
Jay.Herrick@Cybersensor.com
-----Original Message-----
From: McParland, Micheal [mailto:McParlandM@logica.com]
Sent: Thursday, September 14, 2000 7:24 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Building mod_jserv
Hi,
I'm trying to execute the build for mod_jserv on unix using the following
command:
apxs -c -o mod_jserv.so *.c
The command runs for several seconds but then terminates with the following
message:
apxs:Break: Command failed with rc=-256
Does anyone know what the problem would be as I haven't a clue. Any help
would be grately appreciated.
Cheers.