Bug 118496

Summary: Eclipse packages do not work with 6.3-RC1/amd64
Product: Base System Reporter: Jim Capozzoli <saltmiser>
Component: javaAssignee: freebsd-java (Nobody) <java>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Jim Capozzoli 2007-12-08 18:30:02 UTC
If you install eclipse from packages, the resulting `eclipse-devel` binary
doesn't work.  You receive two error messages in two different places.

The first one comes up in a gui prompt:

JVM terminated. Exit code=1
/usr/local/bin/java
-Xms40m
-Xmx256m
-jar /usr/local/eclipse-devel/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-os freebsd
-ws gtk
-arch amd64
-showsplash
-launcher /usr/local/eclipse-devel/eclipse
-name Eclipse
--launcher.library /usr/local/eclipse-devel/plugins/org.eclipse.equinox.launcher.gtk.freebsd.amd64_1.0.1.R33x_v20070828/eclipse_1020.so
-startup /usr/local/eclipse-devel/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata 50017
-vm /usr/local/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /usr/local/eclipse-devel/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar 

The second is found when you attempt to launch eclipse-devel from a terminal:

[saltmiser@frylock /usr/lib]$ eclipse-devel
/libexec/ld-elf.so.1: /usr/local/eclipse-devel/configuration/org.eclipse.osgi/bundles/109/1/.cp/libswt-mozilla-gtk-3346.so: Undefined symbol "NS_StringContainerInit2"
[saltmiser@frylock /usr/lib]$ 

Output of `java -version`
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)

This problem, I believe, is also similar to the following PR, but that
PR deals with 7.0-CURRENT.

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/118115

Fix: 

Some googling picks up the following links that might help; I think the
problem lies in how eclipse is built to use mozilla/gecko libraries.
http://archive.netbsd.se/?ml=freebsd-eclipse&a=2006-04&m=2707667
http://www.eclipse.org/swt/faq.php#browserlinux
How-To-Repeat: Install eclipse on 6.3-RC1/amd64 from packages, then try to run the
resulting `eclipse-devel` binary.
Comment 1 Jim Capozzoli 2007-12-09 03:41:58 UTC
If you build eclipse out of ports with the following flags; it builds
successfully and starts successfully.

/etc/make.conf:
WITHOUT_MOZILLA=YES

However, I suppose you loose any kind of mozilla support; but I don't
think everybody uses that...but I could be wrong.  Hope this helps
somebody.

-- 
Jim Capozzoli
D6499626857801B6065013E3645A6B75
Comment 2 Greg Lewis freebsd_committer freebsd_triage 2011-05-11 06:10:22 UTC
State Changed
From-To: open->closed

Sorry for letting this sit for so long. 

However, since FreeBSD 6.x is no longer supported and Eclipse has gone 
through several major versions I'm going to close this PR.  Please reopen 
if Eclipse packages are not working on a supported FreeBSD version.