Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Package python-jnius fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 1.6.1-14.fc44 Steps to Reproduce: koji build --scratch f45 python-jnius-1.6.1-14.fc44.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/python-jnius Reproducible: Always Actual Results: jnius/jnius.c:19753:75: error: incompatible pointer types passing 'JNIEnv **' (aka 'const struct JNINativeInterface_ ***') to parameter of type 'void **' [-Wincompatible-pointer-types] 19753 | (void)((__pyx_v_5jnius_jvm[0])->AttachCurrentThread(__pyx_v_5jnius_jvm, (&__pyx_v_env), NULL)); | ^~~~~~~~~~~~~~ jnius/jnius.c:28069:19: warning: assigning to 'jchar *' (aka 'unsigned short *') from 'const jchar *' (aka 'const unsigned short *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 28069 | __pyx_v_j_chars = (__pyx_v_j_env[0])->GetStringChars(__pyx_v_j_env, __pyx_v_j_string, NULL); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jnius/jnius.c:40111:30: error: incompatible pointer types assigning to 'jobject' (aka 'struct _jobject *') from 'jobject *' (aka 'struct _jobject **'); dereference with * [-Wincompatible-pointer-types] 40111 | (__pyx_v_jargs[0]) = ((jobject *)__pyx_v_classLoader); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | *( ) jnius/jnius.c:40120:30: error: incompatible pointer types assigning to 'jobject' (aka 'struct _jobject *') from 'jclass *' (aka 'struct _jobject **'); dereference with * [-Wincompatible-pointer-types] 40120 | (__pyx_v_jargs[1]) = __pyx_v_interfaces; | ^ ~~~~~~~~~~~~~~~~~~ | * jnius/jnius.c:57299:36: warning: assigning to 'char *' from 'const char[8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 57299 | (__pyx_v_invoke_methods[0]).name = __pyx_k_invoke0; | ^ ~~~~~~~~~~~~~~~ jnius/jnius.c:57308:41: warning: assigning to 'char *' from 'const char[84]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 57308 | (__pyx_v_invoke_methods[0]).signature = __pyx_k_Ljava_lang_Object_Ljava_lang_re; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings and 3 errors generated.
Probably ctypedef is missing. See https://port70.net/~nsz/c/c11/n1570.html#6.5.16.1 For instance: https://github.com/pyFFTW/pyFFTW/pull/395/commits/1607828ab76dcd8466ae529777060182c1e698fe Patches are welcome.
https://fedoraproject.org/wiki/Changes/Java21RemovedEarlierThenScheduled
*** Bug 2485881 has been marked as a duplicate of this bug. ***
FEDORA-2026-e615b943fd (python-jnius-1.7.0-3.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report.