From owner-freebsd-current@FreeBSD.ORG Wed Jun 11 12:29:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 701E837B401 for ; Wed, 11 Jun 2003 12:29:23 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5759643F85 for ; Wed, 11 Jun 2003 12:29:22 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h5BJT3TK051369; Wed, 11 Jun 2003 14:29:07 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <033701c3304f$c3a0a2a0$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: , "Munehiro Matsuda" References: <20030609210914.GA15553@nemesis.bsd-network.org><20030610194208.GA55855@nemesis.bsd-network.org> <20030611.143132.74757193.haro@kgt.co.jp> Date: Wed, 11 Jun 2003 14:29:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=1.0 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, UPPERCASE_25_50,USER_AGENT_OE version=2.43 X-Spam-Level: * cc: current@freebsd.org cc: gordon@bsd-network.org Subject: BDECFLAGS being added to CFLAGS and CWARNFLAGS ( was Re: [solved] buildworld error) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 11 Jun 2003 19:29:23 -0000 From: "Munehiro Matsuda" > I was having the same compile error, until I commeted out the > BDECFLAGS definition from /etc/make.conf. > > Looking into the problematic Makefiles, I've found that following > Makefiles do references BDECFLAGS, which matches errors I was getting: > > usr.sbin/config/Makefile : CFLAGS+= ${BDECFLAGS} > usr.sbin/lpr/Makefile.inc: CWARNFLAGS= ${BDECFLAGS} > usr.sbin/kgzip/Makefile : CFLAGS+= ${BDECFLAGS} > > I think these references must be removed. > I did a find for BDECFLAGS and it found 5 Makefiles that are adding these flags to either CFLAGS or CWARNFLAGS. # cd /usr/src # find . -type f -exec grep -H "BDECFLAGS" {} + ./sbin/ffsinfo/Makefile:#CFLAGS+=${BDECFLAGS} ./sbin/growfs/Makefile:#CFLAGS+=${BDECFLAGS} : ./usr.sbin/config/Makefile:CFLAGS+= ${BDECFLAGS} ./usr.sbin/lpr/Makefile.inc:CWARNFLAGS= ${BDECFLAGS} ./usr.sbin/kgzip/Makefile:CFLAGS+= ${BDECFLAGS} A couple of possible fixes are: 1. removal of BDECFLAGS from the above files 2. Add a .ifdef USE_BDECFLAGS .. .endif, that conditionalizes the use of BDECFLAGS in the above files. Scot