[MPlayer-users] Error building mplayer w/ Xvid on Solaris 10

Raimund Steger rs at mytum.de
Fri Dec 31 17:46:06 CET 2010


Hi,

Carl Eugen Hoyos wrote:
> Do you see the same problem when trying to compile FFmpeg?

FFmpeg works; I've checked the situation more thoroughly now, and indeed 
it seems that the relevant block in libxvidff.c shouldn't even be 
compiled under Solaris. But the check for mkstemp() fails in ./configure 
(not for FFmpeg, but for mplayer).

The relevant section in config.log:

[...]
============ Checking for mkstemp ============ 

#define _XOPEN_SOURCE 500
#include <stdlib.h> 
         int main(void) { mkstemp(""); return 0; }

gcc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith 
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes 
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99  -O4 -march=native -mtune=native -pipe -ffast-math 
-fomit-frame-pointer /tmp/mplayer-configure-23684-14097/tmp.c -I. 
-Iffmpeg -I/usr/local/dist/include  -lX11 -R/usr/local/dist/lib 
-L/usr/local/dist/lib -ffast-math -lkstat -lposix4   -o 
/tmp/mplayer-configure-23684-14097/tmp
In file included from /usr/include/iso/stdlib_iso.h:30:0,
                  from /usr/include/stdlib.h:18,
                  from /tmp/mplayer-configure-23684-14097/tmp.c:2: 
 
/export/dist/Solaris-x86/gcc-4.5.2/bin/../lib/gcc/i386-pc-solaris2.10/4.5.2/include-fixed/sys/feature_tests.h:341:2: 
error: #error "Compiler or options invalid for pre-UNIX 03 X/Open 
applications     and pre-2001 POSIX applications"


Result is: no
[...]

What bothers me a bit is the _XOPEN_SOURCE level that is requested here; 
for c99, I would assume 600 to be appropriate.

> (Note that you could pass --disable-xvid - or libxvid or whatever it's called -
> to disable compilation of the problematic file.)

That is true.

Raimund


More information about the MPlayer-users mailing list