Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 18814 invoked from network); 4 Mar 2005 13:16:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Mar 2005 13:16:38 -0000 Received: (qmail 56134 invoked by uid 500); 4 Mar 2005 13:16:31 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 55885 invoked by uid 500); 4 Mar 2005 13:16:30 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 55872 invoked by uid 99); 4 Mar 2005 13:16:30 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Mar 2005 05:16:28 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j24DGPiZ009969 for ; Fri, 4 Mar 2005 14:16:25 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id j24DGPwh009860; Fri, 4 Mar 2005 14:16:25 +0100 Date: Fri, 4 Mar 2005 14:16:25 +0100 Message-Id: <200503041316.j24DGPwh009860@ajax.apache.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 33843] New: - native jk connector ignores LDFLAGS when compiling X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33843 Summary: native jk connector ignores LDFLAGS when compiling Product: Tomcat 5 Version: 5.5.7 Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: Native:JK AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: beat.kneubuehl@visana.ch The jk/native/apache-2.0/Makefile from the jakarta-tomcat-connectors-1.2.8 package does ignore the LDFLAGS from the configure script and from the apache apxs. We need to pass some special linker flags, when we build httpd and the jakarta-tomcat-connectors (-L/opt/sfw/lib -XCClinker -static-libgcc). When we build the native Apache2 jk connector from the jakarta-tomcat-connectors packge, there is no way to pass theese flags to the linker. When we pass these options as LDFLAGS to the configure script from the jakarta-tomcat-connectors, the flags are silently ignored, because the mod_jk.lo file is linked with the following command (where LDFLAGS is not taken into account): ----------------- $(LIBTOOL) --mode=link ${COMPILE} -o $@ -module -rpath ${libexecdir} -avoid-version mod_jk.lo $(APACHE_OBJECTS) ----------------- We have used theese LDFLAGS also when compiling the httpd, thus apxs is aware of the LDFLAGS: --------------- /usr/local/apache_2.0.53/bin/apxs -q LDFLAGS -L/opt/sfw/lib -XCClinker -static-libgcc --------------- But also the apxs flags are ignored. In the main Makefile, the following libtool is defined: LIBTOOL = /bin/bash /usr/local/apache_2.0.53/build/libtool --silent I have attached a small Patch for the Makefile.in which the LDFLAGS are requested through the apxs interface. I have added a `${APXS} -q LDFLAGS` statement to the line which is linking the mod_jk.lo file. I'm not sure if this is the right way to fix the problem, or the httpd libtool which is called by the makefile should be fixed. We are using the following environment: - Solaris 9 - gcc-3.3.2 - httpd-2.0.53 - jakarta-tomcat-connectors-1.2.8 Patch: --- jk/native/apache-2.0/Makefile.in Fri Mar 4 12:16:40 2005 +++ jk/native/apache-2.0/Makefile.in.fix Fri Mar 4 12:27:17 2005 @@ -63,7 +63,7 @@ # APXS will compile every file, this is derived from apxs mod_jk.la: mod_jk.lo $(APACHE_OBJECTS) - $(LIBTOOL) --mode=link ${COMPILE} -o $@ -module -rpath ${libexecdir} -avoid-version mod_jk.lo $(APACHE_OBJECTS) + $(LIBTOOL) --mode=link ${COMPILE} `${APXS} -q LDFLAGS` -o $@ -module -rpath ${libexecdir} -avoid-version mod_jk.lo $(APACHE_OBJECTS) mod_jk.so: mod_jk.la $(LIBTOOL) --mode=install cp $< `pwd`/$@ -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org