This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] S390: Sync ptrace.h with kernel. [BZ #21539]
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Stefan Liebler <stli at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Date: Tue, 18 Jul 2017 09:31:49 -0400
- Subject: Re: [PATCH] S390: Sync ptrace.h with kernel. [BZ #21539]
- Authentication-results: sourceware.org; auth=none
- References: <bda685cb-c5c4-ab27-47e0-1e95223275f9@linux.vnet.ibm.com> <20170613200522.GA14306@altlinux.org> <a70194fb-d96c-d22f-7aba-36be9685d421@linux.vnet.ibm.com> <20170718102039.GA20971@altlinux.org>
On 07/18/2017 06:20 AM, Dmitry V. Levin wrote:
> Mark Wielaard has spotted [1] a regression that I missed during review.
> After this change, this test case fails to compile with the following
> diagnostics:
>
> $ gcc -c -xc -o/dev/null - <<'EOF'
> #include <asm/ptrace.h>
> #include <sys/ptrace.h>
> EOF
This is a linux/glibc header coordination issue.
https://sourceware.org/glibc/wiki/Synchronizing_Headers
> The following change fixes this and similar compilation issues that arise
> when sys/ptrace.h is included after linux/ptrace.h:
This is a known conflict, and needs to be fixed properly using libc-compat.h
on the kernel side and the appropriate defines on the glibc side.
--
Cheers,
Carlos.