Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2013 11:52:29 -0500
From:      Jimmy <jimmy.kelley@charter.net>
To:        freebsd-eclipse@freebsd.org
Subject:   Re: eclipse not building on 9.1-Release
Message-ID:  <20130313165229.GA11552@jmobile.jimmy.local>
In-Reply-To: <op.wtv4svn98527sy@212-182-167-131.ip.telfort.nl>
References:  <1363100831.35912.4.camel@laptop.localhost> <op.wtv4svn98527sy@212-182-167-131.ip.telfort.nl>

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

--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 <paul@teetotal.ca> 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 <glib.h> 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 <jni.h>
+ 
+ #include <glib.h>
+-#include <glib/gslist.h>
+ #include <gconf/gconf-value.h>
+ #include <gconf/gconf-client.h>
+ 

--y0ulUmNC+osPPQO6--



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