From owner-freebsd-ports@FreeBSD.ORG Tue Apr 20 13:52:56 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ADB616A4CE for ; Tue, 20 Apr 2004 13:52:56 -0700 (PDT) Received: from turkey.mail.pas.earthlink.net (turkey.mail.pas.earthlink.net [207.217.120.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAF8143D1D for ; Tue, 20 Apr 2004 13:52:55 -0700 (PDT) (envelope-from mike@inbox.lv) Received: from pool0591.cvx31-bradley.dialup.earthlink.net ([209.179.148.81] helo=ringworm.mojavegreen.com) by turkey.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BG2Eg-0003WD-00; Tue, 20 Apr 2004 13:52:55 -0700 Received: by ringworm.mojavegreen.com (Postfix, from userid 1000) id 611A88455; Tue, 20 Apr 2004 11:30:39 -0700 (PDT) From: "Michael C. Shultz" Organization: Mojave Green Software co. To: freebsd-ports@freebsd.org Date: Tue, 20 Apr 2004 11:30:35 -0700 User-Agent: KMail/1.6.1 References: <200404171601.25298.kstewart@owt.com> <200404171800.30877.ringworm@inbox.lv> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404201130.36027.ringworm@inbox.lv> cc: ringworm@inbox.lv Subject: Re: aspell-0.50.5_2 fails to build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 20:52:56 -0000 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