Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 2004 13:42:00 -0700 (PDT)
From:      Jake Hamby <jhamby@anobject.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70011: Patch to build kdemultimedia3 with GCC 3.4
Message-ID:  <200408042042.i74Kg0HJ087552@localhost.my.domain>
Resent-Message-ID: <200408042050.i74KoM47034756@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70011
>Category:       ports
>Synopsis:       Patch to build kdemultimedia3 with GCC 3.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 04 20:50:22 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408042042.i74Kg0HJ087552>