Hi Rainer, Yes, your patch solved the problem! Thank you.
Taro App > ---------- Forwarded message ---------- > From: Rainer Jung <[EMAIL PROTECTED]> > To: Tomcat Users List <users@tomcat.apache.org> > Date: Tue, 20 May 2008 10:27:49 +0200 > Subject: Re: possible bug for mod_jk configure for cygwin > Taro App wrote: > > Hi list, > > > > I tried compiling mod_jk on cygwin and error occurred. It looks like a > > bug in configure, which correctly recognizes os as cygwin, but forgets > > to add -DCYGWIN for gcc, thus resulting in incorrect inclusion of > > sys/socketvar.h. Setting CFLAGS=-DCYGWIN solves the problem. Can > > someone take a look at it and maybe register this in a bug database? > > (I am pretty new here, so...) > > > > mod_jk: 1.2.26 > > apache: 2.2.8 > > cygwin 1.5.25 > > os: Windows XP SP2 > > > > Could you please try the following patch instead of any changes you did: > > Index: common/jk_global.h > =================================================================== > --- common/jk_global.h (old) > +++ common/jk_global.h (new) > @@ -137,7 +137,7 @@ > #include <netinet/tcp.h> > #include <arpa/inet.h> > #include <sys/un.h> > -#if !defined(_OSD_POSIX) && !defined(AS400) && !defined(CYGWIN) && > !defined(HPUX11) > +#if !defined(_OSD_POSIX) && !defined(AS400) && !defined(__CYGWIN__) && > !defined(HPUX11) > #include <sys/socketvar.h> > #endif > #if !defined(HPUX11) && !defined(AS400) > > > There is a line wrap in there. The patch should simply replace "CYGWIN" by > "__CYGWIN__" in file common/jk_global.h. > > > > > --------------------------------------------------------- > > > > ./buildconf.sh > > ./configure > --with-apache=/home/user/apache2tmp/httpd-2.2.8 > > make > > > > ..... > > > > gcc -I/apache2tmp/httpd-2.2.8/include > > -I/apache2tmp/httpd-2.2.8/srclib/apr/include > > -I/apache2tmp/httpd-2.2.8/os/unix > > -I/apache2tmp/httpd-2.2.8/srclib/apr-util/include -g -O2 > -g -O2 -I > > /include -I /include/Windows_NT -c jk_ajp12_worker.c -DDLL_EXPORT > > -DPIC -o .libs/jk_ajp12_worker.o > > In file included from jk_logger.h:27, > > from jk_ajp12_worker.h:27, > > from jk_ajp12_worker.c:26: > > jk_global.h:141:27: sys/socketvar.h: No such file or directory > > make[1]: *** [jk_ajp12_worker.lo] Error 1 > > make[1]: Leaving directory > > > `/tomcatconnectortmp/tomcat-connectors-1.2.26-src/native/common' > > make: *** [all-recursive] Error 1 > > > > Regards, > > Rainer --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]