Just figured it out. On the compile line for the c files needed to add an -fpic. Here is what the whole thing looks like now. for a in *.c do gcc -DUW=700 -DUSE_HSREGEX -fpic -I../jk/ -I/usr/local/apache/include/ -I/usr/local/apache/include/unixware -I/opt/java2-1.2.2/in clude -I/opt/java2-1.2.2/include/unixware -c $a done gcc --share -o mod_jk.so *.o Again I do thank you for all of your help Jed Duty -----Original Message----- From: Damien Serra [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 9:31 AM To: [EMAIL PROTECTED] Subject: Re: getting mod_jk or mod_serv to work (On UNIXWARE!) Here, the problem is building shared objects on unixware, environment where I can't help very much. We can try two fool things: 1. at end use "gcc -v --shared ...(etc)" (add -v to see what it's doing) 2. dont use "--shared", you will see a list of function names, begining with "main", "jni_...", etc. Actualy a get only 2 (main, and jni_workers) if you get another, try to see which library provides it., then add "-l(library_name)" on the command line and try again, until you dont get any unresolved external (except main, and jni_workers), then add "--shared" to see what it tells. For example, if you found that /usr/lib/libnls.a have the external function you need, you will have one line like "gcc -v --shared mod_jk.so -lnls *.o" Jed Duty wrote: > > get that error when i run > > for a in *.c > do > gcc -DUW=700 -DUSE_HSREGEX -I../jk/ -I/usr/local/apache/include/ > -I/usr/local/apache/include/unixware -c $a > done > > gcc --share -o mod_jk.so *.o > > the above should go through and compile all of the .c's into .o's > for some reason it is blowing up during the linking phase > > Jed Duty > > -----Original Message----- > From: Damien Serra [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 02, 2001 7:37 AM > To: [EMAIL PROTECTED] > Subject: Re: getting mod_jk or mod_serv to work > > Did you rebuild all object files (.o)?, > you can't miss any one. > > Jed Duty wrote: > > > > Here is the new problem, this is with the jk_ajp12_worker.o removed > > > > relocations referenced > > from file(s) > > 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 > > mod_jk.o > > UX:ld: ERROR: fatal error: relocations remain against allocatable but > > non-writable section: .text > > > > collect2: ld returned 1 exit status > > > > Thanks again for any help > > > > Jed Duty > > > > -----Original Message----- > > From: Damien Serra [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 02, 2001 5:49 AM > > To: [EMAIL PROTECTED] > > Subject: Re: getting mod_jk or mod_serv to work > > > > It seems jk_ajp12_worker.o it's broken. > > remove it and try again, please. > > > > Before, check you don't have disk space problems, > > where you are working or in temporary > > places (/tmp, /usr/tmp). > > > > Jed Duty wrote: > > > > > > 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 > > > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- > 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]