S
S
StynuBlizz2017-06-14 06:07:05
Nginx
StynuBlizz, 2017-06-14 06:07:05

Error connecting nginx-rtmp-module, how to fix?

Error while executing make command

/home/max/build/nginx-rtmp-module/ngx_rtmp_stat_module.c: In function ‘ngx_rtmp_stat_handler’:
/home/max/build/nginx-rtmp-module/ngx_rtmp_stat_module.c:771:67: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
     NGX_RTMP_STAT_L("<built>" __DATE__ " " __TIME__ "</built>\r\n");
                                                                   ^
/home/max/build/nginx-rtmp-module/ngx_rtmp_stat_module.c:771:67: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: all warnings being treated as errors
objs/Makefile:1689: ошибка выполнения рецепта для цели «objs/addon/nginx-rtmp-module/ngx_rtmp_stat_module.o»
make[1]: *** [objs/addon/nginx-rtmp-module/ngx_rtmp_stat_module.o] Ошибка 1
make[1]: выход из каталога «/home/max/build/nginx-1.12.0»
Makefile:8: ошибка выполнения рецепта для цели «build»
make: *** [build] Ошибка 2

What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Larionov, 2018-08-11
@Lantonl

Need to remove -Wdate-time from the -with-cc-opt section
Answer taken from here: https://github.com/arut/nginx-rtmp-module/issues/1235

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question