Henri Gomez wrote:

BTW, the JF-Clere fix in configure.in to use the libtool in Apache 2.0 case, don't works with Redhat 8.0/9.0 where there is an Apache 2.0.40 with post 2.0.40 security fixes.



And what is the error? It works with a vanilla Apache-2.0.40.


I don't know what they do with their 2.0.40 version but here is what I've got :

I don't think that changes in apxs are the problem. But I think that there must be something weird in build/config_vars.mk What does apxs -q LIBTOOL returns? And: $APXS -q PREFIX $APXS -q INCLUDEDIR $APXS -q CFLAGS $APXS -q EXTRA_CFLAGS $APXS -q EXTRA_CPPFLAGS

Could you send me the build/config_vars.mk?

The basic problem is that we use 2 LIBTOOL: In some places (like commons) LIBTOOL is the result of `apxs -q LIBTOOL` and in other places (like apache-2.0) LIBTOOL is the make variable included from build/config_vars.mk. I do not understand why they are different because apxs reads from build/config_vars.mk!!!


... configure time (note the error reported line 261) :


checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for test... /usr/bin/test
checking for rm... /bin/rm
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
Use of uninitialized value in concatenation (.) or string at /usr/sbin/apxs line 261.
building connector for "apache-2.0"
checking for target platform... unix
no apache given
configure: creating ./config.status
config.status: creating Makefile
config.status: creating apache-1.3/Makefile
config.status: creating apache-1.3/Makefile.apxs
config.status: creating apache-2.0/Makefile
config.status: creating apache-2.0/Makefile.apxs
config.status: creating common/Makefile
config.status: creating common/list.mk
config.status: creating jni/Makefile
config.status: executing depfiles commands


... build time :

Making all in common
make[1]: Entering directory `/home/admin/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native/common'
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_ajp12_worker.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_connect.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_msg_buff.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_util.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_ajp13.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_pool.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_worker.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_ajp13_worker.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_lb_worker.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_sockbuf.c
mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/ -c jk_map.c


...

-O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -pthread -DNO_DBM_REWRITEMAP -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -c ../common/jk_ajp_common.c
/bin/sh /usr/bin/libtool --silent --mode=compile gcc -I/usr/include/httpd -g -O2 -DUSE_APACHE_MD5 -I ../common -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/unix -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -pthread -DNO_DBM_REWRITEMAP -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -c ../common/jk_context.c
/bin/sh /usr/bin/libtool --silent --mode=link gcc -I/usr/include/httpd -g -O2 -DUSE_APACHE_MD5 -I ../common -I /opt/IBMJava2-131/include -I /opt/IBMJava2-131/include/unix -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -O2 -g -march=i386 -mcpu=i686 -pthread -DNO_DBM_REWRITEMAP -g -O2 -pthread -DNO_DBM_REWRITEMAP -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -o mod_jk.la -module -rpath /usr/lib/httpd/modules -avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_ajp_common.lo ../common/jk_context.lo
gcc: ../common/jk_ajp12_worker.lo: No such file or directory
gcc: ../common/jk_connect.lo: No such file or directory
gcc: ../common/jk_msg_buff.lo: No such file or directory
gcc: ../common/jk_util.lo: No such file or directory
gcc: ../common/jk_ajp13.lo: No such file or directory
gcc: ../common/jk_pool.lo: No such file or directory
gcc: ../common/jk_worker.lo: No such file or directory
gcc: ../common/jk_ajp13_worker.lo: No such file or directory
gcc: ../common/jk_lb_worker.lo: No such file or directory
gcc: ../common/jk_sockbuf.lo: No such file or directory
gcc: ../common/jk_map.lo: No such file or directory
gcc: ../common/jk_uri_worker_map.lo: No such file or directory
gcc: ../common/jk_ajp14.lo: No such file or directory
gcc: ../common/jk_ajp14_worker.lo: No such file or directory
gcc: ../common/jk_md5.lo: No such file or directory
gcc: ../common/jk_ajp_common.lo: No such file or directory
gcc: ../common/jk_context.lo: No such file or directory
make[1]: *** [mod_jk.la] Error 1
make[1]: Leaving directory `/home/admin/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native/apache-2.0'
make: *** [all-recursive] Error 1


It seems we loose the /bin/sh /usr/bin/libtool --silent in the first part of the build (certainly related to the 'customized' Redhat apxs and
the strange error line 261 of APXS (attached).

Here is the result of a diff: +++ [EMAIL PROTECTED]:~ > diff -u apxs /home/apache20/apache40/bin/apxs --- apxs Tue Jun 17 09:02:19 2003 +++ /home/apache20/apache40/bin/apxs Tue Sep 10 16:03:42 2002 @@ -63,7 +63,7 @@

my %config_vars = ();

-my $installbuilddir = "/usr/lib/httpd/build";
+my $installbuilddir = "/home/apache20/apache40/build";
 get_config_vars("$installbuilddir/config_vars.mk",\%config_vars);

 # read the configuration variables once
@@ -236,6 +236,19 @@
     ($httpd = $0) =~ s:support/apxs$::;
 }

+unless (-x "$httpd") {
+       error("$httpd not found or not executable");
+       exit 1;
+}
+
+unless (grep /mod_so/, `. $envvars && $httpd -l`) {
+    error("Sorry, no shared object support for Apache");
+    error("available under your platform. Make sure");
+    error("the Apache module mod_so is compiled into");
+    error("your server binary `$httpd'.");
+    exit 1;
+}
+
 sub get_config_vars{
     my ($file, $rh_config) = @_;

@@ -700,5 +713,4 @@
     NULL,                  /* table of config file commands       */
     %NAME%_register_hooks  /* register hooks                      */
 };
-






------------------------------------------------------------------------


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



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



Reply via email to