We have
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
I also have a newer version that I am going to possibly update to 2.95.2 for
another project I am working on and that may fix this but I don't know.
Jed Duty
-----Original Message-----
From: Palumbo, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 1:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: getting mod_jk or mod_serv to work
Hi again Jed...
Just curious, what version of gcc are you using? Since I'm also having link
problems following my compiles, we have gcc 2.8.1
Thanks!
-Mark-
> -----Original Message-----
> From: Jed Duty [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 27, 2000 3:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: getting mod_jk or mod_serv to work
>
>
> Looking at our stuff that gcc command line should be close
> trick is I keep
> getting this error
>
> gcc -i -shared -o mod_jk.so *.o
>
> relocations referenced
> from file(s)
> jk_ajp12_worker.o
> jk_ajp13.o
> jk_ajp13_worker.o
> jk_connect.o
> jk_jni_worker.o
> jk_lb_worker.o
> jk_map.o
> jk_msg_buff.o
> jk_pool.o
> jk_sockbuf.o
> jk_uri_worker_map.o
> jk_util.o
> jk_worker.o
> UX:ld: ERROR: fatal error: relocations remain against allocatable but
> non-writable section: .text
>
> collect2: ld returned 1 exit status
>
> Not sure what to make of it.
> Some insight as to what it is looking for or trying to do
> would be helpful.
> Thank you
>
> Jed Duty
>
>
> -----Original Message-----
> From: Damien Serra [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 27, 2000 11:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: getting mod_jk or mod_serv to work
>
>
> Come baack to the gcc command line,
> (or read your cc documentation about how to build
> a shared library, it should be much like
> the one I posted before)
>
> Jed Duty wrote:
>
> > Thanks that is getting me closer. Now I am back to the
> error I was getting
> > with mod_jserv when I tried to compile it.
> >
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c mo
> > d_jk.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_ajp12_worker.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_ajp13.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_ajp13_worker.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_connect.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_jni_worker.c
> > UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 731:
> assignment type
> > mismatch
> > UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 732:
> assignment type
> > mismatch
> > UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 764:
> invalid directive
> > UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 765:
> invalid directive
> > UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 766:
> invalid directive
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_lb_worker.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_map.c
> > UX:acomp: WARNING: "../jk/jk_map.c", line 468: newline not
> last character
> in
> > file
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_msg_buff.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_nwmain.c
> > UX:acomp: WARNING: "../jk/jk_nwmain.c", line 32: empty
> translation unit
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_pool.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_sockbuf.c
> > UX:acomp: WARNING: "../jk/jk_sockbuf.c", line 214: newline not last
> > character in file
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_uri_worker_map.c
> > UX:acomp: WARNING: "../jk/jk_uri_worker_map.c", line 438:
> newline not last
> > character in file
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_util.c
> > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include
> -I/opt/java2-1.2.2/include/unixware -c ..
> > /jk/jk_worker.c
> > -o mod_jk.so ../jk/jk_worker.o ../jk/jk_util.o
> ../jk/jk_uri_worker_map.o
> > ../jk/jk_sockbuf.o ../jk/jk_pool.o ../jk/jk_nwmain.o ../j
> > k/jk_msg_buff.o ../jk/jk_map.o ../jk/jk_lb_worker.o
> ../jk/jk_jni_worker.o
> > ../jk/jk_connect.o ../jk/jk_ajp13_worker.o ../jk/jk_ajp13.
> > o ../jk/jk_ajp12_worker.o mod_jk.o
> > apxs:Break: Command failed with rc=16711680
> >
> > Not sure what to make of it.
> > Thanks for the help though.
> >
> > Jed Duty
> > -----Original Message-----
> > From: Damien Serra [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 27, 2000 9:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: getting mod_jk or mod_serv to work
> >
> > Jed Duty wrote:
> >
> > > I am having similar problems but even the gcc compile
> line doesn't help.
> > I
> > > am actually getting a syntax error message with apxs as follows
> > >
> > > apxs -o mod_jk.so -I../jk -I/opt/java2-1.2.2/include
> > > -I/opt/java-1.2.2/include/unixware -c *.c ../jk/*.c
> > > -ksh: apxs: not found
> > > uspkdevc# /usr/local/apache/bin/apxs -o mod_jk.so -I../jk
> > > -I/opt/java2-1.2.2/include
> -I/opt/java-1.2.2/include/unixware -c *.c
> > > ../jk/*.c
> > > cc -DUW=700 -DUSE_HSREGEX -I/usr/local/apache/include -I../jk
> > > -I/opt/java2-1.2.2/include -I/opt/java-1.2.2/include/unixware -c
> mod_jk.c
> > > UX:acomp: ERROR: "../jk/jk_pool.h", line 116: Syntax
> error before or at:
> > > jk_pool_atom_t
> > > UX:acomp: ERROR: "mod_jk.c", line 679: undefined symbol:
> jk_pool_atom_t
> > > UX:acomp: ERROR: "mod_jk.c", line 679: Syntax error
> before or at: buf
> > > UX:acomp: ERROR: "mod_jk.c", line 680: undefined symbol: buf
> > > apxs:Break: Command failed with rc=65536
> > >
> >
> > Inside jk_pool.h, at line 92, you need to add this,
> >
> > #elif defined(NETWARE)
> > typedef long long jk_pool_atom_t;
> > #else
> //ADD
> THIS
> > LINE
> > typedef long long jk_pool_atom_t; // ADD THIS LINE
> > #endif
> >
> > I belive you can compile now, and do the later steps.
> > Try with careful, you can have another errors.
> >
> > It hapen, because your OS is not one of the listed.
> > For a real patch, we have to know what's the alignment
> > scheme of your architecture and other stuff.
> >
> > >
> > > Any ideas on this one. I have looked at the code and didn't see
> anything
> > > wrong right off.
> > > I am running a SCO UnixWare7.1.1 box with java2-1.2.2 and
> tomcat 3.2.1
> > >
> > > Jed Duty
>