Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2004 15:18:50 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        Jiawei Ye <leafy7382@gmail.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: HEADS UP: Eclipse 3.0 updated
Message-ID:  <20040726181850.GE16551@iib.unsam.edu.ar>
In-Reply-To: <c21e92e20407251710563fe022@mail.gmail.com>
References:  <20040725171544.71dc613e.nork@FreeBSD.org> <c21e92e20407251710563fe022@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
+----[ Jiawei Ye <leafy7382@gmail.com> (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 @@
 
 	<echo message="gcc33 -o  ${library-file} -shared -I${src-path} -I${header-path} -I${header-freebsd-path} ${library-file} -static -lc"/>
 
-    <apply executable="gcc" dest="${eclipse-home}/" parallel="false">
+    <apply executable="gcc33" dest="${eclipse-home}/" parallel="false">
       <arg value="-o"/>
       <arg value="${library-file}"/>
       <arg value="-shared"/>


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.



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