eclipse not building on 9.1-Release
    Jimmy 
    jimmy.kelley at charter.net
       
    Wed Mar 13 17:14:20 UTC 2013
    
    
  
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 at 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 at 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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-eclipse
> To unsubscribe, send any mail to "freebsd-eclipse-unsubscribe at 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
-------------- next part --------------
--- 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>
+ 
    
    
More information about the freebsd-eclipse
mailing list