This fixes mod_jk segfaults when gcc is used to build mod_jk with gcc on AIX. Currently, the -brtl ld flag is missing. Linking with apxs takes care of that and, in general, can clear up other differences.

According to the comment, apxs wasn't used because it compiles all files every time, but passing in .lo files instead of .c files will do the right thing and keep some unnecessary details out of the mod_jk build.

Also added was a comment to mention why repeatedly running make will keep attempting to create mod_jk (unsucessfully).
Index: jakarta-tomcat-connectors/jk/native/apache-2.0/Makefile.in
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native/apache-2.0/Makefile.in,v
retrieving revision 1.15
diff -u -r1.15 Makefile.in
--- jakarta-tomcat-connectors/jk/native/apache-2.0/Makefile.in  9 Sep 2002 15:35:49 
-0000       1.15
+++ jakarta-tomcat-connectors/jk/native/apache-2.0/Makefile.in  18 Jun 2003 12:40:03 
-0000
@@ -59,11 +59,13 @@
        @echo ""
 
 #################### Dynamic .so file ####################
-# APXS will compile every file, this is derived from apxs
+# use APXS to link since it includes any special ldflags
 
 mod_jk.la: mod_jk.lo $(APACHE_OBJECTS)
-       $(LIBTOOL) --mode=link ${COMPILE} -o $@ -module -rpath ${libexecdir} 
-avoid-version mod_jk.lo $(APACHE_OBJECTS)
+       $(APXS) -o $@ mod_jk.lo $(APACHE_OBJECTS)
 
+# this doesn't work on every platform, since libtool sometimes
+# will install foo.la as libfoo.so or libfoo.dl
 mod_jk.so: mod_jk.la
        $(LIBTOOL) --mode=install cp $< `pwd`/$@
 

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

Reply via email to