Bug#1069434: jinput: FTBFS on armhf: [apply] /<<PKGBUILDDIR>>/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c:176:86: error: ‘struct input_event’ has no member named ‘time’

Lucas Nussbaum lucas at debian.org
Sat Apr 20 14:12:40 BST 2024


Source: jinput
Version: 20100502+dfsg-11
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf

Hi,

During a rebuild of all packages in sid, your package failed to build
on armhf.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> mkdir lib && cp /usr/share/java/jutils.jar lib
> ant simple_linux -Dlinux=true
> Buildfile: /<<PKGBUILDDIR>>/build.xml
> 
> init:
> 
> dist:
> 
> init:
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/coreAPI/apidocs
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/coreAPI/classes
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/coreAPI/bin
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/coreAPI/build
> 
> compile:
>     [javac] /<<PKGBUILDDIR>>/coreAPI/build.xml:13: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Using javac -source 1.4 is no longer supported, switching to 7
>     [javac] Using javac -target 1.4 is no longer supported, switching to 7
>     [javac] Compiling 21 source files to /<<PKGBUILDDIR>>/coreAPI/classes
>     [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
>     [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
>     [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
>     [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/ControllerEnvironment.java:42: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] import java.security.AccessController;
>     [javac]                     ^
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:45: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] import java.security.AccessController;
>     [javac]                     ^
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:75: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 		AccessController.doPrivileged(
>     [javac] 		^
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:89: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 	       return (String)AccessController.doPrivileged(new PrivilegedAction() {
>     [javac] 	                      ^
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:98: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac]        return (String)AccessController.doPrivileged(new PrivilegedAction() {
>     [javac]                       ^
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:126: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac]             AccessController.doPrivileged(new PrivilegedAction() {
>     [javac]             ^
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:160: warning: [deprecation] newInstance() in Class has been deprecated
>     [javac] 						ControllerEnvironment ce = (ControllerEnvironment) ceClass.newInstance();
>     [javac] 						                                                          ^
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class Class
>     [javac] /<<PKGBUILDDIR>>/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java:210: warning: [deprecation] newInstance() in Class has been deprecated
>     [javac]                     	envClasses[i].newInstance();
>     [javac]                     	             ^
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class Class
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 12 warnings
>      [copy] Copying 1 file to /<<PKGBUILDDIR>>/coreAPI/build/src/java/net/java/games/input
>     [javac] /<<PKGBUILDDIR>>/coreAPI/build.xml:28: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Using javac -source 1.4 is no longer supported, switching to 7
>     [javac] Using javac -target 1.4 is no longer supported, switching to 7
> 
> jar:
>       [jar] Building jar: /<<PKGBUILDDIR>>/coreAPI/bin/jinput-core.jar
>       [jar] Building jar: /<<PKGBUILDDIR>>/coreAPI/bin/jinput-test.jar
> 
> all:
>      [echo] JInput has been built and jinput.jar is located in the bin directory.
> 
> init:
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/plugins/linux/classes
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/plugins/linux/bin
> 
> compile:
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/build.xml:15: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Using javac -source 1.4 is no longer supported, switching to 7
>     [javac] Using javac -target 1.4 is no longer supported, switching to 7
>     [javac] Compiling 28 source files to /<<PKGBUILDDIR>>/plugins/linux/classes
>     [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
>     [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
>     [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
>     [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:34: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] import java.security.AccessController;
>     [javac]                     ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEventDevice.java:363: warning: [deprecation] finalize() in Object has been deprecated
>     [javac] 	protected void finalize() throws IOException {
>     [javac] 	               ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:105: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
>     [javac] 						if(povXs.containsKey(new Integer(index))) {
>     [javac] 						                     ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:106: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
>     [javac] 							LinuxJoystickPOV pov = (LinuxJoystickPOV)(povXs.get(new Integer(index)));
>     [javac] 							                                                    ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:109: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
>     [javac] 						} else if(povYs.containsKey(new Integer(index))) {
>     [javac] 						                            ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:110: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
>     [javac] 							LinuxJoystickPOV pov = (LinuxJoystickPOV)(povYs.get(new Integer(index)));
>     [javac] 							                                                    ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:153: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
>     [javac] 		povXs.put(new Integer(xIndex),pov);
>     [javac] 		          ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:154: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
>     [javac] 		povYs.put(new Integer(yIndex),pov);
>     [javac] 		          ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java:236: warning: [deprecation] finalize() in Object has been deprecated
>     [javac] 	protected void finalize() throws IOException {
>     [javac] 	               ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:58: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 		AccessController.doPrivileged(
>     [javac] 		^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:78: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 	       return (String)AccessController.doPrivileged(new PrivilegedAction() {
>     [javac] 	                      ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:87: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac]        return (String)AccessController.doPrivileged(new PrivilegedAction() {
>     [javac]                       ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:114: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 			AccessController.doPrivileged(
>     [javac] 			^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:428: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 		return (String)AccessController.doPrivileged(new PrivilegedAction() {
>     [javac] 		               ^
>     [javac] /<<PKGBUILDDIR>>/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java:436: warning: [removal] AccessController in java.security has been deprecated and marked for removal
>     [javac] 		return (File[])AccessController.doPrivileged(new PrivilegedAction() {
>     [javac] 		               ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 19 warnings
> 
> jar:
>       [jar] Building jar: /<<PKGBUILDDIR>>/plugins/linux/bin/linux.jar
> 
> createJNIHeaders:
> 
> compileNativeJinputLib:
> 
> compileNativeJinputLib:
>     [apply] /<<PKGBUILDDIR>>/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c: In function ‘Java_net_java_games_input_LinuxEventDevice_nGetNextEvent’:
>     [apply] /<<PKGBUILDDIR>>/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c:176:86: error: ‘struct input_event’ has no member named ‘time’
>     [apply]   176 |         (*env)->CallVoidMethod(env, linux_event_return, linux_event_set, (jlong)event.time.tv_sec, (jlong)event.time.tv_usec, (jint)event.type, (jint)event.code, (jint)event.value);
>     [apply]       |                                                                                      ^
>     [apply] /<<PKGBUILDDIR>>/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c:176:112: error: ‘struct input_event’ has no member named ‘time’
>     [apply]   176 |         (*env)->CallVoidMethod(env, linux_event_return, linux_event_set, (jlong)event.time.tv_sec, (jlong)event.time.tv_usec, (jint)event.type, (jint)event.code, (jint)event.value);
>     [apply]       |                                                                                                                ^
> 
> BUILD FAILED
> /<<PKGBUILDDIR>>/build.xml:110: The following error occurred while executing this line:
> /<<PKGBUILDDIR>>/build.xml:69: The following error occurred while executing this line:
> /<<PKGBUILDDIR>>/plugins/linux/build.xml:59: The following error occurred while executing this line:
> /<<PKGBUILDDIR>>/plugins/linux/src/native/build.xml:35: apply returned: 1
> 
> Total time: 2 seconds
> make[1]: *** [debian/rules:18: override_dh_auto_build] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/04/20/jinput_20100502+dfsg-11_unstable-armhf.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-java-maintainers mailing list