ports/70011: Patch to build kdemultimedia3 with GCC 3.4
Jake Hamby
jhamby at anobject.com
Wed Aug 4 20:50:27 UTC 2004
>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 at 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:
More information about the freebsd-ports-bugs
mailing list