From owner-freebsd-eclipse@FreeBSD.ORG Wed Mar 13 17:14:20 2013 Return-Path: Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 43E4BC5D for ; Wed, 13 Mar 2013 17:14:20 +0000 (UTC) (envelope-from jimmy.kelley@charter.net) Received: from que31.charter.net (que31.charter.net [209.225.8.23]) by mx1.freebsd.org (Postfix) with ESMTP id E039F872 for ; Wed, 13 Mar 2013 17:14:19 +0000 (UTC) Received: from imp10 ([10.20.200.15]) by mta31.charter.net (InterMail vM.8.01.05.02 201-2260-151-103-20110920) with ESMTP id <20130313165230.QDEF24708.mta31.charter.net@imp10> for ; Wed, 13 Mar 2013 12:52:30 -0400 Received: from jmobile.jimmy.local ([71.81.192.198]) by imp10 with smtp.charter.net id B4sV1l00F4HHTun054sV4l; Wed, 13 Mar 2013 12:52:30 -0400 X-Authority-Analysis: v=2.0 cv=foeE/yEf c=1 sm=1 a=3ZRvoQB93mDEZ4s3ZitZXA==:17 a=wom5GMh1gUkA:10 a=A-bzgAWFzMMA:10 a=yUnIBFQkZM0A:10 a=hOpmn2quAAAA:8 a=QxRkRMUOyLgA:10 a=dVHu2d18AAAA:8 a=6I5d2MoRAAAA:8 a=slyBj6zKT5txgyNyegcA:9 a=CjuIK1q_8ugA:10 a=SV7veod9ZcQA:10 a=NzkeQsJxnYjVZz8S1xwA:9 a=3ZRvoQB93mDEZ4s3ZitZXA==:117 Received: by jmobile.jimmy.local (sSMTP sendmail emulation); Wed, 13 Mar 2013 11:52:29 -0500 Date: Wed, 13 Mar 2013 11:52:29 -0500 From: Jimmy To: freebsd-eclipse@freebsd.org Subject: Re: eclipse not building on 9.1-Release Message-ID: <20130313165229.GA11552@jmobile.jimmy.local> References: <1363100831.35912.4.camel@laptop.localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 17:14:20 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 13, 2013 at 04:18:20PM +0100, Ronald Klop wrote: > On Tue, 12 Mar 2013 16:07:11 +0100, User Paul wrote: > > > > >> compile.libgnomeproxy: > >> [exec] Building file: gnomeproxy.o > >> [exec] Invoking: GCC C Compiler > >> [exec] gcc -I/usr/local/include/gconf/2/ > >> -I/usr/local/include/orbit-2.0/ -I/usr/local/include/glib-2.0/ > >> -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -O0 > >> -fPIC -g3 -Wall -c -fmessage-length=0 -m32 -o gnomeproxy.o > >> ../gnomeproxy.c > >> [exec] In file included from ../gnomeproxy.c:16: > >> [exec] /usr/local/include/glib-2.0/glib/gslist.h:28:2: error: > >> #error "Only can be included directly." > >> [exec] ../gnomeproxy.c: In function > >> 'Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_getGConfProxyInfo': > >> [exec] ../gnomeproxy.c:147: warning: implicit declaration of > >> function 'strcpy' > >> [exec] ../gnomeproxy.c:147: warning: incompatible implicit > >> declaration of built-in function 'strcpy' > >> [exec] ../gnomeproxy.c:149: warning: incompatible implicit > >> declaration of built-in function 'strcpy' > >> [exec] ../gnomeproxy.c:151: warning: incompatible implicit > >> declaration of built-in function 'strcpy' > >> [exec] ../gnomeproxy.c:158: warning: incompatible implicit > >> declaration of built-in function 'strcpy' > >> [exec] ../gnomeproxy.c:160: warning: implicit declaration of > >> function 'strcat' > >> [exec] ../gnomeproxy.c:160: warning: incompatible implicit > >> declaration of built-in function 'strcat' > >> [exec] *** [compile] Error code 1 > >> [exec] > >> [exec] Stop in > >> /usr/ports/java/eclipse/work/eclipse-build-914dc6de2bfc5ee5819a229cf4877f7043040a92/build/eclipse-3.7.1-src/plugins/org.eclipse.core.net/natives/unix/freebsd. > >> > >> BUILD FAILED > >> /usr/ports/java/eclipse/work/eclipse-build-914dc6de2bfc5ee5819a229cf4877f7043040a92/build.xml:559: > >> The following error occurred while executing this line: > >> /usr/ports/java/eclipse/work/eclipse-build-914dc6de2bfc5ee5819a229cf4877f7043040a92/build.xml:524: > >> exec returned: 1 > >> > >> Total time: 14 seconds > >> *** [do-build] Error code 1 > >> > >> Stop in /usr/ports/java/eclipse. > >> root@desktop:/usr/ports/java/eclipse > >> ############################################################################################################### > >> FreeBSD laptop.localhost 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 > >> 04:25:06 UTC 2012 > >> root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > >> > >> > >> > > Your FreeBSD installation is a bit old. Why did you download a Release > Candidate while there is also a Release from it? > Is your ports tree up-to-date? > > Ronald. > _______________________________________________ > freebsd-eclipse@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-eclipse > To unsubscribe, send any mail to "freebsd-eclipse-unsubscribe@freebsd.org" I just got the same error, on 9.1-STABLE i386 with the latest svn update to the ports tree. I'm not sure what triggered this (at first I thought it might have been the glib update from 2.28 to 2.34, but that's not the case), but the problem appears to be that glib-2.0 expects glib.h to be the only thing #included, but the gnomeproxy code is #including more than that. Attached is a patch to the eclipse port to fix that. I'll have to see if eclipse-devel has the same problem. Jimmy --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-eclipse.txt" --- freebsd-support.patch.orig 2013-03-09 21:03:02.000000000 -0600 +++ freebsd-support.patch 2013-03-13 10:01:06.000000000 -0500 @@ -7480,3 +7480,13 @@ GLX_PREFIX = swt-glx SWT_LIB = lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +--- build/eclipse-3.7.1-src/plugins/org.eclipse.core.net/natives/unix/gnomeproxy.c.orig 2008-10-17 09:48:23.000000000 -0500 ++++ build/eclipse-3.7.1-src/plugins/org.eclipse.core.net/natives/unix/gnomeproxy.c 2013-03-13 09:59:22.000000000 -0500 +@@ -13,7 +13,6 @@ + #include + + #include +-#include + #include + #include + --y0ulUmNC+osPPQO6--