[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openbsd mod_jk.so build problem



On Sun, May 27, 2001 at 10:40:45PM +0200, Joan wrote:

<snip>

> ../jk/jk_jni_worker.c: In function `load_jvm_dll':
> ../jk/jk_jni_worker.c:724: `RTLD_NOW' undeclared (first use in this
> function)
> ../jk/jk_jni_worker.c:724: (Each undeclared identifier is reported only once
> ../jk/jk_jni_worker.c:724: for each function it appears in.)
> ../jk/jk_jni_worker.c:724: `RTLD_GLOBAL' undeclared (first use in this
> function)

--- jk_jni_worker.c.new Sun May 27 20:28:44 2001
+++ jk_jni_worker.c     Tue Dec 12 23:51:55 2000
@@ -721,7 +721,7 @@
     jk_log(l, JK_LOG_DEBUG, 
            "Into load_jvm_dll, load %s\n", p->jvm_dll_path);

-    handle = dlopen(p->jvm_dll_path, DL_LAZY);
+    handle = dlopen(p->jvm_dll_path, RTLD_NOW | RTLD_GLOBAL);

     if(!handle) {
         jk_log(l, JK_LOG_EMERG, 


/Nils



Visit your host, monkey.org