Subject: pkg/23289: gcc-2.95.3 pkg build fails with -current and gcc3 - simple workaround attatched
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <waddell@caravan.com>
List: netbsd-bugs
Date: 10/28/2003 02:07:07
>Number:         23289
>Category:       pkg
>Synopsis:       gcc-2.95.3 pkg build fails with -current and gcc3 - simple workaround attatched
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 28 02:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Harry Waddell
>Release:        i386-current
>Organization:
Caravan Electronic Publishing
>Environment:
NetBSD slump 1.6ZD NetBSD 1.6ZD (CARAVANMP) #19: Sat Oct 18 13:05:40 PDT 2003  waddell@slump:/usr/src/sys/arch/i386/compile/CARAVANMP i386

>Description:
I'm not sure if this is should be treated as a gcc3 bug or a problem with the package. Since the workaround for the package is easy, and fixing 
cpp is hard, I've chosen to do the latter.

in the gcc-2.95.3 pkg, the file gcc/ch/loop.c has a large block of 
embedded documentation at the top, effectively commented out by an 
"#ifdef 0" preprocessor instruction. Within this large block of text, 
a commented statement spans a line break, which causes the error 

/scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c:321:8: missing terminating " character
/scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c:322:38: missing terminating " character

>How-To-Repeat:
cd /usr/pkgsrc/lang/gcc
make
>Fix:
apply the following unified diff.


--- /scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c-orig 2003-10-27 17:30:25.000000000 -0800
+++ /scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c      2003-10-27 17:35:03.000000000 -0800
@@ -318,8 +318,8 @@
 (associated with all iterators).
 
  NOTE: Z.200, section 10.1 says that a block is ...
-       "the actions statement list in a do action, including any
-       loop counter and while control".  This means that an exp-
+       the actions statement list in a do action, including any
+       loop counter and while control.  This means that an exp-
        ression in a WHILE control can include references to the
        loop counters created for the loop''s exclusive use.  
        Example:

>Release-Note:
>Audit-Trail:
>Unformatted: