From owner-freebsd-current@freebsd.org Thu Apr 9 21:58:13 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 16FF62A8A7D for ; Thu, 9 Apr 2020 21:58:13 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48yw4h5MhCz4Lgl for ; Thu, 9 Apr 2020 21:58:12 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by mailman.nyi.freebsd.org (Postfix) id B649B2A8A7C; Thu, 9 Apr 2020 21:58:12 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B60F92A8A7B for ; Thu, 9 Apr 2020 21:58:12 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48yw4g5vRqz4Lgh for ; Thu, 9 Apr 2020 21:58:11 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 3F7533C0199; Thu, 9 Apr 2020 21:58:05 +0000 (UTC) Date: Thu, 9 Apr 2020 21:58:05 +0000 From: Brooks Davis To: "Julian H. Stacey" Cc: current@freebsd.org Subject: Re: lib/libsysdecode /usr/include/./sys/pioctl.h:45:2: error: " is deprecated Message-ID: <20200409215805.GA15543@spindle.one-eyed-alien.net> References: <202004092149.039LnlMD044194@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <202004092149.039LnlMD044194@fire.js.berklix.net> User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 48yw4g5vRqz4Lgh X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net X-Spamd-Result: default: False [-6.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; RCVD_COUNT_ZERO(0.00)[0]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; IP_SCORE(-3.63)[ip: (-9.53), ipnet: 199.48.128.0/22(-4.75), asn: 36236(-3.81), country: US(-0.05)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2020 21:58:13 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 09, 2020 at 11:49:47PM +0200, Julian H. Stacey wrote: > Anyoe else seeing this on current ? >=20 > =3D=3D=3D> lib/libsysdecode (all) > env CPP=3D"cpp" MK_PF=3D"yes" /bin/sh /usr/src/lib/libsysdecode/mkioctls= /usr/include > ioctl.c.tmp > In file included from :97: > /usr/include/./sys/pioctl.h:45:2: warning: " is deprecated,= ptrace() should be used instead" > [-W#warnings] > #warning " is deprecated, ptrace() should be used instead" > ^ > 1 warning generated. > if [ ! -e ioctl.c ] || ! cmp -s ioctl.c ioctl.c.tmp; then mv -f ioctl.c.= tmp ioctl.c; fi > cc -O2 -pipe -fno-common -I/data/release/s1/usr/obj/usr/src/amd64.amd6= 4/lib/libsysdecode -I/usr/src/sys -I/usr/src/libexec/rtld-elf -DPF -g -MD = -MF.depend.ioctl.o -MTioctl.o -std=3Dgnu99 -Wno-format-zero-length -fstack-= protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unu= sed-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wre= turn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter = -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls = -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -W= thread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variab= le -Qunused-arguments -c ioctl.c -o ioctl.o > In file included from ioctl.c:126: > /usr/include/./sys/pioctl.h:45:2: error: " is deprecated, p= trace() should be used instead" > [-Werror,-W#warnings] > #warning " is deprecated, ptrace() should be used instead" Hmm, I thought that the default removal of obsolete headers would at least get right of the header in WORLDTMP, but now I'm wondering if there's an additional boundary condition. (I'm surprised there isn't a --sysroot in your compiler command which is presumably why you're getting the system sys/pioctl.h...) You can do a clean build or work around it by removing ioctl.c in /lib/libsysdecode and /obj-lib32/lib/libsysdecode. -- Brooks --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJej5psAAoJEKzQXbSebgfAORAH/2mehWVrdW85hycrD2Z21t2N 1FZxUGwgnV6Bbn8CE7ArlM2R/apIZHV6+LoBWQ4e9Nn/qQZdUvPkKHWrojISi5PP r5622iBBlSSFW+95ox99GvklM4kQs0dTdhVrQBAGYN+3Boff+1MzOLUvUufzJHrX zLU/N9/xy6f4iIa3v6K9QMZWtPKlvpwM2yalG7Pop9olxGipnrmUW9sCQoayiaSd +p3eMq9v6/ILCDtBLmXAeSBfdlblJp+acObG7nhubbiuxFO2wKZimzpYzAPrXwtL sDTtE2FGXR6jBnNcikcAxwx/EQQNiuOP0yL1Vn4vPeSve494K7q0dc1vQOrkO9M= =WuVP -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--