Apache OpenOffice (AOO) Bugzilla – Issue 21106
Building odk: Undefined symbol "JVM_RaiseSignal"
Last modified: 2005-02-07 13:24:40 UTC
Hi, building odk project from current oofix1 on FreeBSD-release-5.1 with JDK 1.3.1: /usr/home/pavel/BuildDir/ooo_1.1.0_src/solenv/bin/checkdll.sh -L../../../../unxfbsd.pro/lib -L../lib -L/usr/home/pavel/BuildDir/ooo_1.1.0_src/solenv/unxfbsd/lib -L/usr/home/pavel/BuildDir/ooo_1.1.0_src/solver/645/unxfbsd.pro/lib -L/usr/home/pavel/BuildDir/ooo_1.1.0_src/solenv/unxfbsd/lib -L/usr/local/jdk1.3.1/lib -L/usr/local/jdk1.3.1/jre/lib/i386 -L/usr/local/jdk1.3.1/jre/lib/i386/client -L/usr/local/jdk1.3.1/jre/lib/i386/native_threads -L/usr/X11R6/lib ../../../../unxfbsd.pro/lib/check_libofficebean.so Checking DLL ../../../../unxfbsd.pro/lib/check_libofficebean.so ...: ERROR: /usr/local/jdk1.3.1/jre/lib/i386/libawt.so: Undefined symbol "JVM_RaiseSignal" dmake: Error code 1, while making '../../../../unxfbsd.pro/lib/libofficebean.so'
Same on NetBSD, this seems to be a problem in the BSD jdk porting project: That symbol is found in libjvm.so and libawt.so from the SUN jdk 1.3.1 on Linux indeed has a dependency on libjvm.so. Just adding -ljvm on the link line solved the problem for me. (I'll attach a proper patch for the makefile later.)
Created attachment 10281 [details] patch
With this patch: pavel@inspired:~/BuildDir/ooo_1.1.0_src/odk/source/bean/native/unix> /home/pavel //BuildDir/ccache /usr/bin/g++ -shared -L../../../../unxfbsd.pro/lib -L../lib -L/usr/home/pavel/BuildDir/ooo_1.1.0_src/solenv/unxfbsd/lib -L/usr/home/pavel/BuildDir/ooo_1.1.0_src/solver/645/unxfbsd.pro/lib -L/usr/home/pavel/BuildDir/ooo_1.1.0_src/solenv/unxfbsd/lib -L/usr/local/jdk1.3.1/lib -L/usr/local/jdk1.3.1/jre/lib/i386 -L/usr/local/jdk1.3.1/jre/lib/i386/client -L/usr/local/jdk1.3.1/jre/lib/i386/native_threads -L/usr/X11R6/lib ../../../../unxfbsd.pro/slo/officebean_version.o -o ../../../../unxfbsd.pro/lib/libofficebean.so ../../../../unxfbsd.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -ljawt -lsal -ljvm -lc_r -lm -lstlport_gcc /usr/bin/ld: cannot find -ljvm
pavel@inspired:/usr/local/jdk1.3.1> grep -r JVM_RaiseSignal * 2>/dev/null include-old/jvm.h:JVM_RaiseSignal(jint sig); Binary file jre/lib/i386/classic/libjvm.so matches Binary file jre/lib/i386/classic/libjvm_g.so matches Binary file jre/lib/i386/libjava.so matches Binary file jre/lib/i386/libawt.so matches Binary file jre/lib/i386/libjava_g.so matches pavel@inspired:/usr/local/jdk1.3.1> I added -L/usr/local/jdk1.3.1/jre/lib/i386/classic and its OK - IIRC Kevin must did something similar for PPC too...
Hmm, do you use JDK 1.3.1 (diabolo)? we recommend to use JDK 1.4.1, which is quite stable now. for PPC port, I wrote some patch about this issue. plase see: http://ja.openoffice.org/servlets/ProjectDownloadList?action=download&dlID=339 http://www.openoffice.org/files/111/4012/build_instruction_for_ppc_gnu_linux patch-odk+source+bean+native+unix+makefile.mk add -lhpi for hotspot VM
Opps, I made mistake again... however, with JDK 1.4.1, we can build sucessfully. my build instruction for Linux/PPC might help you.
OK, I use 1.4.1 and it is without problems. I do not have time to test 1.3.1 further :-(
Can we please leave this bug open? (Issuezilla won't let me do this myself.) This isn't "FIXED" at all, and at least also affects NetBSD.
Of course. Will you try to debug this further?
Yes, I will.
reassigned to michael, for further investigation. michael, what target milestone do you target for the next NetBSD OOo release ? I guess, some 1.1.x, please let me know if other target is needed.
Accepting issue. With regard to next NetBSD OOo release: I'll write a mail to dev@porting soon, but this includes another person's work and I'm waiting for some comments from him. Target OOo1.1.2 looks realistic from my point of view.
mrauch: what is the status of this? It is still on MyIssues list :-)
On mine as well. ;-) In addition to the patch one has to get the java library pathes in config_office/set_soenv.in right, and I haven't found time yet to look at that part in detail.
retarget to 1.1.3.
and again, to 1.1.4 ;-) What about closing this as WONTFIX? ;-)
retarget.
Enough retargetting ;-)
Closing.