[MPlayer-cvslog] r27240 - trunk/configure

Baptiste Coudurier baptiste.coudurier at smartjog.com
Wed Jul 16 06:29:08 CEST 2008


Hi,

Michael Niedermayer wrote:
> On Tue, Jul 15, 2008 at 12:35:28PM +0200, Dominik 'Rathann' Mierzejewski wrote:
>> On Tuesday, 15 July 2008 at 00:35, Michael Niedermayer wrote:
>> [...]
>>>> On Mon, 2008-07-14 at 22:58 +0200, Michael Niedermayer wrote:
>> [...]
>>>>> ffmpeg compiles fine and passes the regression tests if i add
>>>>>
>>>>> -std=c99 -fasm -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112L
>> [...]
>>> -std=c99 -fasm -fms-extensions -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112L -Dlinux
>>>
>>> IS enough to compile mplayer here
>> [...]
>>
>> Out of curiosity, why is -D_BSD_SOURCE necessary for both MPlayer and FFmpeg?
> 
> ffserver.c: In function ‘extract_rates’:
> ffserver.c:1004: warning: implicit declaration of function ‘strncasecmp’
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It seems strncasecmp is POSIX 2001 (according to opengroup.org) in
<strings.h>, not in <string.h>

> [...]
>
> ffserver.c: In function ‘main’:
> ffserver.c:4475: error: ‘SA_RESTART’ undeclared (first use in this function)
> ffserver.c:4475: error: (Each undeclared identifier is reported only once
> ffserver.c:4475: error: for each function it appears in.)
> make: *** [ffserver.o] Error 1
> 
> the underlines as well as the error

Not sure about this, related to sigaction, and it seems to be an XSI
extension, defined in POSIX 2001. I don't know why gcc fails.

> libavformat/rtpproto.c: In function ‘rtp_read’:
> libavformat/rtpproto.c:191: error: ‘fd_set’ undeclared (first use in this function)
> libavformat/rtpproto.c:191: error: (Each undeclared identifier is reported only once
> libavformat/rtpproto.c:191: error: for each function it appears in.)
> libavformat/rtpproto.c:191: error: expected ‘;’ before ‘rfds’

POSIX 2001:
The <sys/select.h> header shall define the fd_set type as a structure.

It is under _XOPEN_SOURCE in <sys/select.h> here (debian unstable gcc
4.3) though.

[...]

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA



More information about the MPlayer-cvslog mailing list