|
|||||||||||
|
DO NOT REPLY [Bug 9548] New: - mod_jk.so will not compile under AIX 4.3.3
From: <bugzilla(at)apache.org>
Date: Fri May 31 2002 - 14:11:35 EDT
mod_jk.so will not compile under AIX 4.3.3
Summary: mod_jk.so will not compile under AIX 4.3.3
Product: Apache httpd-1.3
Version: 1.3.23
Platform: Other
OS/Version: AIX
Status: NEW
Severity: Normal
Priority: Other
Component: Other mods
AssignedTo: bugs@httpd.apache.org
ReportedBy: dfields326@netscape.net
mod_jk.so will not compile under AIX 4.3.3 without modifications
using mod_jk sources
Using Apache 1.3.23 modfications that need
to be made are the following
putting these typedefs at the top of the file
/*
And using these function
Tpfnjni_create_java_vm
eg) code snip
jk_logger_t *l)
{ #ifdef WIN32
HINSTANCE hInst =
if(hInst) {
(FARPROC)jni_create_java_vm =
GetProcAddress(hInst, "JNI_CreateJavaVM");
(FARPROC)jni_get_created_java_vms =
GetProcAddress(hInst, "JNI_GetCreatedJavaVMs"); (FARPROC)jni_get_default_java_vm_init_args =
GetProcAddress(hInst,
jk_log(l, JK_LOG_DEBUG,
"Loaded all JNI
procs\n"); if(jni_create_java_vm && jni_get_default_java_vm_init_args && jni_get_created_java_vms) {
return JK_TRUE;
}
FreeLibrary(hInst);
} #elif defined(NETWARE) int javaNlmHandle = FindNLMHandle("JVM"); if (0 == javaNlmHandle) { /* if we didn't get a handle, try to load java and retry getting the */
/* handle */
spawnlp(P_NOWAIT, "JVM.NLM", NULL);
ThreadSwitchWithDelay();
javaNlmHandle =
FindNLMHandle("JVM");
if (0 == javaNlmHandle)
printf("Error loading Java.");
}
jni_create_java_vm = ImportSymbol(GetNLMHandle(), "JNI_CreateJavaVM"); jni_get_created_java_vms = ImportSymbol(GetNLMHandle(), "JNI_GetCreatedJavaVMs"); jni_get_default_java_vm_init_args = ImportSymbol(GetNLMHandle(), "JNI_GetDefaultJavaVMInitArgs"); } if(jni_create_java_vm && jni_get_default_java_vm_init_args && jni_get_created_java_vms) {
return JK_TRUE;
void *handle;
handle = dlopen(p-
if(!handle) {
jk_log(l, JK_LOG_EMERG,
"Can't load native library %s : %s\n", p->jvm_dll_path,
dlerror());
} else {
/* AIX
REQUIRED EXPLLICT FUNCTION PTR CASTS */
jni_create_java_vm =
(Tpfnjni_create_java_vm)dlsym(handle, "JNI_CreateJavaVM");
jni_get_default_java_vm_init_args =
jni_get_created_java_vms =
if(jni_create_java_vm && jni_get_default_java_vm_init_args && jni_get_created_java_vms) {
jk_log(l, JK_LOG_DEBUG,
"In load_jvm_dll, symbols
resolved, done\n");
return JK_TRUE;
}
jk_log(l, JK_LOG_EMERG,
"Can't resolve
JNI_CreateJavaVM or JNI_GetDefaultJavaVMInitArgs\n");
dlclose(handle);
} #endif
return JK_FALSE;
Also the apache13/bin/apxs script needed to be modified to link
mod_jk.so
#modifed for AIX
after this
I am trying Apache 2.0.36 now and
build-unix.sh failes to link giving the following output :
/services/apache2/build/libtool --silent --mode=link xlc_r -o mod_jk.so -rpath
/
jk_ajp14_worker.lo jk_ajp14.lo jk_ajp13_wor ker.lo jk_ajp13.lo jk_ajp12_worker.lo ld: 0711-317 ERROR: Undefined symbol: .main ld: 0711-345 Use the - bloadmap or -bnoquiet option to obtain more information. apxs:Error: Command failed with rc=524288 To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Fri May 31 18:11:32 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:43:38 EDT |
||||||||||
|
|||||||||||