You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I try to compile native part on Fedora Rawhide and I have the following error. The same on Fedora 41 works well.
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_Call__JJII’:
[exec] os.c:10106:21: error: too many arguments to function ‘(jint ()(void))arg0’; expected 0, have 3
[exec] 10106 | rc = (jint)((jint ()())arg0)(arg1, arg2, arg3);
[exec] | ~^~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_Call__JJJ’:
[exec] os.c:10118:21: error: too many arguments to function ‘(jint ()(void))arg0’; expected 0, have 2
[exec] 10118 | rc = (jint)((jint ()())arg0)(arg1, arg2);
[exec] | ~^~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_XCheckIfEvent’:
[exec] os.c:10512:71: error: passing argument 3 of ‘XCheckIfEvent’ from incompatible pointer type [-Wincompatible-pointer-types]
[exec] 10512 | rc = (jboolean)XCheckIfEvent((Display )arg0, (XEvent )arg1, (Bool ()())arg2, (XPointer)arg3);
[exec] | ^~~~~~~~~~~~~~~~
[exec] | |
[exec] | int ()(void)
[exec] In file included from /usr/include/gtk-3.0/gdk/gdkx.h:30,
[exec] from /usr/include/gtk-3.0/gtk/gtksocket.h:34,
[exec] from /usr/include/gtk-3.0/gtk/gtkx.h:29,
[exec] from os.h:60,
[exec] from os_structs.h:19,
[exec] from os.c:20:
[exec] /usr/include/X11/Xlib.h:2105:5: note: expected ‘int ()(Display , XEvent , char )’ but argument is of type ‘int ()(void)’
[exec] 2105 | Bool () (
[exec] | ^
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJ’:
[exec] os.c:10724:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 4
[exec] 10724 | rc = (jlong)((jlong ()())arg0)(arg1, arg2, arg3, arg4);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJJJ’:
[exec] os.c:10736:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 6
[exec] 10736 | rc = (jlong)((jlong ()())arg0)(arg1, arg2, arg3, arg4, arg5, arg6);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJJJJ’:
[exec] os.c:10748:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 7
[exec] 10748 | rc = (jlong)((jlong ()())arg0)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] *** GTK3 Build failed, aborting further actions..
[exec] make: *** [make_linux.mak:144: os.o] Error 1
To Reproduce
A standalone SWT snippet to reproduce the behavior (preferable)
(or)
Steps to reproduce the behavior.
Environment:
Select the platform(s) on which the behavior is seen:
[] All OS
Windows
Linux
macOS
Additional OS info (e.g. OS version, Linux Desktop, etc)
JRE/JDK version
OpenJDK 21
Version since
4.29 and 4.34
Workaround (or) Additional context
Add any other context about the problem here.
Any known workarounds for the problem?
The text was updated successfully, but these errors were encountered:
Describe the bug
I try to compile native part on Fedora Rawhide and I have the following error. The same on Fedora 41 works well.
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_Call__JJII’:
[exec] os.c:10106:21: error: too many arguments to function ‘(jint ()(void))arg0’; expected 0, have 3
[exec] 10106 | rc = (jint)((jint ()())arg0)(arg1, arg2, arg3);
[exec] | ~^~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_Call__JJJ’:
[exec] os.c:10118:21: error: too many arguments to function ‘(jint ()(void))arg0’; expected 0, have 2
[exec] 10118 | rc = (jint)((jint ()())arg0)(arg1, arg2);
[exec] | ~^~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_XCheckIfEvent’:
[exec] os.c:10512:71: error: passing argument 3 of ‘XCheckIfEvent’ from incompatible pointer type [-Wincompatible-pointer-types]
[exec] 10512 | rc = (jboolean)XCheckIfEvent((Display )arg0, (XEvent )arg1, (Bool ()())arg2, (XPointer)arg3);
[exec] | ^~~~~~~~~~~~~~~~
[exec] | |
[exec] | int ()(void)
[exec] In file included from /usr/include/gtk-3.0/gdk/gdkx.h:30,
[exec] from /usr/include/gtk-3.0/gtk/gtksocket.h:34,
[exec] from /usr/include/gtk-3.0/gtk/gtkx.h:29,
[exec] from os.h:60,
[exec] from os_structs.h:19,
[exec] from os.c:20:
[exec] /usr/include/X11/Xlib.h:2105:5: note: expected ‘int ()(Display , XEvent , char )’ but argument is of type ‘int ()(void)’
[exec] 2105 | Bool () (
[exec] | ^
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJ’:
[exec] os.c:10724:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 4
[exec] 10724 | rc = (jlong)((jlong ()())arg0)(arg1, arg2, arg3, arg4);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJJJ’:
[exec] os.c:10736:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 6
[exec] 10736 | rc = (jlong)((jlong ()())arg0)(arg1, arg2, arg3, arg4, arg5, arg6);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJJJJ’:
[exec] os.c:10748:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 7
[exec] 10748 | rc = (jlong)((jlong ()())arg0)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] *** GTK3 Build failed, aborting further actions..
[exec] make: *** [make_linux.mak:144: os.o] Error 1
To Reproduce
A standalone SWT snippet to reproduce the behavior (preferable)
(or)
Steps to reproduce the behavior.
Environment:
Additional OS info (e.g. OS version, Linux Desktop, etc)
JRE/JDK version
OpenJDK 21
Version since
4.29 and 4.34
Workaround (or) Additional context
Add any other context about the problem here.
Any known workarounds for the problem?
The text was updated successfully, but these errors were encountered: