Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2012 21:40:06 GMT
From:      Jimmy Kelley <jimmy.kelley@charter.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164554: [PATCH] eclipse-devel crashes showing javadoc or Internal Web browser
Message-ID:  <201201272140.q0RLe6qi008550@red.freebsd.org>
Resent-Message-ID: <201201272150.q0RLo4ar093392@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164554
>Category:       ports
>Synopsis:       [PATCH] eclipse-devel crashes showing javadoc or Internal Web browser
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 27 21:50:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Kelley
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD jmobile.jimmy.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
eclipse-devel (3.7.0_3) crashes when opening the Internal Web Browser (Window->Show View->Other...->General->Internal Web Browser) or when hovering over a keyword to show some javadoc.
If started from a xterm, the error shown is:
/usr/local/lib/eclipse-devel/configuration/org.eclipse.osgi/bundles/117/1/.cp/libswt-xulrunner-gtk-3735.so: Undefined symbol "XPCOMGlueStartup"

This happens with or without the following setting in eclipse.ini:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/local/bin/xulrunner

The only browser I have installed on my system is ports/chromium.

The main eclipse port (3.6.2) works just fine.
>How-To-Repeat:
Try to open the Interal Web browser view.
Try to show some javadoc by hovering over a keyword.
>Fix:
Adding the attached patch to the end of the files/freebsd-support.patch should fix the problem by fixing the build to make the missing libswt-xpcominit-gtk-3735.so library.

Patch attached with submission follows:

--- build/eclipse-3.7.0-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig	2011-05-27 13:45:22.000000000 -0500
+++ build/eclipse-3.7.0-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh	2012-01-23 11:51:27.000000000 -0600
@@ -25,7 +25,7 @@
 fi
 
 # Check if we have to compile external.xpt from external.idl
-COMPONENTS_DIR=`pwd`/../../components
+COMPONENTS_DIR=`pwd`/../../org.eclipse.swt/components
 if test ! -f ${COMPONENTS_DIR}/external.xpt; then
 	if test ! -f ${COMPONENTS_DIR}/external.idl; then
 		echo "Can't find ${COMPONENTS_DIR}/external.idl"
@@ -179,9 +181,10 @@
 	elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then
 		XULRUNNER_INCLUDES=`pkg-config --cflags libxul`
 		XULRUNNER_LIBS=`pkg-config --libs libxul`
+		XULRUNNER_LIBS=`echo ${XULRUNNER_LIBS} -lxpcomglue`
 		export XULRUNNER_INCLUDES
 		export XULRUNNER_LIBS
-		MAKE_MOZILLA=make_xulrunner
+		MAKE_MOZILLA=`echo make_xulrunner make_xpcominit`
 	else
 		echo "None of the following libraries were found:  Mozilla/XPCOM, Firefox/XPCOM, or XULRunner/XPCOM"
 		echo "    *** Mozilla embedding support will not be compiled."


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201272140.q0RLe6qi008550>