From owner-freebsd-bugs Mon Mar 4 10:50: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8E94F37B416 for ; Mon, 4 Mar 2002 10:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g24Io1A53508; Mon, 4 Mar 2002 10:50:01 -0800 (PST) (envelope-from gnats) Received: from hand.dotat.at (host217-35-46-127.in-addr.btopenworld.com [217.35.46.127]) by hub.freebsd.org (Postfix) with ESMTP id C5E0137B400 for ; Mon, 4 Mar 2002 10:40:39 -0800 (PST) Received: from fanf by hand.dotat.at with local (Exim 3.35 #1) id 16hxNW-0006mb-00; Mon, 04 Mar 2002 18:40:06 +0000 Message-Id: Date: Mon, 04 Mar 2002 18:40:06 +0000 From: Tony Finch Reply-To: Tony Finch To: FreeBSD-gnats-submit@freebsd.org Cc: Tony Finch X-Send-Pr-Version: 3.113 Subject: misc/35542: BDECFLAGS needs -U__STRICT_ANSI__ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35542 >Category: misc >Synopsis: BDECFLAGS needs -U__STRICT_ANSI__ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 04 10:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tony Finch >Release: FreeBSD 4.5-STABLE-20020220 i386 >Organization: dotat labs >Environment: System: FreeBSD hand.dotat.at 4.5-STABLE-20020220 FreeBSD 4.5-STABLE-20020220 #15: Wed Feb 20 07:46:52 GMT 2002 fanf@hand.dotat.at:/FreeBSD/obj/FreeBSD/releng4/sys/SHARP i386 >Description: In environments where the system headers are aware of the compilation environment that the program desires, using gcc -ansi may disable all the Unix definitions, which is rather unhelpful for flag settings intended for Unix programs. >How-To-Repeat: Try compiling with $BDECFLAGS a program that uses functions like asprintf(). On Linux (for example) this fails because asprintf() is in the C standard. >Fix: Index: make.conf =================================================================== RCS file: /home/ncvs/src/share/examples/etc/make.conf,v retrieving revision 1.179 diff -u -r1.179 make.conf --- make.conf 17 Feb 2002 22:10:05 -0000 1.179 +++ make.conf 4 Mar 2002 18:31:41 -0000 @@ -55,8 +55,8 @@ # putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. -Wconversion is not # included here due to compiler bugs, eg: mkdir()'s mode_t argument. # -#BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ -# -Wcast-qual -Wchar-subscripts -Winline \ +#BDECFLAGS= -ansi -U__STRICT_ANSI__ -pedantic -W -Wall -Wbad-function-cast \ +# -Wcast-align -Wcast-qual -Wchar-subscripts -Winline \ # -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ # -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings # >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message