osdep.h: pull in sys/sysmacros.h for major/minor/makedev
PATCH 1/1 osdep.h: pull in sys/sysmacros.h for major/minor/makedev
Linux C libs are moving away from implicit header pollution with sys/types.h
--- include/qemu/osdep.h | 4 ++++ 1 file changed, 4 insertions(+)
include/qemu/osdep.h +4 -0
@@ -85,6 +85,10 @@ extern int daemon(int, int);#include <setjmp.h> #include <signal.h> +#ifdef __linux__ +#include <sys/sysmacros.h> +#endif +#ifdef __OpenBSD__#include <sys/signal.h> #endif
Signature · 1 line
2.11.0
Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally.
Hi,
Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally.
Subject: [Qemu-devel] [PATCH] osdep.h: pull in sys/sysmacros.h for major/minor/makedev
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
set -e
git submodule update --init dtc
# Let docker tests dump environment info
export SHOW_ENV=1
export J=16
make docker-test-quick@centos6
make docker-test-mingw@fedora
make docker-test-build@min-glib
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test'
58b4d8e osdep.h: pull in sys/sysmacros.h for major/minor/makedev
=== OUTPUT BEGIN ===
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
fatal: read error: Connection reset by peer
Cloning into 'dtc'...
Clone of 'git://git.qemu-project.org/dtc.git' into submodule path 'dtc' failed === OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Quoted 13 lines · Mike Frysinger
Linux C libs are moving away from implicit header pollution with
sys/types.hSigned-off-by Mike Frysinger <[email protected]>--- include/qemu/osdep.h | 4 ++++ 1 file changed, 4 insertions(+)include/qemu/osdep.h +0
-0
include/qemu/osdep.h extern int daemon(int, int); · line 94
Quoted 10 lines
include/qemu/osdep.h +4
-0@@ -85,6 +85,10 @@ extern int daemon(int, int);#include <setjmp.h> #include <signal.h> +#ifdef __linux__ +#include <sys/sysmacros.h> +#endif +#ifdef __OpenBSD__#include <sys/signal.h> #endif
I think there's already a patch on list for this that does this (with a proper configure test).
I still think that it's a shame that glibc is breaking compatibility with where these macros have always been kept on every OS that's implemented them back to 2BSD...
thanks
-- PMM
Quoted 3 lines · Peter Maydell
I still think that it's a shame that glibc is breaking compatibility with where these macros have always been kept on every OS that's implemented them back to 2BSD...
i don't think that characterization is accurate. if it were, autoconf wouldn't have a AC_HEADER_MAJOR helper.
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Headers.html#index-AC_005fHEADER_005fMAJOR-616
-mike
Quoted 7 lines · Mike Frysinger
Quoted 3 lines · Peter Maydell
I still think that it's a shame that glibc is breaking compatibility with where these macros have always been kept on every OS that's implemented them back to 2BSD...
i don't think that characterization is accurate. if it were, autoconf wouldn't have a
AC_HEADER_MAJORhelper.
Hmm, Googling suggests that Solaris (and perhaps other SysV Unixes) put them in mkdev.h.
That doesn't explain why glibc is taking yet a third approach here rather than using either of the two previously used choices...
thanks
-- PMM
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Mike Frysinger
Quoted 3 lines · Peter Maydell
I still think that it's a shame that glibc is breaking compatibility with where these macros have always been kept on every OS that's implemented them back to 2BSD...
Quoted 8 lines
Quoted 2 lines
i don't think that characterization is accurate. if it were, autoconf wouldn't have a
AC_HEADER_MAJORhelper.Hmm, Googling suggests that Solaris (and perhaps other SysV Unixes) put them in
mkdev.h.
That doesn't explain why glibc is taking yet a third approach here rather than using either of the two previously used choices...
Whether or not you think glibc broke things, the fact remains that the build is broken on current Fedora rawhide if we don't apply either this or the other proposed patch (the one by Christopher Covington, which I've now pinged)
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 4 lines · Eric Blake
Whether or not you think glibc broke things, the fact remains that the build is broken on current Fedora rawhide if we don't apply either this or the other proposed patch (the one by Christopher Covington, which I've now pinged)
Yes, I'm not opposed to qemu having a patch to work around this mess. I'm just irritated that glibc makes it necessary.
thanks
-- PMM