Skip to content

Error: conflicting types for 'Java_java_lang_Class_forName0' #519

@somecoolword

Description

@somecoolword

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions