Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 89347 invoked from network); 5 Feb 2008 18:49:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 18:49:26 -0000 Received: (qmail 87568 invoked by uid 500); 5 Feb 2008 18:49:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 87539 invoked by uid 500); 5 Feb 2008 18:49:06 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 87528 invoked by uid 99); 5 Feb 2008 18:49:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 10:49:06 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.227.30.246] (HELO datura.kippdata.de) (195.227.30.246) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 18:48:52 +0000 Received: from [192.168.2.104] ([192.168.2.104]) by datura.kippdata.de (8.13.5/8.13.5) with ESMTP id m15ImhpS001794 for ; Tue, 5 Feb 2008 19:48:44 +0100 (CET) Message-ID: <47A8AF63.8040201@kippdata.de> Date: Tue, 05 Feb 2008 19:48:03 +0100 From: Rainer Jung User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: mod_jk in Cygwin References: <5b79c6480802041129nef8bc9cuc5dc948744d45bf2@mail.gmail.com> <5b79c6480802041132w59a8441dg893dab003c01e2c6@mail.gmail.com> <5b79c6480802041142r7464eb56x5f2f3fe9774c5abc@mail.gmail.com> <47A7A736.2020305@kippdata.de> <5b79c6480802042251w3ffb0f3ak31ffeb6cc30fe977@mail.gmail.com> <5b79c6480802050101x2d5a3391x594f8b5757b9d258@mail.gmail.com> <5b79c6480802050251sd686b18s1de196799ecad7ec@mail.gmail.com> <47A89886.3020509@kippdata.de> <5b79c6480802050938l4650af9cp546a7d99f9508d45@mail.gmail.com> In-Reply-To: <5b79c6480802050938l4650af9cp546a7d99f9508d45@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Vitek, thanks for the info. Will update our docs in the next days. Regards, Rainer Vitek Cvachoucek schrieb: > Hello Rainer > > 1. /usr/sbin/apxs -q LDFLAGS outputs empty string > 2. no there are only *.la and *.a in my /usr/lib (but there some *.so > deeper - e.g. ruby specific under /usr/lib/ruby) > 3. About the linking I am not sure at all. The generated file is > rather large (682k) however the generated *.la contains dependencies > dependency_libs=' /usr/lib/libhttpd2core.la -L/usr/lib > /usr/lib/libaprutil-1.la /usr/lib/libgdbm.la /usr/lib/libdb-4.2.la > /usr/lib/libexpat.la /usr/lib/libiconv.la /usr/lib/libapr-1.la > -lcrypt' > > I am sorry I have no ldd available neither I am sure how to install > it, my experience with GNU build tools is extremely limited . > The main thing for me is that the builded library actually works. > > Regards > Vitek > > > > On Feb 5, 2008 6:10 PM, Rainer Jung wrote: >> Hi Vitek, >> >> so it's good, that it works for you. To get a more complete picture of >> the situation (especially for our documentation), would you mind telling us: >> >> - what's the output of /usr/sbin/apxs -q LDFLAGS ? >> - are there also shared libraries in /usr/lib, like libapr-1.so ? >> - do libapr-1 and libhttpd2core really get linked in statically, or are >> the libtool "la" files used to link them in dynamically (if you get a >> mod_jk.so out of the process, what does ldd mod_jk.so give for >> dependencies). >> >> I don't know Cygwin well enough, but I would be surprised if they >> compiled everything statically (but hey, sometimes there *is* a surprise >> ...). >> >> Regards, >> >> Rainer >> >> >> >> Vitek Cvachoucek wrote: >>> Ok so I have solved it, >>> >>> The cookbook to compile mod_jk on Cygwin >>> >>> * Download source distribution (no Cygwin binaries available) >>> * '''http://apache.mirror.superhosting.cz/tomcat/tomcat-connectors/jk/source/''' >>> * '''tomcat-connectors-1.2.26-src.tar.gz''' >>> >>> wget http://apache.mirror.superhosting.cz/tomcat/tomcat-connectors/jk/source/tomcat-connectors-1.2.26-src.tar.gz >>> gzip -d tomcat-connectors-1.2.26-src.tar.gz >>> tar -xf tomcat-connectors-1.2.26-src.tar >>> cd tomcat-connectors-1.2.26-src/native >>> ./configure --with-apxs=/usr/sbin/apxs2 >>> >>> * Hack Makefile building Apache 2.0 module >>> * '''apache-2.0/Makefile''' >>> * target '''mod_jk.la''' >>> * Added statically linked libraries for '''apache2-devel, apr1, >>> aprutil1''' >>> >>> mod_jk.la: mod_jk.lo $(APACHE_OBJECTS) >>> $(LIBTOOL) --mode=link ${COMPILE} -no-undefined `${APXS} -q LDFLAGS` >>> -o $@ -module -rpath ${libexecdir} -avoid-version mod_jk.lo >>> $(APACHE_OBJECTS) /usr/lib/libapr-1.la /usr/lib/libhttpd2core.la >>> /usr/lib/libaprutil-1.la >>> >>> * Now the '''make''' succeedes in creating '''mod_jk.so''' >>> >>> >>> On Feb 5, 2008 10:01 AM, Vitek Cvachoucek wrote: >>>> I have now found a way how to get more information relating failing linkage: >>>> >>>> I have modified apache2.0/Makefile passing -no-undefined flag to the linker >>>> {{{ >>>> mod_jk.la: mod_jk.lo $(APACHE_OBJECTS) >>>> $(LIBTOOL) --mode=link ${COMPILE} -no-undefined `${APXS} -q LDFLAGS` >>>> -o $@ -module -shared -rpath ${libexecdir} -avoid-version >>>> mod_jk.lo $(APACHE_OBJECTS) >>>> }}} >>>> >>>> Now I see it complains about APR libraries: >>>> >>>> {{{ >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:2147: >>>> undefined reference to `_apr_table_get' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:2162: >>>> undefined reference to `_apr_table_get' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:2165: >>>> undefined reference to `_ap_setup_client_block' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:2269: >>>> undefined reference to `_apr_table_setn' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:2272: >>>> undefined reference to `_apr_time_now' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:637: >>>> undefined reference to `_ap_get_remote_host' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:660: >>>> undefined reference to `_ap_get_server_name' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:668: >>>> undefined reference to `_ap_get_server_port' >>>> /home/developer/tomcat-connectors-1.2.26-src/native/apache-2.0/mod_jk.c:671: >>>> undefined reference to `_ap_get_server_description' >>>> .... >>>> }}} >>>> >>>> >>>> However I do have apr1 and aprutil1 installed , perhaps it is again >>>> something as weird as with WSGI compilation that required to hack >>>> libtool as it was unable to recognize cygwin shared libraries .... >>>> >>>> Any ideas? >>>> >>>> Vitek >>>> >>>> >>>> On Feb 5, 2008 7:51 AM, Vitek Cvachoucek wrote: >>>>> Thank you for your help, >>>>> >>>>> I am already using configure --with-apxs=/usr/sbin/apxs2 >>>>> >>>>> The whole offending section is: >>>>> >>>>> /usr/share/apr-1-build/libtool --mode=link gcc -I/usr/include/apache2 >>>>> -g -O2 -DUSE_APACHE_MD5 -I ../common -I c:\java\jdk1.5.0/include -I >>>>> c:\java\jdk1.5.0/include/cygwin -DCYGWIN -O2 -DHAVE_APR >>>>> -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -DCYGWIN >>>>> `/usr/sbin/apxs2 -q LDFLAGS` -o mod_jk.la -module -rpath >>>>> /usr/lib/apache2 -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_shm.lo ../common/jk_ajp_common.lo >>>>> ../common/jk_context.lo ../common/jk_url.lo ../common/jk_status.lo >>>>> libtool: link: warning: undefined symbols not allowed in >>>>> i686-pc-cygwin shared libraries >>>>> >>>>> I managed to get rid of the libtool's --silent flag however no more >>>>> information provided. Is there somebody able to pinpoint what is wrong >>>>> with it, e.g. specific libraries it is missing (like >>>>> c:\java\jdk1.5.0\include\cygwin which is of course wrong but perhaps >>>>> harmless), guess the >>>>> the build process can be confused by OS name (as Cygwin is no OS at the end). >>>>> >>>>> Again any help would be much appreciated. >>>>> >>>>> Regards >>>>> Vitek >>>>> >>>>> >>>>> On Feb 5, 2008 1:00 AM, Rainer Jung wrote: >>>>>> Unfortunately no Cygwin experience yet. If you compiled your httpd under >>>>>> Cygwin, I expect you have a /my/path/to/httpd/bin/apxs file? >>>>>> >>>>>> What happens if you try >>>>>> >>>>>> configure --with-apxs=/my/path/to/httpd/bin/apxs >>>>>> >>>>>> and then make? >>>>>> >>>>>> Do you get the error you mentioned? Any indication, which symbols are >>>>>> meant there ("undefined")? >>>>>> >>>>>> Regards, >>>>>> >>>>>> Rainer >>>>>> >>>>>> >>>>>> Vitek Cvachoucek schrieb: >>>>>> >>>>>>> Hello gentleman, >>>>>>> >>>>>>> did anybody of you ever attempted to have Apache 2 on Cygwin equipped >>>>>>> with mod_jk? >>>>>>> >>>>>>> The main documentation page counts Cygwin as a supported platform: >>>>>>> >>>>>>> http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html >>>>>>> >>>>>>> However I have never found binary release for Cygwin. The Win32 builds >>>>>>> do not work with Cygwin. Perhaps it would be possible to build from >>>>>>> source on cygwin however all my attempts ended with: >>>>>>> >>>>>>> libtool: link: warning: undefined symbols not allowed in >>>>>>> i686-pc-cygwin shared libraries >>>>>>> >>>>>>> We a complex existing Cygwin-based system (Apache, WSGI, Subversion, >>>>>>> Trac, Ssh ...) so moving out of cygwin is not an option (while >>>>>>> mod_proxy may be an option). Does anybody have any experience running >>>>>>> mod_jk on Cygwin? Any help would be greatly appreciated. >>>>>>> >>>>>>> Vitek --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org