From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121485 invoked by alias); 15 Feb 2018 15:22:18 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 121463 invoked by uid 89); 15 Feb 2018 15:22:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: vmicros1.altlinux.org Received: from vmicros1.altlinux.org (HELO vmicros1.altlinux.org) (194.107.17.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Feb 2018 15:22:15 +0000 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 8918A72D1D2 for ; Thu, 15 Feb 2018 18:22:12 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 7A1CE7CCAB4; Thu, 15 Feb 2018 18:22:12 +0300 (MSK) Date: Thu, 15 Feb 2018 15:22:00 -0000 From: "Dmitry V. Levin" To: elfutils-devel@sourceware.org Subject: Re: [COMMITTED] Include sys/ptrace.h as early as possible. Message-ID: <20180215152212.GA4127@altlinux.org> Mail-Followup-To: elfutils-devel@sourceware.org References: <1518705880-28552-1-git-send-email-mark@klomp.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <1518705880-28552-1-git-send-email-mark@klomp.org> X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00036.txt.bz2 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 790 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: >=20 > 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 =3D 12, > ^ >=20 > Swapping the include order fixes these issues. Yes, but we are also going to fix this in glibc, too. --=20 ldv --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature; name="signature.asc" Content-length: 801 -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJahaWkAAoJEAVFT+BVnCUIo04P/0L6QgO4VcaZA82KtIw9Ezy5 PbleXqRDsalSG6DoSB/PeFjpRiHtzo4LacAeOVHyPA5/W6R1oDXhmFYpfuymnRZU KUWvLvlIroUItuZXhJGoO9hulyoplZNWVZ/+sOR9vqjHJsRJft2dDLdMsSgtvaUH QgYAZ3+R+mBVZHAnyVFfOxayGrRF7gGddjQEGfjrJWtNgHenAc2Xe/WAHU0whtUe CeQL3tqm+NWTlcjO00Eh8uwbNnQUAnP9hxwD+0cgT7JL/QxrxXzT/8Bv8C7XXIq9 AVZSIBj/xn7Sr86pQ+YOhGcPuSWHu9lDYj6rk3n4PWCXAh4UA2rBLcL/m3v02HC7 +4E0s6Lb+0mgjkzTfJ4UEgrf8GjNIxg8X51luo3Rzwj6Ko40FkWIewAmGU0ewRTE BWrrOug/K5SZM8DESQ0vd0g/O7MO/yN4WgRoIGP2cnA7Wmb57Kp04+mxMEOl3jX0 7l65ar7JqlTvwpAwhakenwZZS/UrdZ+FR0BMT8JUm47oMfJpy3Y03C2Wfah3XdWC 9odIGMWCA8iYzOkxxgNQ9OGUILn6UwDUCV6rpbfSkbJU8DGLsJN0hKP0aH5hXzhs E2OpJxPYu8P1B6ZNoA9ar7bcjvmNQZZ0dTs6aDygAIagIuJm1+rEWKfkur3L2+sb 7hQA57jYdiP+UNmJ/UHL =9/+c -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--