Bug 2460555 - python-jnius: FTBFS in Fedora Rawhide: error: incompatible pointer types passing 'JNIEnv **' (aka 'const struct JNINativeInterface_ ***') to parameter of type 'void **'
Summary: python-jnius: FTBFS in Fedora Rawhide: error: incompatible pointer types pass...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jnius
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
: 2485881 (view as bug list)
Depends On: 2431675
Blocks: PYTHON3.15 F45FTBFS F45FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2026-04-22 10:35 UTC by Karolina Surma
Modified: 2026-07-26 00:35 UTC (History)
3 users (show)

Fixed In Version: python-jnius-1.7.0-3.fc45
Clone Of:
Environment:
Last Closed: 2026-07-26 00:35:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kivy pyjnius pull 764 0 None Merged Add support for Python 3.13, fix incompatible pointers (thanks to @cmacdonald) 2026-04-29 10:55:10 UTC

Description Karolina Surma 2026-04-22 10:35:59 UTC
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.

Comment 1 Raphael Groner 2026-04-29 09:59:54 UTC
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.

Comment 3 Karolina Surma 2026-06-06 18:23:18 UTC
*** Bug 2485881 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2026-07-26 00:35:18 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.