Skip to content

Build failure on 32-bit OS with newer Linux kernel due to usage of time64-unsafe data structure #52

@hosiet

Description

@hosiet

Downstream bug report: https://bugs.debian.org/1071852

arm-linux-gnueabihf-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.11 -c libsuinput/src/suinput.c -o build/temp.linux-armv7l-cpython-311/libsuinput/src/suinput.o
libsuinput/src/suinput.c: In function ‘suinput_emit’:
libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member named ‘time’
   48 |         gettimeofday(&event.time, 0);
      |                            ^
error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1

A similar issue can be found at FreeSpacenav/spacenavd#104 . A possible solution could be https://github.com/libsdl-org/SDL/pull/7884/files .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions