Subject: pkg/25727: audio/cdparanoia does not compile with gcc 3.4.0
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <shannonjr@netbsd.org>
List: pkgsrc-bugs
Date: 05/27/2004 08:57:37
>Number:         25727
>Category:       pkg
>Synopsis:       audio/cdparanoia does not compile with gcc 3.4.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 27 14:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 2.0_BETA
>Organization:
	netbsd.org
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 2.0_BETA NetBSD 2.0_BETA (KERNEL) #0: Mon May 24 05:31:10 MDT 2004 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
Architecture: i386
Machine: i386
>Description:
	 gcc -O -O2 -I/usr/obj/pkg/audio/cdparanoia/work/.buildlink/gcc-3.4.0/include -c scan_devices.c  -fPIC -DPIC -o .libs/scan_devices.o
	 In file included from scan_devices.c:20:
	 utils.h: In function `cderror':
	 utils.h:129: error: label at end of compound statement
	 utils.h: In function `cdmessage':
	 utils.h:144: error: label at end of compound statement
	 utils.h: In function `idperror':
	 utils.h:186: error: label at end of compound statement
	 utils.h: In function `idmessage':
	 utils.h:222: error: label at end of compound statement

>How-To-Repeat:
	
>Fix:

# cvs -q -z 4 diff
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/audio/cdparanoia/distinfo,v
retrieving revision 1.7
diff -r1.7 distinfo
13c13
< SHA1 (patch-cc) = 6ee7d4842d178491ecf5285c429f932f2f854799
---
> SHA1 (patch-cc) = 0980c20c8fcd11de11294dd8fed0f9555ea0ef0d
Index: patches/patch-cc
===================================================================
RCS file: /cvsroot/pkgsrc/audio/cdparanoia/patches/patch-cc,v
retrieving revision 1.3
diff -r1.3 patch-cc
1c1
< $NetBSD: patch-cc,v 1.3 2003/10/20 12:07:23 grant Exp $
---
> $NetBSD$
3c3
< --- interface/utils.h.orig    2000-04-20 08:41:04.000000000 +1000
---
> --- interface/utils.h.orig    2000-04-19 16:41:04.000000000 -0600
23a24,55
> @@ -112,6 +126,7 @@ static void cderror(cdrom_drive *d,const
>        break;
>      case CDDA_MESSAGE_FORGETIT:
>      default:
> +      ;
>      }
>    }
>  }
> @@ -127,6 +142,7 @@ static void cdmessage(cdrom_drive *d,con
>        break;
>      case CDDA_MESSAGE_FORGETIT:
>      default:
> +      ;
>      }
>    }
>  }
> @@ -169,6 +185,7 @@ static void idperror(int messagedest,cha
>        break;
>      case CDDA_MESSAGE_FORGETIT:
>      default:
> +      ;
>      }
>    }
>    if(malloced)free(buffer);
> @@ -205,6 +222,7 @@ static void idmessage(int messagedest,ch
>        break;
>      case CDDA_MESSAGE_FORGETIT:
>      default:
> +      ;
>      }
>    }
>    if(malloced)free(buffer);

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