DYLD_FALLBACK_LIBRARY_PATH changed in OpenJDK (was Re: How to load dylib on Mac?)

2009-07-24 Thread Weijun Wang
Hi All I've found something new. It seems the dlopen() function in Mac is quite normal, but there are some problem inside OpenJDK. I'm calling dlopen("libkrb5.dylib", RTLD_NOW) inside OpenJDK now and it returns NULL. However, if I manually set DYLD_LIBRARY_PATH or DYLD_FALLBACK_LIBRARY_PATH to /

Re: DYLD_FALLBACK_LIBRARY_PATH changed in OpenJDK (was Re: How to load dylib on Mac?)

2009-07-24 Thread Max (Weijun) Wang
In fact, why is DYLD_FALLBACK_LIBRARY_PATH updated in src/solaris/bin/ java_md.c? Why not DYLD_LIBRARY_PATH? DYLD_LIBRARY_PATH should be preferred than DYLD_FALLBACK_LIBRARY_PATH. If the libjpeg.dylib is in DYLD_LIBRARY_PATH, it will be loaded instead of /usr/lib/libjpeg.dylib. Thanks Max

Re: DYLD_FALLBACK_LIBRARY_PATH changed in OpenJDK (was Re: How to load dylib on Mac?)

2009-07-24 Thread Landon Fuller
On Jul 24, 2009, at 8:11 AM, Max (Weijun) Wang wrote: In fact, why is DYLD_FALLBACK_LIBRARY_PATH updated in src/solaris/bin/ java_md.c? Why not DYLD_LIBRARY_PATH? DYLD_LIBRARY_PATH should be preferred than DYLD_FALLBACK_LIBRARY_PATH. If the libjpeg.dylib is in DYLD_LIBRARY_PATH, it will be loa

Re: DYLD_FALLBACK_LIBRARY_PATH changed in OpenJDK (was Re: How to load dylib on Mac?)

2009-07-24 Thread Landon Fuller
On Jul 24, 2009, at 8:11 AM, Max (Weijun) Wang wrote: In fact, why is DYLD_FALLBACK_LIBRARY_PATH updated in src/solaris/bin/ java_md.c? Why not DYLD_LIBRARY_PATH? DYLD_LIBRARY_PATH should be preferred than DYLD_FALLBACK_LIBRARY_PATH. If the libjpeg.dylib is in DYLD_LIBRARY_PATH, it will be loa