Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2004 11:30:35 -0700
From:      "Michael C. Shultz" <ringworm@inbox.lv>
To:        freebsd-ports@freebsd.org
Cc:        ringworm@inbox.lv
Subject:   Re: aspell-0.50.5_2 fails to build
Message-ID:  <200404201130.36027.ringworm@inbox.lv>
In-Reply-To: </tO%2BZKIY4f@dmeyer.dinoex.sub.org>
References:  <200404171601.25298.kstewart@owt.com> <200404171800.30877.ringworm@inbox.lv> </tO%2BZKIY4f@dmeyer.dinoex.sub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 19 April 2004 09:50 pm, Dirk Meyer wrote:
> Michael C. Shultz schrieb:,
>
> > I did just add "CFLAGS+=${BDECFLAGS}" before updating because I was also
> > compiling my own stuff.  Removing it and aspell compiles just fine.  I'm
> > curious why warning flags would stop aspell, but in the future I'll unset
> > them when upgrading. Thanks for  your help  Kent!
> >
> > # BDECFLAGS are a set of gcc warning settings that Bruce Evans has
> > suggested # for use in developing FreeBSD and testing changes.  They can
> > be used by # putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. 
> > -Wconversion is not # included here due to compiler bugs, e.g., mkdir()'s
> > mode_t argument. #
> > BDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
> > 		-Wcast-qual -Wchar-subscripts -Winline \
> > 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
> > 		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
>
> "-ansi" will build everything with a diffrent ABI,
> this breaks a major number of ports.
>
> I can reccomend:
>
> WARN=	-W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align
> -Wcast-qual -Wchar-subscripts -Wcomment -Wconversion -Wformat -Wimplicit
> -Wimplicit-function-delcaration -Wimplicit-int -Wlong-long -Wmain
> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-import
> -Wno-parentheses -Wparentheses -Wpointer-arith -Wredundant-decls
> -Wreturn-type -Wshadow -Wsign-compare -Wstrict-prototypes -Wswitch
> -Wtraditional -Wtrigraphs -Wunused -Wwrite-strings
>
> .if !defined(NO_WARN)
> CFLAGS+=${WARN}
> NO_WERROR=      yes
> .endif
>
> Flags that break some ports:
> PEDANTIC=	-Winline -pedantic -Wformat-nonliteral -Wformat-security
> -Wformat-extra-args -Wformat=2 -std=gnu99
>
>
> kind regards Dirk
>
Thanks Dirk!  Having to reset make.conf was really a poor option because that 
meant I could not test my own projects while updating software.  I'll be 
trying your suggested flags latter today, if they work out maybe the default 
make.conf could be updated?

-Mike



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404201130.36027.ringworm>