Date: Wed, 11 Dec 2002 10:32:19 -0800 From: Kent Stewart <kstewart@owt.com> To: Nick Jennings <nkj@namodn.com>, freebsd-questions@FreeBSD.ORG Subject: Re: problems 'make'ing ports Message-ID: <200212111032.19385.kstewart@owt.com> In-Reply-To: <20021016210118.D12841@namodn.com> References: <20021016210118.D12841@namodn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212111032.19385.kstewart>