Nginx-rtmp-module: Error from compilation with Nginx 1.12.2

Created on 20 Mar 2018  ·  2Comments  ·  Source: arut/nginx-rtmp-module

./configure --prefix=/usr/share/nginx \
            --sbin-path=/usr/sbin/nginx \
            --modules-path=/usr/lib/nginx/modules \
            --conf-path=/etc/nginx/nginx.conf \
            --error-log-path=/var/log/nginx/error.log \
            --http-log-path=/var/log/nginx/access.log \
            --pid-path=/run/nginx.pid \
            --lock-path=/var/lock/nginx.lock \
            --user=www-data \
            --group=www-data \
            --build=Ubuntu \
            --http-client-body-temp-path=/var/lib/nginx/body \
            --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
            --http-proxy-temp-path=/var/lib/nginx/proxy \
            --http-scgi-temp-path=/var/lib/nginx/scgi \
            --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
            --with-openssl=./openssl-1.1.0g \
            --with-openssl-opt=enable-ec_nistp_64_gcc_128 \
            --with-openssl-opt=no-nextprotoneg \
            --with-openssl-opt=no-weak-ssl-ciphers \
            --with-openssl-opt=no-ssl3 \
            --with-pcre=./pcre-8.41 \
            --with-pcre-jit \
            --with-zlib=./zlib-1.2.11 \
            --with-compat \
            --with-file-aio \
            --with-threads \
            --with-http_addition_module \
            --with-http_auth_request_module \
            --with-http_dav_module \
            --with-http_flv_module \
            --with-http_gunzip_module \
            --with-http_gzip_static_module \
            --with-http_mp4_module \
            --with-http_random_index_module \
            --with-http_realip_module \
            --with-http_slice_module \
            --with-http_ssl_module \
            --with-http_sub_module \
            --with-http_stub_status_module \
            --with-http_v2_module \
            --with-http_secure_link_module \
            --with-mail \
            --with-mail_ssl_module \
            --with-stream \
            --with-stream_realip_module \
            --with-stream_ssl_module \
            --with-stream_ssl_preread_module \
            --with-debug \
            --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \
            --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' \
        --add-module=./nginx-rtmp-module-master
    -o objs/addon/nginx-rtmp-module-master/ngx_rtmp_stat_module.o \
    ./nginx-rtmp-module-master/ngx_rtmp_stat_module.c
./nginx-rtmp-module-master/ngx_rtmp_stat_module.c: In function ‘ngx_rtmp_stat_handler’:
./nginx-rtmp-module-master/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");
                                                                   ^
./nginx-rtmp-module-master/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:2057: ошибка выполнения рецепта для цели «objs/addon/nginx-rtmp-module-master/ngx_rtmp_stat_module.o»
make[1]: *** [objs/addon/nginx-rtmp-module-master/ngx_rtmp_stat_module.o] Ошибка 1
make[1]: выход из каталога «/opt/nginx-1.12.2»
Makefile:8: ошибка выполнения рецепта для цели «build»
make: *** [build] Ошибка 2

Most helpful comment

Just remove the -Wdate-time from the -with-cc-opt

All 2 comments

Just remove the -Wdate-time from the -with-cc-opt

@xedsvg What changes if -Wdate-time removed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hennn picture hennn  ·  6Comments

SmokE-PGF picture SmokE-PGF  ·  6Comments

fishfree picture fishfree  ·  4Comments

sfmth picture sfmth  ·  6Comments

marcoeg picture marcoeg  ·  3Comments