tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <br...@panix.com>
Subject Re: mod_jk.so compile errors
Date Sat, 02 Dec 2000 22:04:58 GMT
The problem is that jk_pool_atom_t is not defined.  The reason as
you can see from the code in jk_pool.h is that there are only #defines
for WIN32, AIX, SOLARIS, LINUX, FREEBSD, OS2 and NETWARE.  The code AS IS
will only compile on these OS's.

Try editing the file and put this line in:

typedef long long   jk_pool_atom_t;


jk_pool.h:
/*
 * The pool atom (basic pool alocation unit) is an 8 byte long.
 * Each allocation (even for 1 byte) will return a round up to the
 * number of atoms.
 *
 * This is to help in alignment of 32/64 bit machines ...
 * G.S
 */
#ifdef WIN32
    typedef __int64     jk_pool_atom_t;
#elif defined(AIX)
    typedef long long   jk_pool_atom_t;
#elif defined(SOLARIS)
    typedef long long   jk_pool_atom_t;
#elif defined(LINUX)
    typedef long long   jk_pool_atom_t;
#elif defined(FREEBSD)
    typedef long long   jk_pool_atom_t;
#elif defined(OS2)
    typedef long long   jk_pool_atom_t;
#elif defined(NETWARE)
    typedef long long   jk_pool_atom_t;
#endif   

| Hi all,
| 
| I'm new to this list and I'm trying to install Tomcat 3.2 and mod_jk for
| Apache 1.3.14, all that on Tru64 Unix 5.1 (Alpha).
| 
| I used this cmd to compile the shared mod_jk:
| 
| /apache/sbin/apxs -o mod_jk.so -I../jk -I/usr/opt/java118/include
| -I/usr/opt/java118/include/alpha -lposix4 -c *.c ../jk/*.c
| 
| (it makes no difference if -lposix4 is used or not)
|
| I get these errors:
| 
| cc -DOSF1 -DMOD_PERL -DUSE_PERL_SSI -std -fprm d -ieee -D_INTRINSICS
| -I/usr/local/include -D__LANGUAGE_C__ -DUSE_HSREGEX -DUSE_EXPAT
|  -I../lib/expat-lite -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
| -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/opt/java1
| 18/include -I/usr/opt/java118/include/alpha  -c mod_jk.c
| cc: Error: ../jk/jk_pool.h, line 116: Ill-formed parameter type list.
| (parmtyplist)
|                   jk_pool_atom_t *buf,
| ------------------^
| cc: Error: mod_jk.c, line 679: In this declaration, "jk_pool_atom_t" must
| specify a type. (badparsedecl)
|             jk_pool_atom_t buf[SMALL_POOL_SIZE];
| ------------^
| cc: Error: mod_jk.c, line 680: In this statement, "buf" is not declared.
| (undeclared)
|             jk_open_pool(&private_data.p, buf, sizeof(buf));
| ------------------------------------------^
| apxs:Break: Command failed with rc=1
| 
| Can someone help fix this?
| 
| -- 
| Didier Godefroy
| mailto:dg@ulysium.net



Mime
View raw message