Getting PIC to work with mplayer
Reported by: |
webmaster@… |
Owned by: |
alex@… |
Priority:
|
normal
|
Component:
|
core
|
Version:
|
1.0pre5
|
Severity:
|
normal
|
Keywords:
|
|
Cc:
|
basic@…
|
Blocked By:
|
|
Blocking:
|
|
Reproduced by developer:
|
no
|
Analyzed by developer:
|
no
|
There's a couple of issues with mplayer and PIC. First is:
719:#if defined ARCH_X86 && !defined PIC
of libavcodecs/msmpeg4.c
I believe someone mentioned it was PIC and not PIC. Another workaround was
to add -DPIC to the CFLAGS for the makefile. That worked.
Then I ran into this:
imdct.c: In function `imdct_do_512_sse':
imdct.c:937: warning: use of memory input without lvalue in asm operand 1 is
deprecated
imdct.c:937: warning: use of memory input without lvalue in asm operand 2 is
deprecated
imdct.c:784: error: can't find a register in class BREG' while reloading
asm'
make[1]: * [imdct.o] Error 1
my first thought was "Ok, disable sse and sse2, and that should work". I also
disabled mmx, because there was a couple of vf_ source files with mmx code that
were messing with the ebx register (what PIC uses). So I did:
./configure --prefix=/usr --disable-mmx --disable-mmx2 --disable-sse
--disable-sse2
I still get the same error as before. So, if this is sse code, shouldn't
--disable-sse and --disable-sse2 cause it to not compile? Apparently it
didn't, so I'm stuck here.
A version would help.