From owner-freebsd-ports@FreeBSD.ORG Mon Jul 26 18:19:26 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83BD016A4CE; Mon, 26 Jul 2004 18:19:26 +0000 (GMT) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E600843D31; Mon, 26 Jul 2004 18:19:21 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id i6QITVdg022474; Mon, 26 Jul 2004 15:29:33 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (localhost.iib.unsam.edu.ar [127.0.0.1]) by pi.iib.unsam.edu.ar (8.12.11/8.12.9) with ESMTP id i6QIIqwj094504; Mon, 26 Jul 2004 15:18:52 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.12.11/8.12.11/Submit) id i6QIIo83094503; Mon, 26 Jul 2004 15:18:50 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: pi.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Mon, 26 Jul 2004 15:18:50 -0300 From: Fernan Aguero To: Jiawei Ye Message-ID: <20040726181850.GE16551@iib.unsam.edu.ar> Mail-Followup-To: Jiawei Ye , Norikatsu Shigemura , ports@freebsd.org, alex@freebsd.org, rtdean@cytherianage.net, freebsd-java@freebsd.org References: <20040725171544.71dc613e.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: ports@freebsd.org cc: alex@freebsd.org cc: Norikatsu Shigemura cc: rtdean@cytherianage.net cc: freebsd-java@freebsd.org Subject: Re: HEADS UP: Eclipse 3.0 updated X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 18:19:26 -0000 +----[ Jiawei Ye (26.Jul.2004 08:58): | | Hi, I ran into this error while 'make install' on 4.10-stable system: | | build: | [echo] Building libupdate.so | [echo] gcc33 -o libupdate.so -shared -I/home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/../../org.eclipse.update.core.freebsd/src/ -I/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/freebsd libupdate.so -static -lc | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c: In function `Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetFreeSpace': | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:52: syntax error before `int' | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:53: `err' undeclared (first use in this function) | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:53: (Each undeclared identifier is reported only once | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:53: for each function it appears in.) | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c: In function `Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetLabel': | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:86: syntax error before `result' | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:90: `result' undeclared (first use in this function) | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c: In function `Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetType': | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:117: syntax error before `int' | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:121: `result' undeclared (first use in this function) | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c: In function `Java_org_eclipse_update_configuration_LocalSystemInfo_nativeListMountPoints': | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:157: syntax error before `int' | [apply] /home/ports/java/eclipse/work/plugins/org.eclipse.update.core.freebsd/src/update.c:158: `i' undeclared (first use in this function) | +----] I have also run into this problem. My system is 4.10p2. As suggested in the list, there is a mention to 'gcc' in line 52 of files/update-build.xml that should be 'gcc33'. Or at least if it is changed to gcc33, eclipse now builds succesfully. The patch for correcting this is here: --- update-build.xml.orig Mon Jul 26 15:06:08 2004 +++ update-build.xml Mon Jul 26 15:06:50 2004 @@ -49,7 +49,7 @@ - + Now, also as suggested in the list, even though eclipse builds and installs fine, it does not run. The error message and the first lines of PREFIX/bin/eclipse follow: Script started on Mon Jul 26 15:03:18 2004 [fernan@pi] whereis eclipse eclipse: /usr/local/bin/eclipse /usr/ports/java/eclipse [fernan@pi] eclipse Error: JAVA_HOME is not defined correctly: Unable to find [fernan@pi] head -15 /usr/local/bin/eclipse #!/bin/sh # # FreeBSD-specific startup script for Eclipse Platform # # See: http://www.eclipse.org # # $FreeBSD: ports/java/eclipse/files/eclipse.in,v 1.1 2003/06/17 17:39:48 nork Exp $ # DEFAULT_JAVA_HOME= ECLIPSE_HOME= DEFAULT_JAVA_CMD=java #----------------------------------------------------------------------------- [fernan@pi] exit Script done on Mon Jul 26 15:04:19 2004 Fernan -- Fernan Aguero - fernan at iib.unsam.edu.ar Phone: +54 11 4580-7255/7 ext 310, Fax: +54 11 4752-9639 Check http://genoma.unsam.edu.ar/~fernan for more info.