Apache OpenOffice (AOO) Bugzilla – Issue 11720
Exported symbols of shared lib jvmaccess depend on JDK version
Last modified: 2003-06-30 19:31:27 UTC
Shared lib jvmaccess exports C++ symbol jvmaccess::VirtualMachine::VirtualMachine(.., jint, ..). Problem is that jint expands to "long" on JDK 1.3 and to "int" on JDK 1.4, so that the interface of jvmaccess depends on the JDK used at build time. Remove this unwanted dependency by redesigning the argument list of the VirtualMachine class ctor. Thanks to Pavel Janik and Chris Halls for pointing this out to me.
accepted
I was only hit by the problem and I think it is my duty to report such problems to save time of other people ;-)
set target
Changed ctor parameter from jint to int.
verified on CWS uno1
closed
Could you please provide more detail on what is fix so that we can apply this on ALL open tags.
Affected files were jvmaccess/inc/jvmaccess/virtualmachine.hxx 1.1.12.1 jvmaccess/source/virtualmachine.cxx 1.1.2.1.4.1 jvmaccess/util/cc5_solaris_sparc.map 1.2.2.1.4.1 jvmaccess/util/gcc3_linux_intel.map 1.3.2.1.4.1 jvmaccess/util/msvc_win32_intel.map 1.1.2.1.4.1 (I hope that was all...)
Accepting issue. Will monitor and close next release if resolved.
Undefined first referenced symbol in file jvmaccess::VirtualMachine::VirtualMachine (JavaVM_*,int,bool,JNIEnv_*) /export/home/duke/oo_1.1beta_src/solver/6 44/unxsols4.pro/lib/libjvmaccessC52.so.3 ld: fatal: Symbol referencing errors. No output written to ../unxsols4.pro/bin/svdem dmake: Error code 1, while making '../unxsols4.pro/bin/svdem' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /export/home/duke/oo_1.1beta_src/vcl/workben dmake: Error code 1, while making 'build_all'
Undefined first referenced symbol in file jvmaccess::VirtualMachine::VirtualMachine (JavaVM_*,int,bool,JNIEnv_*) .../oo_1.1beta_src/solver/644/unxsols4.pr o/lib/libjvmaccessC52.so.3 ld: fatal: Symbol referencing errors. No output written to ../unxsols4.pro/bin/svdem dmake: Error code 1, while making '../unxsols4.pro/bin/svdem' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /export/home/duke/oo_1.1beta_src/vcl/workben dmake: Error code 1, while making 'build_all'
haggai->PITI: This was fixed *after* the 1.1 beta release. I'll attach the patch I made which will apply against 1.1 beta.
Created attachment 5882 [details] Patch of fix against 1.1 beta
mh->waratah: the status of this issue is not clear to me.
Subject to verification on beta2. Beta 2 broken for jdk 1.3.1 at present. Need someone to download extra packages into jdk 1.3.1 and verify that build works correctly. Must also update documentation to reflect requirement for jdk 1.3.1 to build beta 2 once (Kevin has decided).
This fix is not really QA-testable. (Only available tests are unit tests in sal/test/testtextenc.cxx.)
Forget my last comment, it was meant for another issue...
...and I also reassigned it by mistake!
Resolved.
Yes, closing.