nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

Getting error on make command Ubuntu 18.04

Open meverikxp opened this issue 6 years ago • 16 comments

Hi, Trying to install nginx-rtmp-module and I getting same issue on serveral ubuntu versions sudo make make -f objs/Makefile make[1]: Entering directory '/home/alek/build/nginx-1.12.0' 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 \ -o objs/src/core/nginx.o \ src/core/nginx.c 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 \ -o objs/src/core/ngx_log.o \ src/core/ngx_log.c 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 \ -o objs/src/core/ngx_palloc.o \ src/core/ngx_palloc.c 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 \ -o objs/src/core/ngx_array.o \ src/core/ngx_array.c 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 \ -o objs/src/core/ngx_list.o \ src/core/ngx_list.c 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 \ -o objs/src/core/ngx_hash.o \ src/core/ngx_hash.c 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 \ -o objs/src/core/ngx_buf.o \ src/core/ngx_buf.c 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 \ -o objs/src/core/ngx_queue.o \ src/core/ngx_queue.c 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 \ -o objs/src/core/ngx_output_chain.o \ src/core/ngx_output_chain.c 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 \ -o objs/src/core/ngx_string.o \ src/core/ngx_string.c 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 \ -o objs/src/core/ngx_parse.o \ src/core/ngx_parse.c 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 \ -o objs/src/core/ngx_parse_time.o \ src/core/ngx_parse_time.c 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 \ -o objs/src/core/ngx_inet.o \ src/core/ngx_inet.c 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 \ -o objs/src/core/ngx_file.o \ src/core/ngx_file.c 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 \ -o objs/src/core/ngx_crc32.o \ src/core/ngx_crc32.c 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 \ -o objs/src/core/ngx_murmurhash.o \ src/core/ngx_murmurhash.c src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’: src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=] h ^= data[2] << 16; ~~^~~~~~~~~~~~~~~~ src/core/ngx_murmurhash.c:38:5: note: here case 2: ^~~~ src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=] h ^= data[1] << 8; ~~^~~~~~~~~~~~~~~ src/core/ngx_murmurhash.c:40:5: note: here case 1: ^~~~ cc1: all warnings being treated as errors objs/Makefile:543: recipe for target 'objs/src/core/ngx_murmurhash.o' failed make[1]: *** [objs/src/core/ngx_murmurhash.o] Error 1 make[1]: Leaving directory '/home/alek/build/nginx-1.12.0' Makefile:8: recipe for target 'build' failed make: *** [build] Error 2

Can you help me with it? Thank you!

meverikxp avatar Apr 27 '18 07:04 meverikxp

@meverikxp apply this patch, should make it build again

diff -Nur a/ngx_rtmp_eval.c b/ngx_rtmp_eval.c
--- a/ngx_rtmp_eval.c	2018-06-02 19:23:28.993466673 +0200
+++ b/ngx_rtmp_eval.c	2018-06-02 19:23:26.532371311 +0200
@@ -166,6 +166,7 @@
                         state = ESCAPE;
                         continue;
                 }
+				 /* fall through */
 
             case ESCAPE:
                 ngx_rtmp_eval_append(&b, &c, 1, log);

DeadSix27 avatar Jun 02 '18 17:06 DeadSix27

In Ubuntu 18.04 you only need to install nginx as you would normally do (apt install nginx-full) and afterwards just do apt install libnginx-mod-rtmp. The only thing you need to do then is edit the config files and edit the RTMP part and the locations and such.

ustoopia avatar Jun 14 '18 06:06 ustoopia

use nginx-1.13.8.tar.gz

gdomod avatar Jun 25 '18 08:06 gdomod

so we can't build Nginx from source on Ubuntu 18.04? any tutorial about how to build Nginx with Modules? thanks

Alirezaies avatar Sep 16 '18 08:09 Alirezaies

@meverikxp apply this patch, should make it build again

diff -Nur a/ngx_rtmp_eval.c b/ngx_rtmp_eval.c
--- a/ngx_rtmp_eval.c	2018-06-02 19:23:28.993466673 +0200
+++ b/ngx_rtmp_eval.c	2018-06-02 19:23:26.532371311 +0200
@@ -166,6 +166,7 @@
                         state = ESCAPE;
                         continue;
                 }
+				 /* fall through */
 
             case ESCAPE:
                 ngx_rtmp_eval_append(&b, &c, 1, log);

THIS WORKS THANKS

aminhusni avatar Mar 08 '19 17:03 aminhusni

Works fine with nginx 1.14.2

flouthoc avatar Apr 07 '19 05:04 flouthoc

Works fine with nginx 1.14.2

@flouthoc me too 👍

nashirox avatar Apr 15 '19 05:04 nashirox

In Ubuntu 18.04 you only need to install nginx as you would normally do (apt install nginx-full) and afterwards just do apt install libnginx-mod-rtmp. The only thing you need to do then is edit the config files and edit the RTMP part and the locations and such.

where can I find the configuration file? any hint?

KevinZhanggg avatar Mar 05 '21 18:03 KevinZhanggg

/etc/nginx/nginx.conf

From: KevinZhanggg [email protected] Sent: vrijdag 5 maart 2021 19:49 To: arut/nginx-rtmp-module [email protected] Cc: ustoopia [email protected]; Comment [email protected] Subject: Re: [arut/nginx-rtmp-module] Getting error on make command Ubuntu 18.04 (#1255)

In Ubuntu 18.04 you only need to install nginx as you would normally do (apt install nginx-full) and afterwards just do apt install libnginx-mod-rtmp. The only thing you need to do then is edit the config files and edit the RTMP part and the locations and such.

where can I find the configuration file? any hint?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arut/nginx-rtmp-module/issues/1255#issuecomment-791611712 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZM6CLYGBY52IADV7WER6DTCERSHANCNFSM4E5HXCYQ . https://github.com/notifications/beacon/AGZM6CPFAQXFGXOGOHOFIODTCERSHA5CNFSM4E5HXCY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4XQSQA.gif

ustoopia avatar Mar 05 '21 18:03 ustoopia

/etc/nginx/nginx.conf From: KevinZhanggg [email protected] Sent: vrijdag 5 maart 2021 19:49 To: arut/nginx-rtmp-module [email protected] Cc: ustoopia [email protected]; Comment [email protected] Subject: Re: [arut/nginx-rtmp-module] Getting error on make command Ubuntu 18.04 (#1255) In Ubuntu 18.04 you only need to install nginx as you would normally do (apt install nginx-full) and afterwards just do apt install libnginx-mod-rtmp. The only thing you need to do then is edit the config files and edit the RTMP part and the locations and such. where can I find the configuration file? any hint? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1255 (comment)> , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZM6CLYGBY52IADV7WER6DTCERSHANCNFSM4E5HXCYQ . https://github.com/notifications/beacon/AGZM6CPFAQXFGXOGOHOFIODTCERSHA5CNFSM4E5HXCY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4XQSQA.gif

Thanks for your quick reply. For location info what I should put there ?

KevinZhanggg avatar Mar 05 '21 18:03 KevinZhanggg

I’m not sure what you’re asking. Location info??

ustoopia avatar Mar 05 '21 19:03 ustoopia

I’m not sure what you’re asking. Location info??

Oh. Sorry for confusing you. You said need to edit the config file and RTMP part and locations and such. I am asking what locations I should put there. Thanks !

KevinZhanggg avatar Mar 05 '21 21:03 KevinZhanggg

Locations like where HLS stores its temporary files or where recorded files will be stored.

ustoopia avatar Mar 06 '21 20:03 ustoopia

Try the latest version nginx-1.15.12.tar.gz

DonOndeje avatar Sep 13 '22 17:09 DonOndeje

Hello how are you? I am trying to install nginx streaming, however I get an error when I run make for this file.

$unzip master.zip $cd nginx-1.8.0 ./configure --add-module=../nginx-rtmp-module-master $make

After executing make, I get this command line:

root@sb-hpdesk-mxl5y0-p2:/home/estaciones/nginx-1.8.0# sudo make make -f objs/Makefile make[1]: se entra en el directorio '/home/estaciones/nginx-1.8.0' cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g -I../nginx-rtmp-module-master -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs
-o objs/src/core/ngx_murmurhash.o
src/core/ngx_murmurhash.c src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’: src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=] 37 | h ^= data[2] << 16; | ~~^~~~~~~~~~~~~~~~ src/core/ngx_murmurhash.c:38:5: note: here 38 | case 2: | ^~~~ src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=] 39 | h ^= data[1] << 8; | ~~^~~~~~~~~~~~~~~ src/core/ngx_murmurhash.c:40:5: note: here 40 | case 1: | ^~~~ cc1: all warnings being treated as errors make[1]: *** [objs/Makefile:507: objs/src/core/ngx_murmurhash.o] Error 1 make[1]: se sale del directorio '/home/estaciones/nginx-1.8.0' make: *** [Makefile:8: build] Error 2

Could you help me or give me some idea, please, I appreciate it.

I am trying to install nginx streaming.

Thank you

estt666 avatar Jan 10 '23 20:01 estt666

我想要给nginx从源码加nginx-http-flv-module-master模块,遇上了src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’: src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=] 37 | h ^= data[2] << 16; | ~~^~~~~~~~~~~~~~~~ src/core/ngx_murmurhash.c:38:5: note: here 38 | case 2: | ^~~~ src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=] 39 | h ^= data[1] << 8; | ~~^~~~~~~~~~~~~~~ src/core/ngx_murmurhash.c:40:5: note: here 40 | case 1: | ^~~~ cc1: all warnings being treated as errors make[1]: *** [objs/Makefile:544:objs/src/core/ngx_murmurhash.o] 错误 1 make[1]: 离开目录“/home/china/nginx-1.9.11” make: *** [Makefile:8:build] 错误 2

怎么办啊?

Kkmdfuck avatar Dec 19 '23 07:12 Kkmdfuck