[FFmpeg-trac] #4075(avutil:new): libavutil time_interal gmtime_r, localtime_3 fail compiling on Windows
FFmpeg
trac at avcodec.org
Mon Nov 3 14:00:17 CET 2014
#4075: libavutil time_interal gmtime_r, localtime_3 fail compiling on Windows
-------------------------------------+-------------------------------------
Reporter: Selur | Type: defect
Status: new | Priority: normal
Component: avutil | Version: git-
Keywords: gmtime | master
localtime windows compile | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Compiling the latest version with https://github.com/jb-alvarado/media-
autobuild_suite I get the following:
{{{
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)
^
CC libavformat/mms.o
CC libavformat/mmsh.o
common.mak:49: recipe for target 'libavformat/matroskadec.o' failed
make: *** [libavformat/matroskadec.o] Error 1
make: *** Waiting for unfinished jobs....
CC libavformat/mmst.o
CC ffmpeg.o
ffmpeg.c: In function 'write_frame':
ffmpeg.c:629:9: warning: 'destruct' is deprecated (declared at
./libavcodec/avcodec.h:1170)
[-Wdeprecated-declarations]
if(a == 0 && new_pkt.data != pkt->data && new_pkt.destruct) {
^
ffmpeg.c: In function 'decode_video':
ffmpeg.c:1899:13: warning: 'av_log_ask_for_sample' is deprecated (declared
at ./libavcodec/a
vcodec.h:5144) [-Wdeprecated-declarations]
av_log_ask_for_sample(
^
ffmpeg.c: At top level:
ffmpeg.c:158:13: warning: 'free_input_threads' declared 'static' but never
defined [-Wunused
-function]
static void free_input_threads(void);
^
AR libavdevice/libavdevice.a
AR libavfilter/libavfilter.a
CC libavformat/matroskadec.o
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: recipe for target 'libavformat/matroskadec.o' failed
make: *** [libavformat/matroskadec.o] Error 1
}}}
problem seems to happen since yesterday
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4075>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list