From nobody@FreeBSD.org  Sat Dec 23 17:07:41 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 38BA416A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Dec 2006 17:07:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 2ED9F13C425
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Dec 2006 17:07:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBNH7e47049079
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Dec 2006 17:07:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBNH7eJY049078;
	Sat, 23 Dec 2006 17:07:40 GMT
	(envelope-from nobody)
Message-Id: <200612231707.kBNH7eJY049078@www.freebsd.org>
Date: Sat, 23 Dec 2006 17:07:40 GMT
From: Richard Arends<richard@unixguru.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: goobox can not be build with GCC 4.*
X-Send-Pr-Version: www-3.0

>Number:         107141
>Category:       ports
>Synopsis:       goobox can not be build with GCC 4.*
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 23 17:10:13 GMT 2006
>Closed-Date:    Sun Dec 24 22:48:30 GMT 2006
>Last-Modified:  Sun Dec 24 22:50:11 GMT 2006
>Originator:     Richard Arends
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
FreeBSD fbsd_current.unixguru.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Dec 13 21:36:53 CET 2006     root@fbsd_current.unixguru.nl:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
goobox can not be build with GCC 4.*
>How-To-Repeat:
cd /usr/ports/audio/goobox && make
>Fix:
Apply this patch:

diff -ruN goobox.orig/files/patch-src_cd-drive.c goobox/files/patch-src_cd-drive.c
--- goobox.orig/files/patch-src_cd-drive.c      Thu Jan  1 01:00:00 1970
+++ goobox/files/patch-src_cd-drive.c   Sat Dec 23 16:24:35 2006
@@ -0,0 +1,20 @@
+--- src/cd-drive.c-orig        Sat Dec 23 16:18:08 2006
++++ src/cd-drive.c     Sat Dec 23 16:19:07 2006
+@@ -579,7 +579,7 @@
+ #if defined(__linux__) || defined(__FreeBSD__)
+ 
+ #if !defined(__linux__)
+-static int
++int
+ get_device_max_read_speed (char *device)
+ {
+       int fd;
+@@ -601,7 +601,7 @@
+ }
+ #endif
+  
+-static int
++int
+ get_device_max_write_speed (char *device)
+ {
+       int fd;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Dec 23 20:50:19 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107141 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sun Dec 24 22:48:10 UTC 2006 
State-Changed-Why:  
Fixed a different way.  Thanks for the report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107141 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107141: commit references a PR
Date: Sun, 24 Dec 2006 22:48:11 +0000 (UTC)

 marcus      2006-12-24 22:48:05 UTC
 
   FreeBSD ports repository
 
   Added files:
     audio/goobox/files   patch-src_cd-drive.c 
   Log:
   Fix build with GCC 4.x.
   
   PR:             107141
   
   Revision  Changes    Path
   1.1       +12 -0     ports/audio/goobox/files/patch-src_cd-drive.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
