Subject: Re: can't build lang/squeak
To: None <current-users@netbsd.org>
From: Ron Roskens <roskens@elfin.net>
List: current-users
Date: 12/02/2003 18:26:57
Its probably a case where they didn't terminate a string on the same line:
like:

char *v = "this is a string
which spans
multiple lines.";

You'll have to add "'s for each of line. ie:

char *v = "this is a string "
"which spans "
"multiple lines.";

Its something that gcc3 seems to be a bit more stict on as opposed to
gcc2.

Ron

* Rasputin <rasputin@idoru.mine.nu> [2003-12-03 00:20:24 +0000]:

> 
> Is this a compiler bug, or a problem with the package?
> 
> 0root@dozer:rasputin$ cd /usr/pkgsrc/lang/squeak/
> 0root@dozer:squeak$ make
> ===> Checking for vulnerabilities in squeak-3.0
> ===> Building for squeak-3.0
> cc -I/usr/X11R6/include -O2 -pipe -fomit-frame-pointer -DLSB_FIRST=1  -funroll-l
> oops -DHAVE_CONFIG_H -DUNIX -DSQ_LIBDIR=\"/usr/pkg/lib/squeak/3.0\" -I. -I/usr/w
> ork/lang/squeak/work/Squeak-3.0/build/../src/generated -I/usr/work/lang/squeak/w
> ork/Squeak-3.0/build/../src/unix -DNETBSD_OSS_HACK -c -o sqXWindow.o /usr/work/l
> ang/squeak/work/Squeak-3.0/build/../src/unix/sqXWindow.c
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3918:18: missing terminating " character
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c: In function `imageNotFound':
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3921: error: parse error before "There"
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3924: error: stray '`' in program
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3924:32: missing terminating ' character
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3924:32: warning: character constant too long for its type
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3928: error: stray '`' in program
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3928:40: missing terminating ' character
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3928:40: warning: character constant too long for its type
> /usr/work/lang/squeak/work/Squeak-3.0/src/unix/sqXWindow.c:3929:1: missing terminating " character
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/work/lang/squeak/work/Squeak-3.0/build
> 
> 
> -- 
> Perfection is reached, not when there is no longer anything to add, but
> when there is no longer anything to take away.
> 		-- Antoine de Saint-Exupery
> Rasputin :: Jack of All Trades - Master of Nuns