Skip to content

linux-user: fix build error against older glibcs

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2linux-user/syscall.c: define _ATFILE_SOURCElinux-user/syscall.c+1 -00 replies
2/2check for utimensat() availability on configureconfigure linux-user/syscall.c+41 -819 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] linux-user: fix build error against older glibcs

This series fixes the following build error on older glibc versions (on my case, version 2.5-34 from RHEL-5).

LINK x86_64-linux-user/qemu-x86_64
syscall.o: In function `sys_utimensat':
/home/ehabkost/code/qemu/qemu/linux-user/syscall.c:419: undefined reference to `utimensat'
collect2: ld returned 1 exit status
make[1]: *** [qemu-x86_64] Error 1
make: *** [subdir-x86_64-linux-user] Error 2

This happens because the older glibc has most xxxat() functions available, but not utimensat(). utimensat() needs a separate test on configure.

---
Eduardo Habkost (2):
linux-user/syscall.c: define _ATFILE_SOURCE
check for utimensat() availability on configure

 configure            |   24 ++++++++++++++++++++++++
 linux-user/syscall.c |   26 ++++++++++++++++++--------
 2 files changed, 42 insertions(+), 8 deletions(-)
Signature · 1 line
Eduardo