Issue 21106 - Building odk: Undefined symbol "JVM_RaiseSignal"
Summary: Building odk: Undefined symbol "JVM_RaiseSignal"
Status: CLOSED WONT_FIX
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC FreeBSD
: P3 Trivial (vote)
Target Milestone: OOo 1.1.5
Assignee: mrauch-openoffice
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 18060
  Show dependency tree
 
Reported: 2003-10-13 07:56 UTC by pavel
Modified: 2005-02-07 13:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch (550 bytes, patch)
2003-10-13 21:23 UTC, mrauch-openoffice
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2003-10-13 07:56:18 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'
Comment 1 mrauch-openoffice 2003-10-13 12:57:55 UTC
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.)
Comment 2 mrauch-openoffice 2003-10-13 21:23:28 UTC
Created attachment 10281 [details]
patch
Comment 3 pavel 2003-10-13 21:46:45 UTC
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
Comment 4 pavel 2003-10-13 21:50:49 UTC
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...
Comment 5 maho.nakata 2003-10-22 08:29:47 UTC
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
Comment 6 maho.nakata 2003-10-22 08:45:46 UTC
Opps, I made mistake again... however, with JDK 1.4.1,
we can build sucessfully. my build instruction for
Linux/PPC might help you.

Comment 7 pavel 2003-10-30 08:37:29 UTC
OK, I use 1.4.1 and it is without problems. I do not have time to test
1.3.1 further :-(
Comment 8 mrauch-openoffice 2003-10-30 09:11:18 UTC
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.
Comment 9 pavel 2003-10-30 09:59:40 UTC
Of course. Will you try to debug this further?
Comment 10 mrauch-openoffice 2003-10-30 12:01:05 UTC
Yes, I will.
Comment 11 Martin Hollmichel 2003-11-17 14:27:11 UTC
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.
Comment 12 mrauch-openoffice 2003-11-17 16:02:08 UTC
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.
Comment 13 pavel 2004-03-16 20:26:43 UTC
mrauch: what is the status of this? It is still on MyIssues list :-)
Comment 14 mrauch-openoffice 2004-03-18 16:37:37 UTC
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.
Comment 15 pavel 2004-04-25 18:09:37 UTC
retarget to 1.1.3.
Comment 16 pavel 2004-08-18 17:35:35 UTC
and again, to 1.1.4 ;-)

What about closing this as WONTFIX? ;-)
Comment 17 Martin Hollmichel 2004-10-15 13:07:03 UTC
retarget.
Comment 18 pavel 2004-11-29 19:40:32 UTC
Enough retargetting ;-)
Comment 19 pavel 2005-02-07 13:24:40 UTC
Closing.