From jhamby@anobject.com  Wed Aug  4 20:42:04 2004
Return-Path: <jhamby@anobject.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D0CFA16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  4 Aug 2004 20:42:04 +0000 (GMT)
Received: from bronco.gopix.net (gopix.net [38.118.153.46])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B544043D53
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  4 Aug 2004 20:42:04 +0000 (GMT)
	(envelope-from jhamby@anobject.com)
Received: from localhost.my.domain (ar39.lsanca2-4.16.240.78.lsanca2.elnk.dsl.genuity.net [4.16.240.78])
	by bronco.gopix.net (8.12.11/8.12.11) with ESMTP id i74Kk27g025476
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Aug 2004 13:46:03 -0700
Received: (from jhamby@localhost)
	by localhost.my.domain (8.12.11/8.12.11/Submit) id i74Kg0HJ087552;
	Wed, 4 Aug 2004 13:42:00 -0700 (PDT)
	(envelope-from jhamby)
Message-Id: <200408042042.i74Kg0HJ087552@localhost.my.domain>
Date: Wed, 4 Aug 2004 13:42:00 -0700 (PDT)
From: Jake Hamby <jhamby@anobject.com>
Reply-To: Jake Hamby <jhamby@anobject.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Patch to build kdemultimedia3 with GCC 3.4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70011
>Category:       ports
>Synopsis:       Patch to build kdemultimedia3 with GCC 3.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 04 20:50:22 GMT 2004
>Closed-Date:    Wed Aug 11 17:35:58 GMT 2004
>Last-Modified:  Wed Aug 11 17:35:58 GMT 2004
>Originator:     Jake Hamby
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
anObject
>Environment:
System: FreeBSD atheros 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Tue Aug 3 11:16:13 PDT 2004 root@atheros:/usr/home/work/ATHEROS i386

gcc (GCC) 3.4.2 [FreeBSD] 20040728
	
>Description:

kdemultimedia3 doesn't build under GCC 3.4.2 (when "-O2" is used) because a
Linuxism was used to detect the version of GCC.  The attached patch fixes the
problem by using the equivalent FreeBSD macro.

>How-To-Repeat:

Try building kdemultimedia3 using GCC 3.4.2 and CFLAGS="-O2 -pipe".
WITH_MPEGLIB must also be enabled.

>Fix:

--- patch-rgb2yuvdefs.h begins here ---
--- mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h.orig	Tue Sep  2 07:04:27 2003
+++ mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h	Wed Aug  4 12:48:40 2004
@@ -20,6 +20,9 @@
 
 /* gcc 3.3.1 and later optimise the "not used" (only in asm code)
    symbols away. So we need to mark them as used. */
+#if defined(__GNUC_PREREQ__) && !defined(__GNUC_PREREQ)
+#define __GNUC_PREREQ __GNUC_PREREQ__
+#endif
 #ifdef __GNUC_PREREQ
 #if __GNUC_PREREQ (3,1)
 # define __attribute_used__ __attribute__ ((__used__))
--- patch-rgb2yuvdefs.h ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: lofi 
Responsible-Changed-When: Wed Aug 4 21:11:20 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70011 
State-Changed-From-To: open->closed 
State-Changed-By: lofi 
State-Changed-When: Wed Aug 11 17:35:42 GMT 2004 
State-Changed-Why:  
Committed, thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=70011 
>Unformatted:
