gnolizuh / BLSS

NGINX-based Live Media Streaming Server
Other
197 stars 73 forks source link

Build error nginx 1.15.6, Debian 9, GCC 6.3 #116

Open ragnos opened 5 years ago

ragnos commented 5 years ago

Build fails hard during make.

Debian 9.6 gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) nginx 1.15.6 Latest module version from git

$ make
make -f objs/Makefile
make[1]: Verzeichnis „/home/stream/blss/build/nginx-1.15.6“ wird betreten
*truncated*
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../BLSS -I objs -I src/http -I src/http/modules \
        -o objs/addon/BLSS/ngx_rtmp.o \
        ../BLSS/ngx_rtmp.c
../BLSS/ngx_rtmp.c: In function ‘ngx_rtmp_init_listening’:
../BLSS/ngx_rtmp.c:1251:33: error: passing argument 1 of ‘ngx_clone_listening’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         if (ngx_clone_listening(cf, ls) != NGX_OK) {
                                 ^~
In file included from src/core/ngx_core.h:90:0,
                 from ../BLSS/ngx_rtmp.c:9:
src/core/ngx_connection.h:213:11: note: expected ‘ngx_cycle_t * {aka struct ngx_cycle_s *}’ but argument is of type ‘ngx_conf_t * {aka struct ngx_conf_s *}’
 ngx_int_t ngx_clone_listening(ngx_cycle_t *cycle, ngx_listening_t *ls);
           ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
objs/Makefile:1296: die Regel für Ziel „objs/addon/BLSS/ngx_rtmp.o“ scheiterte
make[1]: *** [objs/addon/BLSS/ngx_rtmp.o] Fehler 1
make[1]: Verzeichnis „/home/stream/blss/build/nginx-1.15.6“ wird verlassen
Makefile:8: die Regel für Ziel „build“ scheiterte
make: *** [build] Fehler 2
HeyJupiter commented 5 years ago

I got the same error when compiled with nginx-1.15.2!