I’m trying to compile mod_jk 1.2.14 under FreeBSD 5.3.  I have searched the 
tomcat archives for the last 6 months, and done some googling as well, to no 
avail.  I am getting the following error building mod_jk with gcc 3.4.2 and 
gmake 3.80:

Making all in common
gmake[1]: Entering directory 
`/usr/local/src/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common'
/usr/local/bin/bash /usr/local/apache2/build/libtool --silent --mode=compile 
gcc -I/usr/local/apache2/include -g -O2 -DEAPI -g -O2 -DHAVE_APR  
-I/usr/local/src/httpd-2.0.50/srclib/apr/include 
-I/usr/local/src/httpd-2.0.50/srclib/apr-util/include -g -O2 -DEAPI 
-D_REENTRANT -D_THREAD_SAFE -I /include -I /include/ -c jk_util.c -o jk_util.lo
jk_util.c: In function `jk_gettid':
jk_util.c:1245: error: invalid operands to binary &
gmake[1]: *** [jk_util.lo] Error 1
gmake[1]: Leaving directory 
`/usr/local/src/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common'
gmake: *** [all-recursive] Error 1
[EMAIL 
PROTECTED]:/usr/local/src/jakarta-tomcat-connectors-1.2.14.1-src/jk/native$ 


The problem seems to be this line, near the end of  ./common/jk_util.c


    int tid = (int)(t & 0xFFFF);

Removing the & 0xFFFF allows the jk_util to compile.  Clearly, I don’t know C, 
so I suspect strongly this is not the correct solution ;-).  Does anyone know 
how to get mod_jk to compile on FreeBSD?  TIA,

-- 
Mike
 


_____________________________________________________________
Tired of spam and viruses? Get a VolcanoMail account with SpamShield Pro and 
Anti-Virus technology! http://www.volcanomail.com/

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

Reply via email to