-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx-rtmp-module install error #1569
Comments
I believe this is due to the version of GCC you are using to compile the project with, that and the fact that the project hasn't been touched in a few years. During the |
It's resolved. Thanks for your help. |
I am having a similar issue with building Nginx on Centos 7 with the RTMP module; root@localhost nginx-1.18.0]# make I'm not well versed in all things Linux related so I'm not sure how to add the --with-cc-opt="-Wno-error=implicit-fallthrough" flag for the ./auto/configure step as suggested in the comment above. Please advise. Thanks. |
I got the error when running the make install for nginx-rtmp-module. please let me know how to fix it.
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 ../nginx-rtmp-module -I objs -I src/http -I src/http/modules
-o objs/addon/nginx-rtmp-module/ngx_rtmp_eval.o
../nginx-rtmp-module/ngx_rtmp_eval.c
../nginx-rtmp-module/ngx_rtmp_eval.c: In function ‘ngx_rtmp_eval’:
../nginx-rtmp-module/ngx_rtmp_eval.c:160:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
160 | switch (c) {
| ^~~~~~
../nginx-rtmp-module/ngx_rtmp_eval.c:170:13: note: here
170 | case ESCAPE:
| ^~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1358: objs/addon/nginx-rtmp-module/ngx_rtmp_eval.o] Error 1
make[1]: Leaving directory '/home/thor/build/nginx-1.18.0'
make: *** [Makefile:8: build] Error 2
The text was updated successfully, but these errors were encountered: