Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936857 - x11-misc/x11vnc: emerge error on ARM MUSL: struct input_event has no member named time
Summary: x11-misc/x11vnc: emerge error on ARM MUSL: struct input_event has no member n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Alexander Tsoy
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-07-28 22:01 UTC by Marius Dinu
Modified: 2024-08-10 07:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (x11vnc.log,19.99 KB, text/x-log)
2024-07-28 22:01 UTC, Marius Dinu
Details
emerge --info (emerge-info.txt,7.14 KB, text/plain)
2024-07-28 22:01 UTC, Marius Dinu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Dinu 2024-07-28 22:01:26 UTC
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
Comment 1 Marius Dinu 2024-07-28 22:01:44 UTC
Created attachment 898480 [details]
build log
Comment 2 Marius Dinu 2024-07-28 22:01:59 UTC
Created attachment 898481 [details]
emerge --info
Comment 3 Alexander Tsoy 2024-07-29 17:12:28 UTC
Please check if the following commit fixes this issue:
https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b
Comment 4 Alexander Tsoy 2024-07-29 17:15:35 UTC
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
Comment 5 Marius Dinu 2024-07-31 17:50:52 UTC
It works.
Thanks.
Comment 6 Larry the Git Cow gentoo-dev 2024-08-10 07:24:04 UTC
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(-)