emerge x11-misc/x11vnc on ARM MUSL fails with this error: armv7a-unknown-linux-musleabihf-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -O2 -pipe -fomit-frame-pointer -march=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -mfloat-abi=hard -c -o x11vnc-uinput.o `test -f 'uinput.c' || echo './'`uinput.c uinput.c: In function 'ptr_move': uinput.c:723:25: error: 'struct input_event' has no member named 'time' 723 | gettimeofday(&ev.time, NULL); | ^ uinput.c: In function 'ptr_abs': uinput.c:776:25: error: 'struct input_event' has no member named 'time' 776 | gettimeofday(&ev.time, NULL); | ^ uinput.c: In function 'button_click': uinput.c:962:25: error: 'struct input_event' has no member named 'time' 962 | gettimeofday(&ev.time, NULL); | ^ uinput.c: In function 'uinput_key_command': uinput.c:1256:25: error: 'struct input_event' has no member named 'time' 1256 | gettimeofday(&ev.time, NULL); | ^ make[2]: *** [Makefile:1010: x11vnc-uinput.o] Error 1 Thank you. Reproducible: Always
Created attachment 898480 [details] build log
Created attachment 898481 [details] emerge --info
Please check if the following commit fixes this issue: https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b
Something like this: # mkdir -p /etc/portage/patches/x11-misc/x11vnc # wget -O /etc/portage/patches/x11-misc/x11vnc/input_event-time.patch https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b.patch
It works. Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d9341c943a4cd4ae728a2f9f7d87eccca73185 commit 12d9341c943a4cd4ae728a2f9f7d87eccca73185 Author: Alexander Tsoy <alexander@tsoy.me> AuthorDate: 2024-07-31 22:44:58 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-08-10 07:06:24 +0000 x11-misc/x11vnc: fix build on 32bit arches with 64bit time_t Closes: https://bugs.gentoo.org/936857 Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/37891 Signed-off-by: Joonas Niilola <juippis@gentoo.org> .../files/x11vnc-0.9.16-fix-build-on-32bit.patch | 105 +++++++++++++++++++++ x11-misc/x11vnc/x11vnc-0.9.16-r8.ebuild | 3 +- 2 files changed, 107 insertions(+), 1 deletion(-)