on 12/2/00 5:04 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] uttered the
following:

> 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;

You were right! that definitely helps, this is rather stupid on the part of
the development team, why do such things???

Anyway, this allowed the compiler to go further but I get other errors:

cc: Error: /usr/opt/java118/include/jni.h, line 49: #error "Modules that
interface with Java must be compiled and linked with the -p
thread option" (errormessage)
#error "Modules that interface with Java must be compiled and linked with
the -pthread option"
-^
cc: Warning: ../jk/jk_jni_worker.c, line 764: "warning" is an invalid
preprocessor directive, and is being ignored. (baddirective)
    #warning -------------------------------------------------------
-----^
cc: Warning: ../jk/jk_jni_worker.c, line 765: "warning" is an invalid
preprocessor directive, and is being ignored. (baddirective)
    #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED
-----^
cc: Warning: ../jk/jk_jni_worker.c, line 766: "warning" is an invalid
preprocessor directive, and is being ignored. (baddirective)
    #warning -------------------------------------------------------
-----^
cc: Warning: ../jk/jk_jni_worker.c, line 731: In this statement, the
referenced type of the pointer value "dlsym(...)" is "void", wh
ich is not compatible with "function (pointer to pointer to pointer to const
struct JNIInvokeInterface_, pointer to pointer to point
er to const struct JNINativeInterface_, pointer to void) returning int".
(ptrmismatch)
        jni_create_java_vm = dlsym(handle, "JNI_CreateJavaVM");
--------^
cc: Warning: ../jk/jk_jni_worker.c, line 732: In this statement, the
referenced type of the pointer value "dlsym(...)" is "void", wh
ich is not compatible with "function (pointer to void) returning int".
(ptrmismatch)
        jni_get_default_java_vm_init_args = dlsym(handle,
"JNI_GetDefaultJavaVMInitArgs");
--------^
apxs:Break: Command failed with rc=1

Would adding -pthread in CFLAGS help with this?
Are the warnings anything to worry about?

-- 
Didier Godefroy
mailto:[EMAIL PROTECTED]

Reply via email to