ports/74806: multimedia/libfame: fix _mmx_one references on GCC 3.4
Hendrik Scholz
hendrik at scholz.net
Tue Dec 7 10:00:47 UTC 2004
>Number: 74806
>Category: ports
>Synopsis: multimedia/libfame: fix _mmx_one references on GCC 3.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 07 10:00:46 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Hendrik Scholz
>Release: FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD plant.wormulon.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Fri Aug 13 11:32:22 CEST 2004 hscholz at h2012.ka.strato.de:/usr/src/sys/i386/compile/PLANT i386
>Description:
libfame is not usable on a recent GCC.
Symptoms include this error:
/usr/local/lib/libfame.so: undefined reference to `_mmx_one'
A fix has been posted to
http://www.linuxfromscratch.org/blfs/downloads/svn/libfame-0.9.1-gcc34-1.patch
This upgrade adds two patches to files/ named patch-src:half_sse.h and
patch-src:half_mmx.h
>How-To-Repeat:
Try to compile transcode with GCC 3.4 and libfame 0.9.1 without patches:
configure:38689: cc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include -I/compat/linux/usr/include/divx -L/usr/local/lib -L/usr/X11R6/lib conftest.c -lm -lz -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lfame >&5
/usr/local/lib/libfame.so: undefined reference to `_mmx_one'
configure:38695: $? = 1
configure: failed program was:
.. works as expected with the provided patch
>Fix:
--- patch-src:half_sse.h begins here ---
--- src/half_sse.h.orig Tue Dec 7 10:24:14 2004
+++ src/half_sse.h Tue Dec 7 10:24:29 2004
@@ -19,7 +19,7 @@
*/
/**************************** half-pixel interpolation ***********************/
-static short const _mmx_one[] = { 1, 1, 1, 1 };
+const _mmx_one[] = { 1, 1, 1, 1 };
static unsigned char const _mmx_one_byte[] = {1,1,1,1,1,1,1,1};
--- src/half_mmx.h.orig Tue Dec 7 10:23:21 2004
+++ src/half_mmx.h Tue Dec 7 10:23:32 2004
@@ -18,7 +18,7 @@
*/
/**************************** half-pixel interpolation ***********************/
-static short const _mmx_one[] = { 1, 1, 1, 1 };
+const _mmx_one[] = { 1, 1, 1, 1 };
static void inline mmx_interpolate(unsigned char **ref,
int pitch,
--- patch-src:half_sse.h ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list