From owner-freebsd-questions Wed Dec 11 10:32:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23DBA37B401 for ; Wed, 11 Dec 2002 10:32:22 -0800 (PST) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E29443EC5 for ; Wed, 11 Dec 2002 10:32:21 -0800 (PST) (envelope-from kstewart@owt.com) Received: from owt-207-41-94-233.owt.com (owt-207-41-94-233.owt.com [207.41.94.233]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id KAA29783; Wed, 11 Dec 2002 10:32:19 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Kent Stewart To: Nick Jennings , freebsd-questions@FreeBSD.ORG Subject: Re: problems 'make'ing ports Date: Wed, 11 Dec 2002 10:32:19 -0800 User-Agent: KMail/1.4.3 References: <20021016210118.D12841@namodn.com> In-Reply-To: <20021016210118.D12841@namodn.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212111032.19385.kstewart@owt.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 16 October 2002 09:01 pm, Nick Jennings wrote: > Hi All, > > I have been having several problems build ports. I just installed > 4.7, and used cvsupit to update to the latest ports tree (nightly) > and track the -STABLE branch (/usr/src). > > When I build ports I often get really lame errors like > 'Unknown character /' in some source file. What it turns out to be > is a comment, like: > > // This is a comment. > > Changing it to: > > /* This is a comment */ > > Fixes the problem. > > I get other errors too, but I am starting to question whether > something else is wrong here. Is my make.conf too strict or > something? I copied it from the examples, > (/usr/share/examples/etc/defaults/make.conf) and did *very* little > in customization... My CFLAGS looks like this: > > CFLAGS=3D -O -pipe -Wall -ansi > > What could be the problem here? Or is the compiler I'm using just > not like '//' used as comments? > A "#CFLAGS=3D -O -pipe -Wall -ansi" will work better. The default is "-O=20 -pipe" and turning other flags on just increases the number of=20 problems. I also use the default COPTFLAGS. The compiler will build=20 modules containing // comments just fine. Kent > > I also can't successfully 'make buildworld'... And about 50% of > the time I try to install a port that just won't build, so I have > to use 'pkg_add'. > > Any tips greatly appreciated. --=20 Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message