HI Fin,

Your command is almost identical to what I have been using, with the
exception of the reference to j2se (I am using jdk 1.2).  I have tried both
including and excluding the "-l posix4" reference.  I'm wondering if this
might be a path order-issue.  Anybody have other suggestions?

Fin:  What is are your $PATH and $CLASSPATH variable set up to look like?

Anyone else?

>Hi,
>
>my build succeeded with the following commands (using Solaris 8 & J2SE):
>
>% cd ~/jakarta-tomcat-3.2.1-src/src/native/apache1.3
>% /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk \
>   -I/usr/j2se/include \
>   -I/usr/j2se/include/solaris \
>   -l posix4 -c *.c ../jk/*.c
>
>-Fin
>
>>>> [EMAIL PROTECTED] 08.01.2001  07.16 Uhr >>>
>Hello,
>
>I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1
>source. Apache 1.3.14 is installed in the default directory
>(/usr/local/apache).  I'm running Solaris 2.7 (generic) for Sparc.
>
>When I use apxs to build mod_jk (according to the current documentation), I
>get:
>
># apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/
>include/solaris -c *.c ../jk/*.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c mod_jk.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_map.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_util.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
>  -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
>jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
>jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
>apxs:Break: Command failed with rc=255
>
>Similarly, adjusting the apxs command syntax to adhear to the structure
>outlined by "apxs -h" produces the result:
>
># apxs -c -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1
>.2/include/solaris *.c ../jk/*.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c mod_jk.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_map.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_util.c
>gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
>-I/usr/local/apache/include -I../jk -I/usr/java1.2/include
>-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
>  -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
>jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
>jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
>apxs:Break: Command failed with rc=255
>
>In both instances the build appears to fail with the same error.
>
>Running gcc -shared -o mod_jk.so *.o does not finish the build.  Instead I
>get:
>
><message below is repeated with varying hex values servral times for each
>(*.o) in dir>. . .
><unknown>                           0x5bc       mod_jk.o
>ld: fatal: relocations remain against allocatable but non-writable sections
>collect2: ld returned 1 exit status
>
>As best as I can tell, all the pertintent environment variables are set
>correctly:
>
>TOMCAT_HOME=/export/home/java/jakarta-tomcat
>JAVA_HOME=/export/home/java/java1.2
>JAKARTA_HOME=/export/home/downloads/jakarta/tomcat/jakarta-tomcat
>CLASSPATH=/export/home/java/java1.2/bin
>
>Anybody have a suggestion as to what I'm missing?
>
>Thanks!
>
>-Chris
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

Chris Stavros
Omegabit
(805) 771-8764
[EMAIL PROTECTED]
http://www.omegabit.com

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

Reply via email to