gnolizuh / BLSS

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

Ubuntu build failed #100

Closed chetandhembre closed 6 years ago

chetandhembre commented 6 years ago

I am using Ubuntu 14.04 while building nginx source using BLSS module I am getting following error

../BLSS/ngx_rtmp.c: In function ‘ngx_rtmp_add_listen’:
../BLSS/ngx_rtmp.c:629:25: error: ‘ssl’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         addr[i].opt.ssl = ssl;
                         ^
../BLSS/ngx_rtmp.c:545:28: note: ‘ssl’ was declared here
     ngx_uint_t             ssl;
                            ^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/BLSS/ngx_rtmp.o] Error 1
make[1]: Leaving directory `/root/nginx/nginx-1.12.0'
make: *** [build] Error 2

what I am doing wrong here?

gnolizuh commented 6 years ago

It's a semantic error, ssl is uninitialize when NGX_HTTP_SSL macro be defined.

I have fixed this problem, pls update code and try it again. thanks.

chetandhembre commented 6 years ago

thanks