You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2001/01/09 18:07:37 UTC

BugRat Report #728 has been filed.

Bug report #728 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/728>

REPORT #728 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: serious
Confidence: public
Environment: 
   Release: jakarta-tomcat-3.2.1
   JVM Release: Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
   Operating System: Solaris
   OS Release: 8
   Platform: sparc

Synopsis: 
mod_jk build fails on Solaris/sparc

Description:
Using apxs from apache 1.3.14 to build mod_jk on
Solaris 8/sparc with gcc 2.95.2 fails:

london-bridge:...src/native/apache1.3:# make -f Makefile.linux OS=solaris APXS=/opt/apache/sbin/apxs
/opt/apache/sbin/apxs -I ../jk -I /usr/java/include -I /usr/java/include/solaris -c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c           
gcc -pipe -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -O2 -fPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris  -c mod_jk.c
In file included from ../jk/jk_util.h:66,
                 from mod_jk.c:90:
../jk/jk_pool.h:116: parse error before `jk_pool_atom_t'
mod_jk.c: In function `jk_handler':
mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function)
mod_jk.c:679: (Each undeclared identifier is reported only once
mod_jk.c:679: for each function it appears in.)
mod_jk.c:679: parse error before `buf'
mod_jk.c:680: `buf' undeclared (first use in this function)
apxs:Break: Command failed with rc=1
make: *** [mod_jk.so] Error 1

Code inspections shows that the definition of `jk_pool_atom_t' 
is conditional on some CPP macro that shows what the OS is:
clearly on this system, the macro should be SOLARIS, but that
isn't defined anywhere.

apxs however defines a SOLARIS2 macro.