[mythtv-users] Compilation error an SUSE 9.1

Stefan Seyfried seife at gmane0305.slipkontur.de
Sun May 2 08:52:00 EDT 2004


On Sun, May 02, 2004 at 02:23:29PM +0200, Oliver Groht wrote:
> Hi all
> 
> since last week i use a new SUSE 9.1 Distribution. Therefore with an 

> The linker error says:
> ../../libs/libavcodec/libmythavcodec-0.15.so: undefined reference to 
> `wm0101'
 
> my current compiler is an
> gcc (GCC) 3.3.3 (SuSE Linux) but i had tried an newer and an older 

this fixed this for me, don't know if it would still compile with 2.95.4:

seife at heppo:/usr/local/src/mythtv/mythtv > cvs -z3 -q diff -u libs/libavcodec/liba52/resample_mmx.c
Index: libs/libavcodec/liba52/resample_mmx.c
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libavcodec/liba52/resample_mmx.c,v
retrieving revision 1.1
diff -u -r1.1 resample_mmx.c
--- libs/libavcodec/liba52/resample_mmx.c       20 Apr 2003 05:47:30 -0000      1.1
+++ libs/libavcodec/liba52/resample_mmx.c       2 May 2004 12:50:04 -0000
@@ -7,10 +7,10 @@
        and it would mean (C / MMX2 / MMX / 3DNOW) versions 
 */
 
-static uint64_t __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;
-static uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;
-static uint64_t __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;
-static uint64_t __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL;
+static uint64_t __attribute__((aligned(8),used)) magicF2W= 0x43c0000043c00000LL;
+static uint64_t __attribute__((aligned(8),used)) wm1010= 0xFFFF0000FFFF0000LL;
+static uint64_t __attribute__((aligned(8),used)) wm0101= 0x0000FFFF0000FFFFLL;
+static uint64_t __attribute__((aligned(8),used)) wm1100= 0xFFFFFFFF00000000LL;
 
 static int a52_resample_MONO_to_5_MMX(float * _f, int16_t * s16){
     int32_t * f = (int32_t *) _f;

-- 
Stefan Seyfried


More information about the mythtv-users mailing list