-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: conflicting types for 'Java_java_lang_Class_forName0' #519
Comments
Thanks for reporting this, but I'm not able to reproduce it. I tried this on Cygwin:
I did have to tweak a couple of things to make it work, updating openjdk-patches/Inet6AddressImpl.c.8.patch like so:
The old patch didn't work due to recent update to the OpenJDK file it applies to. I'll do some more testing to make sure it works on other platforms before checking it in. The other thing is to work around what seems to be a bug in MinGW-w64's toolchain such that libmingwex contains an isnan symbol that conflicts with OpenJDK's version. Hence this patch (added to the source tree as openjdk-patches/s_isnan.c.patch):
I'm not sure what the long term solution is to that problem, since that patch will probably break other platforms and other versions of MinGW-w64. Maybe some kind of weak symbol magic. |
@catholic This problem goes away if I use one of the openjdk8 updates, specifically cloning |
Hello
Trying to compile Avian using flags openjdk and openjdk-src, but with no success. Please see error logs below.
Was trying openjdk7 and openjdk8
OS used windows10 and centos7, both are x86_64
In all configurations, the same error appeared
The purpose of this is to be able to compile JavaFX apps with Avian
openjdk7 was used just for tests to reproduce the error
Any suggestions for JavaFX apps compilation with Avian?
build/windows-x86_64-small-lzma-openjdk-src/openjdk/Class.c:99:1: error: conflicting types for 'Java_java_lang_Class_forName0'
Java_java_lang_Class_forName0(JNIEnv *env, jclass this, jstring classname,
^
In file included from build/windows-x86_64-small-lzma-openjdk-src/openjdk/Class.c:38:0:
build/windows-x86_64-small-lzma-openjdk-src/openjdk/java_lang_Class.h:31:26: note: previous declaration of 'Java_java_lang_Class_forName0' was here
JNIEXPORT jclass JNICALL Java_java_lang_Class_forName0
^
makefile:2269: recipe for target `build/windows-x86_64-small-lzma-openjdk-src/openjdk/share/native/java/lang/Class-openjdk.o' failed
make: *** [build/windows-x86_64-small-lzma-openjdk-src/openjdk/share/native/java/lang/Class-openjdk.o] Error 1
The text was updated successfully, but these errors were encountered: