You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Billingham, Walter 475" <Wa...@CIGNA.com> on 2002/07/23 23:02:38 UTC

mod_jk compile error

Anyone know what this means below?  I am trying to compile the mod_jk.so
file.  Thanks. Trask.

# CC=/usr/local/bin/gcc ./build-aix.sh
Building mod_jk
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
-D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
-DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
131/jre/lib  -c ../common/jk_ajp12_worker.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
-D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
-DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
131/jre/lib  -c ../common/jk_ajp13.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
-D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
-DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
131/jre/lib  -c ../common/jk_ajp13_worker.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
-D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
-DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
131/jre/lib  -c ../common/jk_connect.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
-D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
-DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
131/jre/lib  -c ../common/jk_jni_worker.c
"../common/jk_jni_worker.c", line 67.10: 1506-296 (S) #include file <jni.h>
not found.
"../common/jk_jni_worker.c", line 102.15: 1506-277 (S) Syntax error:
possible missing ')' or ','?
"../common/jk_jni_worker.c", line 102.1: 1506-273 (E) Missing type in
declaration of jint.
"../common/jk_jni_worker.c", line 102.1: 1506-033 (S) Function jint is not
valid. Function cannot return a function.
"../common/jk_jni_worker.c", line 102.1: 1506-282 (S) The type of the
parameters must be specified in a prototype.
"../common/jk_jni_worker.c", line 102.59: 1506-512 (S) An initializer is not
allowed for "jint".
"../common/jk_jni_worker.c", line 103.15: 1506-277 (S) Syntax error:
possible missing ')' or ','?
"../common/jk_jni_worker.c", line 103.36: 1506-279 (S) A function declarator
cannot have a parameter identifier list if it is not a 
function definition.
"../common/jk_jni_worker.c", line 103.1: 1506-273 (E) Missing type in
declaration of jint.
"../common/jk_jni_worker.c", line 103.1: 1506-033 (S) Function jint is not
valid. Function cannot return a function.
"../common/jk_jni_worker.c", line 103.1: 1506-282 (S) The type of the
parameters must be specified in a prototype.
"../common/jk_jni_worker.c", line 103.66: 1506-512 (S) An initializer is not
allowed for "jint".
"../common/jk_jni_worker.c", line 104.15: 1506-277 (S) Syntax error:
possible missing ')' or ','?
"../common/jk_jni_worker.c", line 104.42: 1506-279 (S) A function declarator
cannot have a parameter identifier list if it is not a 
function definition.
"../common/jk_jni_worker.c", line 104.1: 1506-273 (E) Missing type in
declaration of jint.
"../common/jk_jni_worker.c", line 104.1: 1506-033 (S) Function jint is not
valid. Function cannot return a function.
"../common/jk_jni_worker.c", line 104.1: 1506-282 (S) The type of the
parameters must be specified in a prototype.
"../common/jk_jni_worker.c", line 104.65: 1506-512 (S) An initializer is not
allowed for "jint".
"../common/jk_jni_worker.c", line 121.5: 1506-046 (S) Syntax error.
"../common/jk_jni_worker.c", line 196.5: 1506-046 (S) Syntax error.
"../common/jk_jni_worker.c", line 208.21: 1506-046 (S) Syntax error.
"../common/jk_jni_worker.c", line 212.21: 1506-046 (S) Syntax error.
"../common/jk_jni_worker.c", line 225.30: 1506-046 (S) Syntax error.
"../common/jk_jni_worker.c", line 229.27: 1506-046 (S) Syntax error.
"../common/jk_jni_worker.c", line 232.8: 1506-166 (S) Definition of function
JNIEnv requires parentheses.
"../common/jk_jni_worker.c", line 232.15: 1506-276 (S) Syntax error:
possible missing '{'?
"../common/jk_jni_worker.c", line 271.10: 1506-275 (S) Unexpected text rc
encountered.
"../common/jk_jni_worker.c", line 273.12: 1506-045 (S) Undeclared identifier
l.
"../common/jk_jni_worker.c", line 274.9: 1506-045 (S) Undeclared identifier
e.
"../common/jk_jni_worker.c", line 274.39: 1506-045 (S) Undeclared identifier
s.
"../common/jk_jni_worker.c", line 281.9: 1506-045 (S) Undeclared identifier
is_recoverable_error.
"../common/jk_jni_worker.c", line 287.17: 1506-022 (S) "env" is not a member
of "struct jni_endpoint".
"../common/jk_jni_worker.c", line 306.16: 1506-022 (S) "env" is not a member
of "struct jni_endpoint".
"../common/jk_jni_worker.c", line 306.40: 1506-022 (S) "env" is not a member
of "struct jni_endpoint".
"../common/jk_jni_worker.c", line 307.48: 1506-022 (S)
"jk_java_bridge_object" is not a member of "struct jni_worker".
"../common/jk_jni_worker.c", line 308.48: 1506-022 (S) "jk_service_method"
is not a member of "struct jni_worker".
"../common/jk_jni_worker.c", line 311.45: 1506-275 (S) Unexpected text 'int'
encountered.
"../common/jk_jni_worker.c", line 311.49: 1506-276 (S) Syntax error:
possible missing ')'?
"../common/jk_jni_worker.c", line 306.5: 1506-045 (S) Undeclared identifier
rc.
"../common/jk_jni_worker.c", line 358.5: 1506-045 (S) Undeclared identifier
JNIEnv.
"../common/jk_jni_worker.c", line 358.13: 1506-045 (S) Undeclared identifier
env.
"../common/jk_jni_worker.c", line 436.27: 1506-099 (S) Unexpected argument.
"../common/jk_jni_worker.c", line 442.35: 1506-099 (S) Unexpected argument.
"../common/jk_jni_worker.c", line 449.32: 1506-099 (S) Unexpected argument.
"../common/jk_jni_worker.c", line 457.8: 1506-022 (S) "tmp_env" is not a
member of "struct jni_worker".
"../common/jk_jni_worker.c", line 470.5: 1506-045 (S) Undeclared identifier
JNIEnv.
"../common/jk_jni_worker.c", line 470.13: 1506-045 (S) Undeclared identifier
env.
"../common/jk_jni_worker.c", line 486.12: 1506-022 (S) "jvm" is not a member
of "struct jni_worker".
"../common/jk_jni_worker.c", line 487.12: 1506-022 (S)
"jk_java_bridge_object" is not a member of "struct jni_worker".
"../common/jk_jni_worker.c", line 488.12: 1506-022 (S) "jk_service_method"
is not a member of "struct jni_worker".
"../common/jk_jni_worker.c", line 489.12: 1506-022 (S) "jk_startup_method"
is not a member of "struct jni_worker".
"../common/jk_jni_worker.c", line 490.12: 1506-022 (S) "jk_shutdown_method"
is not a member of "struct jni_worker".
"../common/jk_jni_worker.c", line 499.18: 1506-022 (S) "tmp_env" is not a
member of "struct jni_worker".
"../common/jk_jni_worker.c", line 785.6: 1506-218 (E) Unknown preprocessing
directive #warning.
"../common/jk_jni_worker.c", line 786.6: 1506-218 (E) Unknown preprocessing
directive #warning.
"../common/jk_jni_worker.c", line 787.6: 1506-218 (E) Unknown preprocessing
directive #warning.
apxs:Break: Command failed with rc=1
Error with apxs
[wdc4002a(root): /webserver/jakarta-tomcat-4.0.2/native/mod_jk/apache1.3]
#

------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown.  This e-mail transmission may contain confidential information.  This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly.  Please delete it from your files if you are not the intended recipient.  Thank you for your compliance. Copyright (c) 2002 CIGNA

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: mod_jk compile error

Posted by Mark Pelillo <pe...@earthlink.net>.
This is one file you will have to edit. The problem is not with
jk_jni_worker.c but rather with jni.h.  Line 27 (if you are using
j2sdk1.4.0) of jni.h which is located in JAVA_HOME/include needs to be
modified to be "architecture/jni_md.h".  Change architecture to meet
your systems need.  For linux it is linux, for solaris it is sparc.


On Tue, 2002-07-23 at 16:02, Billingham, Walter 475 wrote:
> Anyone know what this means below?  I am trying to compile the mod_jk.so
> file.  Thanks. Trask.
> 
> # CC=/usr/local/bin/gcc ./build-aix.sh
> Building mod_jk
> cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
> -D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
> _C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
> -DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
> 131/jre/lib  -c ../common/jk_ajp12_worker.c
> cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
> -D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
> _C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
> -DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
> 131/jre/lib  -c ../common/jk_ajp13.c
> cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
> -D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
> _C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
> -DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
> 131/jre/lib  -c ../common/jk_ajp13_worker.c
> cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
> -D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
> _C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
> -DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
> 131/jre/lib  -c ../common/jk_connect.c
> cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qcpluscmt -qmaxmem=16384 -q32
> -D_LARGE_FILES -qlonglong -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE -D_ANSI
> _C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong
> -DSHARED_MODULE -I/webserver/jre/lib -I../common -I/usr/java
> 131/jre/lib  -c ../common/jk_jni_worker.c
> "../common/ ", line 67.10: 1506-296 (S) #include file <jni.h>
> not found.
> "../common/jk_jni_worker.c", line 102.15: 1506-277 (S) Syntax error:
> possible missing ')' or ','?
> "../common/jk_jni_worker.c", line 102.1: 1506-273 (E) Missing type in
> declaration of jint.
> "../common/jk_jni_worker.c", line 102.1: 1506-033 (S) Function jint is not
> valid. Function cannot return a function.
> "../common/jk_jni_worker.c", line 102.1: 1506-282 (S) The type of the
> parameters must be specified in a prototype.
> "../common/jk_jni_worker.c", line 102.59: 1506-512 (S) An initializer is not
> allowed for "jint".
> "../common/jk_jni_worker.c", line 103.15: 1506-277 (S) Syntax error:
> possible missing ')' or ','?
> "../common/jk_jni_worker.c", line 103.36: 1506-279 (S) A function declarator
> cannot have a parameter identifier list if it is not a 
> function definition.
> "../common/jk_jni_worker.c", line 103.1: 1506-273 (E) Missing type in
> declaration of jint.
> "../common/jk_jni_worker.c", line 103.1: 1506-033 (S) Function jint is not
> valid. Function cannot return a function.
> "../common/jk_jni_worker.c", line 103.1: 1506-282 (S) The type of the
> parameters must be specified in a prototype.
> "../common/jk_jni_worker.c", line 103.66: 1506-512 (S) An initializer is not
> allowed for "jint".
> "../common/jk_jni_worker.c", line 104.15: 1506-277 (S) Syntax error:
> possible missing ')' or ','?
> "../common/jk_jni_worker.c", line 104.42: 1506-279 (S) A function declarator
> cannot have a parameter identifier list if it is not a 
> function definition.
> "../common/jk_jni_worker.c", line 104.1: 1506-273 (E) Missing type in
> declaration of jint.
> "../common/jk_jni_worker.c", line 104.1: 1506-033 (S) Function jint is not
> valid. Function cannot return a function.
> "../common/jk_jni_worker.c", line 104.1: 1506-282 (S) The type of the
> parameters must be specified in a prototype.
> "../common/jk_jni_worker.c", line 104.65: 1506-512 (S) An initializer is not
> allowed for "jint".
> "../common/jk_jni_worker.c", line 121.5: 1506-046 (S) Syntax error.
> "../common/jk_jni_worker.c", line 196.5: 1506-046 (S) Syntax error.
> "../common/jk_jni_worker.c", line 208.21: 1506-046 (S) Syntax error.
> "../common/jk_jni_worker.c", line 212.21: 1506-046 (S) Syntax error.
> "../common/jk_jni_worker.c", line 225.30: 1506-046 (S) Syntax error.
> "../common/jk_jni_worker.c", line 229.27: 1506-046 (S) Syntax error.
> "../common/jk_jni_worker.c", line 232.8: 1506-166 (S) Definition of function
> JNIEnv requires parentheses.
> "../common/jk_jni_worker.c", line 232.15: 1506-276 (S) Syntax error:
> possible missing '{'?
> "../common/jk_jni_worker.c", line 271.10: 1506-275 (S) Unexpected text rc
> encountered.
> "../common/jk_jni_worker.c", line 273.12: 1506-045 (S) Undeclared identifier
> l.
> "../common/jk_jni_worker.c", line 274.9: 1506-045 (S) Undeclared identifier
> e.
> "../common/jk_jni_worker.c", line 274.39: 1506-045 (S) Undeclared identifier
> s.
> "../common/jk_jni_worker.c", line 281.9: 1506-045 (S) Undeclared identifier
> is_recoverable_error.
> "../common/jk_jni_worker.c", line 287.17: 1506-022 (S) "env" is not a member
> of "struct jni_endpoint".
> "../common/jk_jni_worker.c", line 306.16: 1506-022 (S) "env" is not a member
> of "struct jni_endpoint".
> "../common/jk_jni_worker.c", line 306.40: 1506-022 (S) "env" is not a member
> of "struct jni_endpoint".
> "../common/jk_jni_worker.c", line 307.48: 1506-022 (S)
> "jk_java_bridge_object" is not a member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 308.48: 1506-022 (S) "jk_service_method"
> is not a member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 311.45: 1506-275 (S) Unexpected text 'int'
> encountered.
> "../common/jk_jni_worker.c", line 311.49: 1506-276 (S) Syntax error:
> possible missing ')'?
> "../common/jk_jni_worker.c", line 306.5: 1506-045 (S) Undeclared identifier
> rc.
> "../common/jk_jni_worker.c", line 358.5: 1506-045 (S) Undeclared identifier
> JNIEnv.
> "../common/jk_jni_worker.c", line 358.13: 1506-045 (S) Undeclared identifier
> env.
> "../common/jk_jni_worker.c", line 436.27: 1506-099 (S) Unexpected argument.
> "../common/jk_jni_worker.c", line 442.35: 1506-099 (S) Unexpected argument.
> "../common/jk_jni_worker.c", line 449.32: 1506-099 (S) Unexpected argument.
> "../common/jk_jni_worker.c", line 457.8: 1506-022 (S) "tmp_env" is not a
> member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 470.5: 1506-045 (S) Undeclared identifier
> JNIEnv.
> "../common/jk_jni_worker.c", line 470.13: 1506-045 (S) Undeclared identifier
> env.
> "../common/jk_jni_worker.c", line 486.12: 1506-022 (S) "jvm" is not a member
> of "struct jni_worker".
> "../common/jk_jni_worker.c", line 487.12: 1506-022 (S)
> "jk_java_bridge_object" is not a member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 488.12: 1506-022 (S) "jk_service_method"
> is not a member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 489.12: 1506-022 (S) "jk_startup_method"
> is not a member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 490.12: 1506-022 (S) "jk_shutdown_method"
> is not a member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 499.18: 1506-022 (S) "tmp_env" is not a
> member of "struct jni_worker".
> "../common/jk_jni_worker.c", line 785.6: 1506-218 (E) Unknown preprocessing
> directive #warning.
> "../common/jk_jni_worker.c", line 786.6: 1506-218 (E) Unknown preprocessing
> directive #warning.
> "../common/jk_jni_worker.c", line 787.6: 1506-218 (E) Unknown preprocessing
> directive #warning.
> apxs:Break: Command failed with rc=1
> Error with apxs
> [wdc4002a(root): /webserver/jakarta-tomcat-4.0.2/native/mod_jk/apache1.3]
> #
> 
> ------------------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown.  This e-mail transmission may contain confidential information.  This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly.  Please delete it from your files if you are not the intended recipient.  Thank you for your compliance. Copyright (c) 2002 CIGNA
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>