FTBFS: error: ‘const struct input_event’ has no member named ‘time’
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xf86-input-multitouch (Debian) |
Fix Released
|
Unknown
|
|||
xf86-input-multitouch (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Imported from Debian bug http://
Source: xf86-input-
Version: 1.0~rc3-2
Severity: serious
Tags: ftbfs
https:/
multitouch&
src/hwstate.c: In function ‘finish_packet’:
src/hwstate.
‘time’
43 | s->evtime = syn->time.tv_usec / ms + syn->time.tv_sec * ms;
| ^~
src/hwstate.
‘time’
43 | s->evtime = syn->time.tv_usec / ms + syn->time.tv_sec * ms;
| ^~
It also has multiple "warning: implicit declaration of function" which are not
errors because the package ignores compiler flags from dh_auto_build (which is
also a bug, not sure if RC or not).
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.7.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETA
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/
LSM: AppArmor: enabled
Changed in xf86-input-multitouch (Debian): | |
importance: | Undecided → Unknown |
Changed in xf86-input-multitouch (Ubuntu): | |
status: | New → Fix Committed |
Changed in xf86-input-multitouch (Debian): | |
status: | New → Fix Released |
/usr/include/ linux/input. h says:
```
/*
* The event structure itself
* Note that __USE_TIME_BITS64 is defined by libc based on
* application's request to use 64 bit time_t.
*/
struct input_event { __USE_TIME_ BITS64) ) && !defined( __KERNEL_ _)
__kernel_ ulong_t __sec;
__kernel_ ulong_t __usec;
#if (__BITS_PER_LONG != 32 || !defined(
struct timeval time;
#define input_event_sec time.tv_sec
#define input_event_usec time.tv_usec
#else
#if defined(__sparc__) && defined(__arch64__)
unsigned int __usec;
unsigned int __pad;
#else
#endif
#define input_event_sec __sec
#define input_event_usec __usec
#endif
__u16 type;
__u16 code;
__s32 value;
};
```