From owner-freebsd-java@FreeBSD.ORG Sun Aug 8 22:40:29 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744A4106567B; Sun, 8 Aug 2010 22:40:29 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from fep24.mx.upcmail.net (fep24.mx.upcmail.net [62.179.121.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9BD878FC1A; Sun, 8 Aug 2010 22:40:28 +0000 (UTC) Received: from edge05.upcmail.net ([192.168.13.212]) by viefep19-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20100808222222.OUPV17503.viefep19-int.chello.at@edge05.upcmail.net>; Mon, 9 Aug 2010 00:22:22 +0200 Received: from mole.fafoe.narf.at ([213.47.85.26]) by edge05.upcmail.net with edge id ryNM1e00l0a5KZh05yNNzs; Mon, 09 Aug 2010 00:22:22 +0200 X-SourceIP: 213.47.85.26 Received: by mole.fafoe.narf.at (Postfix, from userid 1001) id 19C466D421; Mon, 9 Aug 2010 00:22:21 +0200 (CEST) Date: Mon, 9 Aug 2010 00:22:20 +0200 From: Stefan Farfeleder To: freebsd-java@freebsd.org Message-ID: <20100808222219.GC1752@mole.fafoe.narf.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Cloudmark-Analysis: v=1.1 cv=K3uBg944YaUT+Qsu6bWO0a0V3uPy4DQNslbdoMCD4tw= c=1 sm=0 a=9Z9K6LIyLhZV5vD2VDgA:9 a=ZIFGU1Q8XHmElIIQpnhaLMM9wRQA:4 a=CjuIK1q_8ugA:10 a=xmtIUmxXx6axFBVvKdgA:9 a=TdLGVKJMNeUUqrychAmsZZxmR6IA:4 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: glewis@freebsd.org Subject: Eclipse libxul patch X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2010 22:40:29 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I rebuilt Eclipse today and it failed to start with the error: "java.lang.UnsatisfiedLinkError: no swt-gtk-3557 or swt-gtk in swt.library.path, java.library.path or the jar file" Then I noticed that there was this error during the Eclipse build: [exec] c++ -o xpcomxul.o -O -DSWT_VERSION=3557 -DMOZILLA_STRICT_API=1 -fno-rtti -fno-exceptions -Wall -Wno-non-virtual-dtor -fPIC -I. -I/usr/local/jdk1.6.0/include -I/usr/local/jdk1.6.0/include/freebsd -DNO__1NS_1InitXPCOM2 -c xpcom.cpp [exec] In file included from xpcom_structs.h:12, [exec] from xpcom.cpp:13: [exec] xpcom.h:18:21: error: nsXPCOM.h: No such file or directory [...] For some reason the build continued despite the error and apparently caused the run-time failure. The error seems to lie in freebsd-support.patch where the package name libxul-unstable is used instead of libxul, causing the include paths to be missing. The attached patch results in a working Eclipse for me. Cheers, Stefan --OXfL5xGRrasGEqWY--