On Wed, Nov 5, 2014 at 1:00 PM, NAKAI Yuta <[email protected]> wrote:
>
>
> ________________________________
>> Date: Wed, 5 Nov 2014 09:48:00 +0000
>> From: [email protected]
>> To: [email protected]
>> CC: [email protected]
>> Subject: Re: [Msys2-users] ffmpeg-git
>>
>>
>>
>> On 5 Nov 2014 09:18, "Jon bae"
>> <[email protected]<mailto:[email protected]>> wrote:
>> >
>> > Hello everybody,
>> > have you at the moment problem to compile the newest ffmpeg-git Version?
>> >
>> > I get this error:
>> >
>> > In file included from ./libavutil/time_internal.h:22:0,
>> >                  from libavformat/matroskadec.c:49:
>> > ./libavutil/time_internal.h:26:26: error: expected identifier or '('
>> before '{' token
>> >  static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)
>> >                           ^
>> > ./libavutil/time_internal.h:37:26: error: expected identifier or '('
>> before '{' token
>> >  static inline struct tm *localtime_r(const time_t* clock, struct tm
>> *result)
>> >                           ^
>> > common.mak:49: die Regel für Ziel „libavformat/matroskadec.o“ scheiterte
>> > make: *** [libavformat/matroskadec.o] Fehler 1
>> >
>>
>> We moved gmtime_r and localtime_r from pthead.h to time.h as that's
>> closer to posix specs. Define _POSIX and/or include <time.h> in the
>> relevant stuff.
> This error occurs because *time_r are implemented as macros in mingw-w64, and 
> FFmpeg configure cannot detect that systems using mingw-w64 have 
> gmtime_r/localtime_r.
> I work around this issue by modifying FFmpeg configure so that it can detect 
> gmtime_r/localtime_r and adding -D_POSIX to cppflags.
> Honestly, I want mingw-w64 to reimplement them as functions.

Go ahead and submit a patch for that then. MinGW-w64 is open source
and welcomes contributions.

>
>
>>
>> > We have post it to the ffmpeg ticker, but maybe is also a mingw-w64
>> problem.
>> >
>> > Regards
>> >
>> > Jonathan
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Msys2-users mailing list
>> > [email protected]<mailto:[email protected]>
>> > https://lists.sourceforge.net/lists/listinfo/msys2-users
>> >
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________ Msys2-users mailing
>> list [email protected]
>> https://lists.sourceforge.net/lists/listinfo/msys2-users
>

------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to