Hi everyone,

I'm having trouble getting mod_jk to compile for either apache1.3 or 2.0.  
I've read the instructions several times and I've worked out most of the 
problems with the makefiles (finding the header files), but I can't seem to 
get past this last problem.  The message below is what I get when I run the 
makefile or if I run the apxs command directly.  Any help would be greatly 
appreciated.

Ed



make -f Makefile
cc -c -DHAVE_CONFIG_H -g -fpic  -DSHARED_MODULE -O2 -D_REENTRANT -pthread 
-DLINUX -Wall -DAPACHE2_SIGHACK -I/usr/local/jdk1.3.1/include 
-I/usr/local/jdk1.3.1/include/linux -I. 
-I/home/root/JAVA/httpd-2_0_16/include 
-I/home/root/JAVA/httpd-2_0_16/src/modules/standard 
-I/home/root/JAVA/httpd-2_0_16/src -I/home/root/JAVA/httpd-2_0_16/src/include 
-I/home/root/JAVA/httpd-2_0_16/src/lib/apr/include 
-I/home/root/JAVA/httpd-2_0_16/src/os/unix 
-I/home/root/JAVA/httpd-2_0_16/srclib/apr/include 
-I/home/root/JAVA/httpd-2_0_16/srclib/apr-util/include 
-I/home/root/JAVA/httpd-2_0_16/os/unix -I../jk mod_jk.c
mod_jk.c:97: parse error before `jk_module'
mod_jk.c:97: warning: type defaults to `int' in declaration of `jk_module'
mod_jk.c:97: warning: data definition has no type or storage class
mod_jk.c: In function `ws_start_response':
mod_jk.c:161: warning: implicit declaration of function `ap_psprintf'
mod_jk.c:161: warning: assignment makes pointer from integer without a cast
mod_jk.c:165: warning: implicit declaration of function `ap_pstrdup'
mod_jk.c:165: warning: initialization makes pointer from integer without a 
cast
mod_jk.c:169: warning: implicit declaration of function `ap_table_set'
mod_jk.c:182: warning: implicit declaration of function `ap_table_add'
mod_jk.c:186: warning: implicit declaration of function `ap_send_http_header'
mod_jk.c: In function `ws_write':
mod_jk.c:225: `BUFF' undeclared (first use in this function)
mod_jk.c:225: (Each undeclared identifier is reported only once
mod_jk.c:225: for each function it appears in.)
mod_jk.c:225: `bf' undeclared (first use in this function)
mod_jk.c:225: structure has no member named `client'
mod_jk.c:226: `ap_size_t' undeclared (first use in this function)
mod_jk.c:226: parse error before `w'
mod_jk.c:236: warning: implicit declaration of function `ap_bwrite'
mod_jk.c:236: `w' undeclared (first use in this function)
mod_jk.c:236: `r' undeclared (first use in this function)
mod_jk.c:244: warning: implicit declaration of function `ap_bflush'
mod_jk.c: In function `jk_error_exit':
mod_jk.c:270: warning: implicit declaration of function `ap_pvsprintf'
mod_jk.c:270: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `get_content_length':
mod_jk.c:284: warning: implicit declaration of function `ap_table_get'
mod_jk.c: In function `init_ws_service':
mod_jk.c:312: too few arguments to function `ap_get_remote_host'
mod_jk.c:317: warning: assignment discards qualifiers from pointer target type
mod_jk.c:319: warning: assignment discards qualifiers from pointer target type
mod_jk.c:341: warning: implicit declaration of function `ap_table_elts'
mod_jk.c:342: `ap_array_header_t' undeclared (first use in this function)
mod_jk.c:342: `t' undeclared (first use in this function)
mod_jk.c:342: invalid lvalue in assignment
mod_jk.c:345: `ap_table_entry_t' undeclared (first use in this function)
mod_jk.c:345: `elts' undeclared (first use in this function)
mod_jk.c:345: parse error before `)'
mod_jk.c:347: warning: implicit declaration of function `ap_palloc'
mod_jk.c:347: warning: assignment makes pointer from integer without a cast
mod_jk.c:348: warning: assignment makes pointer from integer without a cast
mod_jk.c:350: warning: initialization makes pointer from integer without a 
cast
mod_jk.c:351: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_mountcopy':
mod_jk.c:374: request for member `module_index' in something not a structure 
or union
mod_jk.c: In function `jk_mount_context':
mod_jk.c:390: request for member `module_index' in something not a structure 
or union
mod_jk.c:396: warning: passing arg 4 of `map_put' from incompatible pointer 
type
mod_jk.c: In function `jk_set_wroker_file':
mod_jk.c:406: request for member `module_index' in something not a structure 
or union
mod_jk.c: In function `jk_set_log_file':
mod_jk.c:419: request for member `module_index' in something not a structure 
or union
mod_jk.c: In function `jk_set_log_level':
mod_jk.c:432: request for member `module_index' in something not a structure 
or union
mod_jk.c: At top level:
mod_jk.c:458: parse error before `jk_cleanup_endpoint'
mod_jk.c:458: warning: return type defaults to `int'
mod_jk.c: In function `jk_handler':
mod_jk.c:467: warning: initialization makes pointer from integer without a 
cast
mod_jk.c:476: request for member `module_index' in something not a structure 
or union
mod_jk.c: At top level:
mod_jk.c:538: parse error before `*'
mod_jk.c: In function `create_jk_config':
mod_jk.c:541: warning: implicit declaration of function `ap_pcalloc'
mod_jk.c:541: `p' undeclared (first use in this function)
mod_jk.c:551: `s' undeclared (first use in this function)
mod_jk.c: At top level:
mod_jk.c:560: parse error before `*'
mod_jk.c: In function `merge_jk_config':
mod_jk.c:564: `basev' undeclared (first use in this function)
mod_jk.c:565: `overridesv' undeclared (first use in this function)
mod_jk.c:576: `p' undeclared (first use in this function)
mod_jk.c:577: warning: passing arg 3 of `map_put' makes pointer from integer 
without a cast
mod_jk.c: At top level:
mod_jk.c:597: parse error before `*'
mod_jk.c: In function `jk_child_init':
mod_jk.c:603: `s' undeclared (first use in this function)
mod_jk.c:603: request for member `module_index' in something not a structure 
or union
mod_jk.c: At top level:
mod_jk.c:631: parse error before `*'
mod_jk.c: In function `jk_post_config':
mod_jk.c:636: `s' undeclared (first use in this function)
mod_jk.c:640: request for member `module_index' in something not a structure 
or union
mod_jk.c:647: warning: int format, pointer arg (arg 6)
mod_jk.c: In function `jk_translate':
mod_jk.c:684: request for member `module_index' in something not a structure 
or union
mod_jk.c:692: warning: assignment makes pointer from integer without a cast
mod_jk.c:693: warning: implicit declaration of function `ap_table_setn'
mod_jk.c: In function `jk_register_hooks':
mod_jk.c:714: `AP_HOOK_MIDDLE' undeclared (first use in this function)
mod_jk.c:719: `AP_HOOK_FIRST' undeclared (first use in this function)
mod_jk.c: At top level:
mod_jk.c:722: parse error before `jk_handlers'
mod_jk.c:722: warning: type defaults to `int' in declaration of `jk_handlers'
mod_jk.c:724: warning: braces around scalar initializer
mod_jk.c:724: warning: braces around scalar initializer
mod_jk.c:724: warning: braces around scalar initializer
mod_jk.c:724: warning: (near initialization for `jk_handlers[0]')
mod_jk.c:724: warning: initialization makes integer from pointer without a 
cast
mod_jk.c:724: warning: excess elements in scalar initializer
mod_jk.c:724: warning: (near initialization for `jk_handlers[0]')
mod_jk.c:725: warning: braces around scalar initializer
mod_jk.c:725: warning: (near initialization for `jk_handlers[1]')
mod_jk.c:725: warning: initialization makes integer from pointer without a 
cast
mod_jk.c:725: warning: excess elements in scalar initializer
mod_jk.c:725: warning: (near initialization for `jk_handlers[1]')
mod_jk.c:726: warning: braces around scalar initializer
mod_jk.c:726: warning: (near initialization for `jk_handlers[2]')
mod_jk.c:726: warning: initialization makes integer from pointer without a 
cast
mod_jk.c:727: warning: data definition has no type or storage class
mod_jk.c:729: parse error before `jk_module'
mod_jk.c:729: warning: type defaults to `int' in declaration of `jk_module'
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:731: warning: excess elements in scalar initializer
mod_jk.c:731: warning: (near initialization for `jk_module')
mod_jk.c:732: warning: excess elements in scalar initializer
mod_jk.c:732: warning: (near initialization for `jk_module')
mod_jk.c:733: warning: excess elements in scalar initializer
mod_jk.c:733: warning: (near initialization for `jk_module')
mod_jk.c:734: warning: excess elements in scalar initializer
mod_jk.c:734: warning: (near initialization for `jk_module')
mod_jk.c:735: warning: excess elements in scalar initializer
mod_jk.c:735: warning: (near initialization for `jk_module')
mod_jk.c:736: warning: excess elements in scalar initializer
mod_jk.c:736: warning: (near initialization for `jk_module')
mod_jk.c:737: warning: excess elements in scalar initializer
mod_jk.c:737: warning: (near initialization for `jk_module')
mod_jk.c:739: warning: excess elements in scalar initializer
mod_jk.c:739: warning: (near initialization for `jk_module')
mod_jk.c:739: warning: data definition has no type or storage class
mod_jk.c:635: warning: `jk_post_config' defined but not used
make: *** [mod_jk.o] Error 1

Reply via email to