rounce / nginx-hls-module

Smooth Streaming Module fork
Other
53 stars 36 forks source link

Build failed with spdy module #20

Open victordidenko opened 8 years ago

victordidenko commented 8 years ago
In file included from /usr/src/nginx-hls-module/src/ngx_http_streaming_module.c:14:0:
/usr/src/nginx-hls-module/src/output_ts.h:63:23: error: ‘crc32’ redeclared as different kind of symbol
 static uint32_t const crc32[256] = {
                       ^
In file included from src/http/ngx_http_spdy.h:15:0,
                 from src/http/ngx_http.h:42,
                 from /usr/src/nginx-hls-module/src/ngx_http_streaming_module.h:10,
                 from /usr/src/nginx-hls-module/src/ngx_http_streaming_module.c:7:
/usr/include/zlib.h:1600:23: note: previous declaration of ‘crc32’ was here
 ZEXTERN uLong ZEXPORT crc32   OF((uLong crc, const Bytef *buf, uInt len));
                       ^
victordidenko commented 8 years ago

After replacing crc32 with crc3232 build was successful

find ./nginx-hls-module/ -type f -exec sed -i "s/crc32/crc3232/g" {} \;