Subject: Re: -current make in src/sbin/raidctl
To: Michael L. Hitch <mhitch@lightning.oscs.montana.edu>
From: Andreas Wrede <andreas@planix.com>
List: current-users
Date: 03/24/1999 14:47:24
On Wed, 24 Mar 1999, Michael L. Hitch wrote:

> On Wed, 24 Mar 1999, Greg Oster wrote:
> 
> > Andreas Wrede writes:
> > > make build in current, sup'ed yesterday, failes in src/sbin/raidctl:
> > > 
> > > cc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> > > -Wpointer-arith -Werror -Wno-error 
> > > -I/usr/src/sbin/raidctl/../../sys/dev/raidframe -c rf_configure.c
> ...
> > Umm.....  There are supposed to be some more COPT's in that compile line. 
> > Specifically: 
> >   
> >    -DCSRG_BASED -DNARROWPROTO -DRF_UTILITY=1 -DSIMULATE=1
> ...
> > with COPTS has changed recently with 'make'.  Nuke the 'COPTS+=...' line
> > in /usr/src/sbin/raidctl/Makefile, and replace the line 'CPPFLAGS+=...'
> > with:
> > 
> > CPPFLAGS+= -DCSRG_BASED -DNARROWPROTO -DRF_UTILITY=1 -DSIMULATE=1 -I${LOOKHERE}
> > 
> > I'll dig into this further in a bit..)
> 
>   Actually, I'll bet there's a 'COPTS=-pipe' in /etc/mk.conf - replacing
> that with 'COPTS+=-pipe' will probably cure the problem.  [Any guesses who
> just ran into this a couple of days ago?]

That's it!  Thanks.  And now that I read 'man mk.conf', I see the error of
my ways....

-- 
Andreas Wrede              Planix, Inc.
andreas@planix.com         Networking, System Administration, Consulting
http://www.planix.com      Toronto, Ontario, Canada