Date: Thu, 9 Apr 2020 21:58:05 +0000 From: Brooks Davis <brooks@freebsd.org> To: "Julian H. Stacey" <jhs@berklix.com> Cc: current@freebsd.org Subject: Re: lib/libsysdecode /usr/include/./sys/pioctl.h:45:2: error: "<sys/pioctl.h> is deprecated Message-ID: <20200409215805.GA15543@spindle.one-eyed-alien.net> In-Reply-To: <202004092149.039LnlMD044194@fire.js.berklix.net> References: <202004092149.039LnlMD044194@fire.js.berklix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <stdin>:97: > /usr/include/./sys/pioctl.h:45:2: warning: "<sys/pioctl.h> is deprecated,= ptrace() should be used instead" > [-W#warnings] > #warning "<sys/pioctl.h> 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: "<sys/pioctl.h> is deprecated, p= trace() should be used instead" > [-Werror,-W#warnings] > #warning "<sys/pioctl.h> 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 <objpath>/lib/libsysdecode and <objpath>/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/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200409215805.GA15543>