This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: can't compile cvs/snapshot gcj for a week
- To: Adrian Vance Custer <acuster at nopause dot berkeley dot edu>
- Subject: Re: can't compile cvs/snapshot gcj for a week
- From: Mark Wielaard <mark at klomp dot org>
- Date: Sun, 27 Aug 2000 22:52:57 +0200
- Cc: java-discuss at sources dot redhat dot com
- References: <20000827130959.E4436@nopause.berkeley.edu>
Hi,
On Sun, Aug 27, 2000 at 01:09:59PM -0700, Adrian Vance Custer wrote:
> The compile went fine but the exectuable choked with
> ./Hello
> ./Hello: error in loading shared libraries: /soft/Zgcc/lib/libzgcj.so.0:
> undefined symbol: __dso_handle
I had the same problem. It is described in the FAQ at
<http://sources.redhat.com/java/faq.html#5_7>
What I did in the end was just patch the gcc/configure script so it
never defines HAVE_GAS_HIDDEN since I always forgot to set it correctly:
Index: configure
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure,v
retrieving revision 1.410
diff -u -r1.410 configure
--- configure 2000/08/18 19:39:51 1.410
+++ configure 2000/08/27 20:49:24
@@ -9071,7 +9071,7 @@
echo "foobar:" >> conftest.s
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
cat >> confdefs.h <<\EOF
-#define HAVE_GAS_HIDDEN 1
+#undef HAVE_GAS_HIDDEN
EOF
gcc_cv_as_hidden="yes"
If you don't want to recompile your gcc then you can try to use gcj with
the --static flag. That will result in big binaries but at least you can
test a little now (while you recompile gcc :).
Hope that helps,
Mark