tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Alan_2_Ya...@sbphrd.com>
Subject Re: cannot build mod_jserv.so
Date Thu, 18 May 2000 17:07:28 GMT
Success!
You were right, I am running under OSF on a DEC-Alpha. All that gcc needed was a
"-shared" option to let it know it was building a shared object. (I couldn't
think of a neat way of referencing the Apache objects (needed to resolve all the
references made by the other *.o objects made by the build) so I just collected
all the lib*.a and lib*.so files I could find in the directories I built Apache
in and lumped them into a new directory which I refered to using a "-L" option
in the gcc command).

gcc -shared -o mod_jserv.so -L/home/yatesa00/temp/lib 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
-lap -lmain -lregex -lexpat -los -lstandard -lhttpd

Tomcat and Apache now appear to be happy working together.

Once again thanks very much Jan!

Alan




Jan.Wilm@consol.de on 18-May-2000 16:32



Please respond to tomcat-user@jakarta.apache.org

To:   tomcat-user
cc:    (bcc: Alan 2 Yates/RES/PHRD/SB_PLC)
Subject:  Re: cannot build mod_jserv.so




This makes it a lot brighter :)
the command line is ok now, mine was false, of course its -o sorry.

now I only missed wich system you want to
compile for. Is it osf1 ?
well i dont know about that system.
but nevertheless i can help a small amount :
the problem is that apxs dosnt know the correct command to link
your .so library.
the fix is that you type in the command by yourself.
you have to use the same files as apxs uses when it fails but
you need to put the command for linking in front of it.
and, more difficult, you need to find out which options you need
to link a shared library. perhaps you can find it in your
man page for 'ld' or, see it if you have build apache yourself.
for linux its -shared and on solaris -B
on solaris you whould have to execute the following line right after
executing the apxs :
gcc -B  -o mod_jserv.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 \

you get the point ??

On Thu, 18 May 2000 Alan_2_Yates@sbphrd.com wrote:

> Thanks for the speedy reply Jan.
> Unfortunately there is no -so option on my apxs (I'm running Apache 1.3.9)
>
> Here  is the command and its ouput:
>
> hgu019:yatesa00:62> ~/webserver/osf/apache/bin/apxs -c -o mod_jserv.so *.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c autochange.c
> autochange.c: In function `main':
> autochange.c:65: warning: cast to pointer from integer of different size
> autochange.c:87: warning: cast to pointer from integer of different size
> autochange.c:88: warning: cast to pointer from integer of different size
> autochange.c:117: warning: cast to pointer from integer of different size
> autochange.c:132: warning: cast to pointer from integer of different size
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_ajpv11.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_ajpv12.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_balance.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_image.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_mmap.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_protocols.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_status.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_utils.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_watchdog.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_wrapper.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_wrapper_unix.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c jserv_wrapper_win.c
> gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -I/home/yatesa00/webserver/osf/apache/include  -c mod_jserv.c
>   -o mod_jserv.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
> apxs:Break: Command failed with rc=16711680
>
> Hope this sheds a little more light.
>
> Thanks Alan
>
>
>
>
>
> Jan.Wilm@consol.de on 18-May-2000 15:44
>
>
>
> Please respond to tomcat-user@jakarta.apache.org
>
> To:   tomcat-user
> cc:    (bcc: Alan 2 Yates/RES/PHRD/SB_PLC)
> Subject:  Re: cannot build mod_jserv.so
>
>
>
>
> Yes
> 1. the command in the manual is wrong you should use
> apxs -c -so mod_jserv.so *.c
>
> 2.the lines before the Break are more intresting...
> can you post the whole shell-output from the call to
> the break this would help.
> ciao jan
>
> On Thu, 18 May 2000 Alan_2_Yates@sbphrd.com wrote:
>
> > I was getting HANDLER Thread exceptions so following the advice in earlier
> > e-mails to this group I tried to build mod_jserv.so from the Tomcat sources
> with
> > apxs (as opposed to using the one I built for JServ).
> > However apxs breaks on trying to compile mod_jserv.c with the following
error:
> >
> > apxs:Break: Command failed with rc=16711680
> >
> > Can anyone help?
> >
> >
> >
> > --------------------------------------------------------------------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
> >
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>
>
>
>
>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org








Mime
View raw message