Getting closer here is the error I get now

UX:ld: ERROR: jk_ajp12_worker.o: libelf error:  Format error: shdr table
truncated elf_getehdr:
collect2: ld returned 1 exit status

Thank you again for all of your help

Jed Duty

-----Original Message-----
From: Damien Serra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 4:14 AM
To: [EMAIL PROTECTED]
Subject: Re: getting mod_jk or mod_serv to work


Sorry about a couple of things,

When I said "-I...." you have to write all the 
options apxs put when invoking cc
(see your original mail).

and I misspeled -share, its "--share"

> 
> Thanks again for the assistance.  Still doesn't work though.  What version
> of gcc are you using to do that.  I have gcc version egcs-2.91.60 19981201
> (egcs-1.1.1 release).  Don't know if that is a problem or not.  Here is
what
> I get now
> 
> mod_jk.c:66: ap_config.h: No such file or directory
> mod_jk.c:67: httpd.h: No such file or directory
> mod_jk.c:68: http_config.h: No such file or directory
> mod_jk.c:69: http_request.h: No such file or directory
> mod_jk.c:70: http_core.h: No such file or directory
> mod_jk.c:71: http_protocol.h: No such file or directory
> mod_jk.c:72: http_main.h: No such file or directory
> mod_jk.c:73: http_log.h: No such file or directory
> mod_jk.c:74: util_script.h: No such file or directory
> mod_jk.c:75: util_date.h: No such file or directory
> mod_jk.c:76: http_conf_globals.h: No such file or directory
> mod_jk.c:89: jk_global.h: No such file or directory
> mod_jk.c:90: jk_util.h: No such file or directory
> mod_jk.c:91: jk_map.h: No such file or directory
> mod_jk.c:92: jk_pool.h: No such file or directory
> mod_jk.c:93: jk_service.h: No such file or directory
> mod_jk.c:94: jk_worker.h: No such file or directory
> mod_jk.c:95: jk_uri_worker_map.h: No such file or directory
> gcc: unrecognized option `-share'
> UX:ld: ERROR: jk_ajp12_worker.o: libelf error:  Format error: shdr table
> truncated elf_getehdr:
> collect2: ld returned 1 exit status
> 
> Thank you again for all of your help
> 
> Jed Duty
> 
> -----Original Message-----
> From: Damien Serra [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 8:26 AM
> To: [EMAIL PROTECTED]
> Subject: Re: getting mod_jk or mod_serv to work
> 
> Hi again,
> Can you do something, please:
> 
> Try compiling all with gcc:
> 
> for a in *.c
> do
>     gcc -DUW=700 -DUSE_HSREGEX -I.... -c $a
> done
> gcc -share -o mod_jk.so *.o
> 
> 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to