[MPlayer-dev-eng] [PATCH] Compile mplayer on glibc-2.0

Sascha Sommer saschasommer at freenet.de
Wed Sep 15 18:34:28 CEST 2004


On Monday 02 August 2004 14:53, Mikulas Patocka wrote:
> Hi
>
> This patch enables to compile mplayer on glibc-2.0 Linux.
>
> Fixes:
> - uint32_t is not the same as unsigned --- function prototype contained
> unsigned and function definition uint32_t

applied this

> - glibc-2.0 doesn't have modify_ldt function. Declare it with _syscall3
> macro

No idea. What about uclibc? Afair some people were able to compile MPlayer 
with it.

> - stdout and stderr are macros --- you can't assign to them. Assignment
> doesn't make sense anyway, because freopen will always return the same FILE
> * structure that it got in parameter.

I wonder what is the sence of this reopen anyway?

> - off_t is 32-bit, so you can't shift it by 32. Shift by 31 and 1 fixes
> the problem.

With --enable-largefiles it is 64 bit here. Your fix is imho no solution.
Someone knowing this code should fix it.

Sascha




More information about the MPlayer-dev-eng mailing list