You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marc Defos Du Rau <ma...@silogic.fr> on 2000/05/02 18:01:42 UTC

For Jan Wilm and his problem to compile with apxs

Hi Jan,
Just use this instruction :  apxs -c -o mod_jserv.so *.c  and NOT : apxs -c
*.c -o mod_jserv.so
It will link properly !!
There is a mistake in the help on line.
Have a nice afternoon
Marc


----- Original Message -----
From: Jan Wilm <Ja...@consol.de>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 02, 2000 3:40 PM
Subject: RE: where is mod_jserv.so for tomcat final release 3.1


> Hi rishi
>
> I have the same problem as peter, cant compile.
> How did you do that, did you use apxs ?
> Which line does the linking for you ??
>
> I can compile with apxs -c *.c -o mod_jserv.so
> but it doesnt seem to link properly, apxs yields the very strange line
>
>   -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
> jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o
> jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o
> jserv_ajpv12.o jserv_ajpv11.o autochange.o -o mod_jserv.so
>
> when I fix it to :
> gcc -shared [..as above..]
>
> it says
>
> ld: warning: option -o appears more than once, first setting taken
>
> and givs lots of unreferenced symbols.
>
>
> On Fri, 28 Apr 2000, Rishi N wrote:
>
> > Hi peter,
> >
> > i've attached the mod_jserv.so that i build for tomcat3.1. see if it
works
> > for you.
> >
> > rishi
>
>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


Re: compile mod_jserv.so with solaris- my solution

Posted by Jan Wilm <Ja...@consol.de>.
Hi Marc and all
short :

the commandline apxs -c -o mod_jserv.so *.c
fixes one part of my problem,
the other part is to use ld -G to get rid of the unreferenced symbols 

thx for the tip

long:
If you want to build mod_jserv.so, first you compile the apache with

configure --enable-module=so --enable-rule=SHARED_CORE
make install

then you go to the ...native/apache/jserv/ directory
and do the right command: 

apxs -c -o mod_jserv.so *.c

if you get something like 
apxs:Break: Command failed with rc=16711680
apxs trys to use the wrong commands, in my case cc was not available
so i linked gcc to cc somewhere in the path
and apxs did not have any link command, so i cut&paste the
link commandline behind an

ld -G 

here you need the -G !

ciao jan

On Tue, 2 May 2000, Marc Defos Du Rau wrote:

> Hi Jan,
> Just use this instruction :  apxs -c -o mod_jserv.so *.c  and NOT : apxs -c
> *.c -o mod_jserv.so
> It will link properly !!
> There is a mistake in the help on line.
> Have a nice afternoon
> Marc