From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.sgregoratto.me (mail.sgregoratto.me [149.28.166.45]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id ab94ecb3 for ; Tue, 12 Mar 2019 20:32:39 -0500 (EST) Received: from mail.sgregoratto.me (localhost [127.0.0.1]) by mail.sgregoratto.me (Postfix) with ESMTP id F15273E934 for ; Wed, 13 Mar 2019 12:32:36 +1100 (AEDT) Authentication-Results: mail.sgregoratto.me (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=sgregoratto.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sgregoratto.me; h=content-transfer-encoding:user-agent:content-disposition :content-type:content-type:mime-version:message-id:subject :subject:to:from:from:date:date; s=dkim; t=1552440756; x= 1555032757; bh=qfTUgvX5ipmTKjTCa4M7kgX0gy+zCAWJSaSp3PKwBc8=; b=O 8w089xyK1KmyFLttXCG8cjjt+k3S/5tLfUnmQfgrNeLtQq+qd5ygEEXM9zKH1p/6 /xeO/v+tj1HYkfIX1uLGze10l+iT/L0YuHjyIOYqGwGmAVNWLLC4EACaUuGrsi8O jHkJty1W9SI2DJhosttNRUAr/99Vb7z1TgA4HvBXj0= X-Virus-Scanned: Debian amavisd-new at mail.sgregoratto.me Received: from mail.sgregoratto.me ([127.0.0.1]) by mail.sgregoratto.me (mail.sgregoratto.me [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ft6dJZaLga0r for ; Wed, 13 Mar 2019 12:32:36 +1100 (AEDT) Received: from localhost (natpool-73.uow.edu.au [203.10.91.73]) by mail.sgregoratto.me (Postfix) with ESMTPSA id 223F73E8D6 for ; Wed, 13 Mar 2019 12:32:36 +1100 (AEDT) Date: Wed, 13 Mar 2019 12:32:35 +1100 From: Stephen Gregoratto To: discuss@mandoc.bsd.lv Subject: man_validate.c compile errors on Linux gcc/clang Message-ID: <20190313013235.najhyodv2hpboasu@BlackBox> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20180716 Content-Transfer-Encoding: quoted-printable The latest patches to man_validate.c do not compile on my Linux machines=20 using gcc/clang. Only my OpenBSD server can complete fully. On my Arch Linux machine: Linux 5.0.0-arch1-1-ARCH x86_64 GNU/Linux gcc -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings = -Wno-unused-parameter -c -o man_validate.o man_validate.c man_validate.c:44:14: error: expected =E2=80=98;=E2=80=99 before =E2=80=98= void=E2=80=99 static __dead void check_abort(CHKARGS); ^~~~~ ; man_validate.c:199:14: error: expected =E2=80=98;=E2=80=99 before =E2=80=98= void=E2=80=99 static __dead void ^~~~~ ; make: *** [: man_validate.o] Error 1 gcc (GCC) 8.2.1 20181127 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is N= O warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. clang -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-string= s -Wno-unused-parameter -c -o man_validate.o man_validate.c man_validate.c:44:8: error: unknown type name '__dead' static __dead void check_abort(CHKARGS); ^ man_validate.c:44:15: error: expected identifier or '(' static __dead void check_abort(CHKARGS); ^ man_validate.c:67:2: error: use of undeclared identifier 'check_abort' check_abort,/* LP */ ^ man_validate.c:69:2: error: use of undeclared identifier 'check_abort' check_abort,/* P */ ^ man_validate.c:199:8: error: unknown type name '__dead' static __dead void ^ man_validate.c:199:15: error: expected identifier or '(' static __dead void ^ 6 errors generated. make: *** [: man_validate.o] Error 1 clang version 7.0.1 (tags/RELEASE_701/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin On my Debian 9 Server: Linux mail.sgregoratto.me 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-= 02) x86_64 GNU/Linux gcc -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings = -Wno-unused-parameter -c -o man_validate.o man_validate.c man_validate.c:44:15: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2= =80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribut= e__=E2=80=99 before =E2=80=98void=E2=80=99 static __dead void check_abort(CHKARGS); ^~~~ man_validate.c:67:2: error: =E2=80=98check_abort=E2=80=99 undeclared here= (not in a function) check_abort,/* LP */ ^~~~~~~~~~~ man_validate.c:199:15: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2= =80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribut= e__=E2=80=99 before =E2=80=98void=E2=80=99 static __dead void ^~~~ : recipe for target 'man_validate.o' failed make: *** [man_validate.o] Error 1 gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is N= O warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR=20 PURPOSE. I'm unsure if __dead is defined in glibc. I couldn't find it under=20 . --=20 Stephen Gregoratto PGP: 3FC6 3D0E 2801 C348 1C44 2D34 A80C 0F8E 8BAB EC8B -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv