can't compile cvs/snapshot gcj for a week
Mark Wielaard
mark@klomp.org
Sun Aug 27 13:53:00 GMT 2000
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
More information about the Java
mailing list