Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2003 14:29:09 -0500
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        <drosih@rpi.edu>, "Munehiro Matsuda" <haro@kgt.co.jp>
Cc:        gordon@bsd-network.org
Subject:   BDECFLAGS being added to CFLAGS and CWARNFLAGS ( was Re: [solved] buildworld error)
Message-ID:  <033701c3304f$c3a0a2a0$13fd2fd8@Admin02>
References:  <20030609210914.GA15553@nemesis.bsd-network.org><20030610194208.GA55855@nemesis.bsd-network.org><p05210610bb0c1e58316f@[128.113.24.47]> <20030611.143132.74757193.haro@kgt.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Munehiro Matsuda" <haro@kgt.co.jp>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?033701c3304f$c3a0a2a0$13fd2fd8>