tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitek Cvachoucek" <vitekcvachou...@gmail.com>
Subject Re: mod_jk in Cygwin
Date Tue, 05 Feb 2008 09:01:39 GMT
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 <vitekcvachoucek@gmail.com> 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 <rainer.jung@kippdata.de> 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
> >
> >
>

---------------------------------------------------------------------
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


Mime
View raw message