Subject: pkg/32558: mplayer and mencoder do not compile on debian testing
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <philippe.sam-long@laposte.net>
List: pkgsrc-bugs
Date: 01/17/2006 21:15:01
>Number:         32558
>Category:       pkg
>Synopsis:       mplayer and mencoder do not compile on debian testing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 17 21:15:00 +0000 2006
>Originator:     philippe sam-long
>Release:        pkgsrc-current on debian-testing linux
>Organization:
>Environment:
Linux yugoth 2.6.12-1-386 #1 Tue Sep 27 12:41:08 JST 2005 i686 GNU/Linux
>Description:
gcc -c -I../libvo -I../../libvo -I/usr/pkg/xorg/include -fno-PIC -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/pkg/include -I/usr/pkg/include/faad2  -I. -I.. -I/usr/pkg/include -I/usr/pkg/include/faad2  -o lrmi.o lrmi.c
/tmp/ccukvg6K.s: Assembler messages:
/tmp/ccukvg6K.s:1172: Error: suffix or operands invalid for `mov'
/tmp/ccukvg6K.s:1183: Error: suffix or operands invalid for `mov'
make[1]: *** [lrmi.o] Error 1
make[1]: Leaving directory `/usr/pkgsrc/multimedia/mencoder/work/MPlayer-1.0pre7
/osdep'
make: *** [osdep/libosdep.a] Error 2
*** Error code 2

when compiling mencoder
>How-To-Repeat:
cd /usr/pkgsrc/multimedia/mencoder && bmake update
>Fix:
This small patch for mplayer-share should work with both mplayer and mencoder, assuming that lrmi is used only on Linux. Maybe a better place for it would be in configure.in? 

I do not know if MPlayer uses lrmi when emulators/lrmi is installed on NetBSD.

--- osdep/lrmi.h.orig   2006-01-17 19:49:37.000000000 +0100
+++ osdep/lrmi.h
@@ -83,4 +83,9 @@ LRMI_alloc_real(int size);
 void
 LRMI_free_real(void *m);

+/*
+ Building currently fails on debian etch when using provided inline ASM
+*/
+#define USE_LIBC_VM86
+
 #endif