public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: elfutils-devel@sourceware.org
Subject: Re: [COMMITTED] Include sys/ptrace.h as early as possible.
Date: Thu, 15 Feb 2018 15:22:00 -0000	[thread overview]
Message-ID: <20180215152212.GA4127@altlinux.org> (raw)
In-Reply-To: <1518705880-28552-1-git-send-email-mark@klomp.org>

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2018-02-15 15:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 14:58 Mark Wielaard
2018-02-15 15:22 ` Dmitry V. Levin [this message]
2018-02-15 15:29   ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180215152212.GA4127@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=elfutils-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).