You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/07/05 22:18:03 UTC

problems compling mod_jk for apache-1.3 on linux

i'm getting these errors with the latest cvs:

[root@benjamin apache-1.3]# ./build-unix.sh
APACHE_HOME=/usr/local/apache
Compiling mod_jk
gcc -DLINUX=2 -DMOD_SSL=206106 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_CORE -DSHARED_MODULE
-I/usr/local/apache/include -I../common -I/usr/local/java/include
-I/usr/local/java/include/linux  -c mod_jk.c
In file included from ../common/jk_global.h:68,
                 from mod_jk.c:94:
../common/jk_version.h:93: parse error before `<'
In file included from ../common/jk_global.h:92,
                 from mod_jk.c:94:
/usr/include/netinet/tcp.h:84: parse error before `:'
/usr/include/netinet/tcp.h:85: parse error before `:'
/usr/include/netinet/tcp.h:86: parse error before `:'
/usr/include/netinet/tcp.h:87: parse error before `:'
/usr/include/netinet/tcp.h:88: parse error before `:'
/usr/include/netinet/tcp.h:89: parse error before `:'
/usr/include/netinet/tcp.h:90: parse error before `:'
/usr/include/netinet/tcp.h:91: parse error before `:'
/usr/include/netinet/tcp.h:92: parse error before `:'
/usr/include/netinet/tcp.h:109: parse error before `}'
apxs:Break: Command failed with rc=65536
Installing mod_jk.so into /usr/local/apache/libexec
cp: mod_jk.so: No such file or directory
Done. Install by running ./install-unix.sh

the parse error in jk_global.h looks to be a problem in j-t-c repository.
the parse error in tcp.h looks to be a problem with my glibc installation,
although any clues are welcome as i've never had a problem compiling
anything that used tcp before. also, the build script is erroneously
trying to install mod_jk.so, which it shouldn't do even if the build was
successful, but absolutely shouldn't do if the build is unsuccessful. :)
finally, the ./install-unix.sh script doesn't exist.

fwiw, i'm using glibc-2.1.3-21 on a linux-2.2.19 box with apache-1.3.12.

- donald