[MPlayer-users] mplayer compilation error

Dean S. Messing deanm at sharplabs.com
Tue Nov 26 03:23:02 CET 2002


I don't think that your comment is correct.  Please set me
straight if I've misunderstood something.  I'm learning.

I believe, from my reading, that when the output of ./configure says,
for example "Checking for kernel support of mmx ... yes" it
means that a check was performed to explicitly test for MMX
and the test passed.

In fact I just looked in the configure.log and found

<snip>
============ Checking for kernel support of mmx ============

#include <signal.h>
void catch() { exit(1); }
int main(void){
  signal(SIGILL, catch);
  __asm__ __volatile__ ("emms":::"memory");return(0);
}

gcc -I./libvo   /root/tmp/mplayer-conf-22220-12803.c -o /root/tmp/mplayer-conf-29276-12803.o 

ldd /root/tmp/mplayer-conf-29276-12803.o
	libc.so.6 => /lib/i686/libc.so.6 (0x40024000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: yes
##########################################
<snip>

which looks to me like an explicit check for the existance of the
assembly instruction(?) "emms".  It looks like it tries to compile
this little C program with embedded assembly code and then checks that
the object module got correctly created with the correct references to
shared libs.

Presumably, if I didn't have MMX support in the kernel, it wouldn't
compile.

Am I missing anything here?

Dean


Balatoni Denes writes:
 :: afaik --enable-something really means --force-something, so it's possible
 :: still that you don't actually have kernel support.
 :: 
 :: > Regarding my kernel's MMX support, recall in my original post these lines:
 :: >
 :: > CLFAGS= ./configure --prefix=/usr --datadir=/usr/share/mplayer
 :: >        --confdir=/etc/mplayer --libdir=/usr/lib --enable-largefiles
 :: >        --disable-runtime-cpudetection --enable-mmx --enable-mmx2
 :: >        --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2
 :: >        --enable-fastmemcpy --enable-freetype --disable-sighandler
 :: >        --enable-gui --enable-i18n --language=en --enable-linux-devfs
 :: >        --disable-mpdvdkit --enable-lirc --enable-tv --enable-tv-v4l
 :: >        --enable-joystick --enable-gl --disable-svga --disable-dvb
 :: >        --enable-mga --enable-xmga --enable-fbdev --disable-directfb
 :: >        --disable-dvdnav --enable-mencoder --enable-shared-pp
 :: >        --with-extraincdir=./libvo --with-x11incdir=/usr/X11R6/include
 :: >        --with-xanimlibdir=/usr/X11R6/lib/xanim/mods
 :: >        --with-reallibdir=/usr/lib/RealPlayer8/Codecs
 :: >        --with-win32libdir=/usr/lib/win32
 :: > Detected operating system: Linux
 :: > Detected host architecture: i386
 :: > Checking for gcc version ... 3.2, ok
 :: > Checking for CPU vendor ... AuthenticAMD (6:6:2)
 :: > Checking for CPU type ...  AMD Athlon(tm) MP 1500+
 :: > Checking for GCC & CPU optimization abilities ... athlon-xp
 :: > Checking for kernel support of mmx ... yes
 :: > Checking for kernel support of mmx2 ... yes
 :: > Checking for kernel support of 3dnow ... yes
 :: > Checking for kernel support of 3dnowex ... yes
 :: > Checking for kernel support of sse ... yes
 :: > Checking for mtrr support ... yes
 :: > Checking for assembler (as 2.12.90.0.15) ... ok
 :: > <snip>




More information about the MPlayer-users mailing list