Because RedHat 7.1 has gcj installed with jni.h in /usr/include,
java-gnome does not compile correctly. instead of including the jdk's
jni.h, gcj's version is included. To fix this, I changed the order of
the -I parameters to gcc in java-gnome/src/Makefile.in. Here is the diff:
48,49c48,49
< gcc -c $(CFLAGS) $< -o $@ $(GTK_CFLAGS) $(GNOME_CFLAGS) \
< $(LIBGLADE_CFLAGS) $(JAVA_INCLUDES) -D@MACRO_FLAG@
---
> gcc -c $(CFLAGS) $< -o $@ $(JAVA_INCLUDES) $(GTK_CFLAGS) \
> $(GNOME_CFLAGS) $(LIBGLADE_CFLAGS) -D@MACRO_FLAG@
The orginal Makefile.in is the first file, my change is in the second file.
|