-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Disable -Werror for http parser. #1065
Comments
You should change the source code: the file change
to
|
Dup for #1159. |
I had the configure failed when compile on Ubuntu Studio 18.04, with line # 2095 of "http-parser-2.1/http_parser.c" where the comment was FALLTROUGH and not FALLTHROUGH, note the first "H" is missing. For the user that may not know how to update the source in the zip file, the following commands show how I did it and verified it working: cd ~ && git clone https://github.com/ossrs/srs && cd srs/trunk ===> configure FAILS -- update http-parser source zip file mkdir temp ===> back to srs/trunk folder to configure and make cd ../.. ===> test ./objs/srs -c conf/srs.conf |
With the help of the original poster, I will also share my setup situation (Ubuntu 18.04): deploy@ubuntu:~/SRS/srs-2.0-r4/trunk$ ./configure --full && make regenerate config: --prefix=/usr/local/srs --with-hls --with-hds --with-dvr --with-nginx --with-ssl --with-ffmpeg --with-transcode --with-ingest --with-stat --with-http-callback --with-http-server --with-stream-caster --with-http-api --with-librtmp --with-research --with-utest --without-gperf --without-gmc --without-gmp --without-gcp --without-gprof --without-arm-ubuntu12 --without-mips-ubuntu12 --log-trace check gcc/g++/gdb/make depends tools are ok Ubuntu detected, install tools if needed install libtool Reading package lists... Done Analyzing dependency tree for packages Reading status information... Done libtool is already the newest version (2.4.6-2). 0 upgraded, 0 newly installed, 0 to remove, and 0 not upgraded. W: --force-yes is deprecated, use options starting with --allow instead. install libtool success Ubuntu install tools success SED is sed_utility st-1.9t is ok. build http-parser-2.1 patching file Makefile cc -I. -DHTTP_PARSER_STRICT=1 -Wall -Wextra -Werror -O0 -g -c http_parser.c **http_parser.c:** In function '**http_parser_parse_url**': http_parser.c:2093:18: error: this statement may fall through [-Werror=implicit-fallthrough=] found_at = 1; ~~~~~~~~~^~~ http_parser.c:2096:7: note: here case s_req_server: ^~~~ cc1: all warnings being treated as errors Makefile:40: recipe for target 'http_parser.o' failed make: *** [http_parser.o] Error 1 build http-parser-2.1 failed, ret=2 deploy@ubuntu:~/SRS/srs-2.0-r4/trunk$
|
-Werror
for http parser.
-Werror
for http parser.
We don't need the |
SRS3 has no problem. We don't plan to solve the compilation issue in SRS2, so everyone needs to handle it themselves.
|
Then remember to release the new version as soon as possible! @winlinvip
|
SRS3没有问题。SRS2不打算解决编译问题了,需要大家自己处理下。 Translation: There is no problem with SRS3. SRS2 does not intend to solve the compilation problem, you need to handle it yourself.
|
Fixed by a554dd8 in 2.0.263 |
Looks like many similiar errors: 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:429: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
|
|
For each configuration compilation of ngnix,
|
I did all the process on a virtual machine, opened test ports and the ports are open, but when I connect to the server, it gives me this error.Failed to connectFailed to connect to Server The connection timed out. Make sure you have set up a valid broadcast service and no firewall is blocking the connection.OK
|
How do I install it on a VPS?
|
build srs1.0relese met this error. I solved it by : then, |
I am getting this error when installing on ubuntu 17.10.
build http-parser-2.1
patching file Makefile
cc -I. -DHTTP_PARSER_STRICT=1 -Wall -Wextra -Werror -O0 -g -c http_parser.c
http_parser.c: In function ‘http_parser_parse_url’:'
This line is already in English and does not require translation.
http_parser.c:2093:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
found_at = 1;
~~~~~~~~~^~~
http_parser.c:2096:7: note: here
case s_req_server:
^~~~
cc1: all warnings being treated as errors
Makefile:40: recipe for target 'http_parser.o' failed
make: *** [http_parser.o] Error 1
build http-parser-2.1 failed, ret=2
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: