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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Dec 31 16:59:59 CET 2010


On Fri, Dec 31, 2010 at 01:52:40PM +0100, Raimund Steger wrote:
> [...]
> CC      libxvidff.o
> libxvidff.c: In function 'ff_tempfile':
> libxvidff.c:101:35: error: 'O_BINARY' undeclared (first use in this 
> function)
> libxvidff.c:101:35: note: each undeclared identifier is reported only 
> once for each function it appears in
> make[1]: *** [libxvidff.o] Error 1
> make[1]: Leaving directory 
> `/home/rs/src/mplayer-export-2010-12-31/ffmpeg/libavcodec'
> make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
> 
> 
> It seems that unlike in e. g. ffmpeg/libavformat/file.c, there is no 
> check in the source whether O_BINARY actually is available.

I think O_BINARY is supposed to be defined always within FFmpeg, at
least I think there is some header that defines it if it is not already
available.

> (I replaced the /bin/sh shebang with /bin/bash in ./configure and 
> ./version.sh, as is necessary under Solaris, I hope it doesn't impair my 
> eligibility to report this.)

Switching your Solaris setup to be POSIX-compatible (in particular using
a POSIX-compatible shell as /bin/sh) sure would be preferred, but I
guess it should not matter for this (as long as you adjusted your path so
that POSIX variants of all other programs are used).


More information about the MPlayer-users mailing list