This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [COMMITTED] Include sys/ptrace.h as early as possible.


On Thu, Feb 15, 2018 at 03:44:40PM +0100, Mark Wielaard wrote:
> On some systems, at least on Fedora 27 ppc64le with glibc 2.26-24 and
> kernel 4.14.18-300, including sys/ptrace.h late (after signal.h or
> sys/wait.h for example) will cause issues and produce errors like:
> 
> In file included from /usr/include/asm/sigcontext.h:12:0,
>                  from /usr/include/bits/sigcontext.h:30,
>                  from /usr/include/signal.h:287,
>                  from /usr/include/sys/wait.h:36,
>                  from linux-pid-attach.c:38:
> /usr/include/sys/ptrace.h:73:3: error: expected identifier before numeric constant
>    PTRACE_GETREGS = 12,
>    ^
> 
> Swapping the include order fixes these issues.

Yes, but we are also going to fix this in glibc, too.


-- 
ldv

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]