JuliaWeb / HttpParser.jl

Deprecated! Julia wrapper for joyent/http-parser
MIT License
13 stars 37 forks source link

Build error on Debian 9 w/ Julia 0.6.2 #83

Closed gwerbin closed 6 years ago

gwerbin commented 6 years ago
INFO: Building HttpParser
INFO: Attempting to create directory /home/freerange/.julia/v0.6/HttpParser/deps/downloads
INFO: Attempting to create directory /home/freerange/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/freerange/.julia/v0.6/HttpParser/deps/downloads already exists
INFO: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   123    0   123    0     0     21      0 --:--:--  0:00:05 --:--:--    29
100 55365  100 55365    0     0   4560      0  0:00:12  0:00:12 --:--:-- 14343
INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Attempting to create directory /home/freerange/.julia/v0.6/HttpParser/deps
INFO: Directory /home/freerange/.julia/v0.6/HttpParser/deps already exists
Archive:  /home/freerange/.julia/v0.6/HttpParser/deps/downloads/v2.7.1.zip
feae95a3a69f111bc1897b9048d9acbc290992f9
   creating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/.gitignore
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/.mailmap
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/.travis.yml
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/AUTHORS
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/LICENSE-MIT
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/Makefile
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/README.md
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/bench.c
   creating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/contrib/
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/contrib/parsertrace.c
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/contrib/url_parser.c
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/http_parser.c
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/http_parser.gyp
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/http_parser.h
  inflating: /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/test.c
INFO: Attempting to create directory /home/freerange/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Changing directory to /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing directory to /home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing directory to /home/freerange/.julia/v0.6/HttpParser/deps/src
INFO: Attempting to create directory /home/freerange/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/freerange/.julia/v0.6/HttpParser/deps/usr/lib already exists
INFO: Changing directory to /home/freerange/.julia/v0.6/HttpParser/deps/src
make: Entering directory '/home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1'
cc  -I. -DHTTP_PARSER_STRICT=0  -Wall -Wextra -Werror -O3  -fPIC -c http_parser.c -o libhttp_parser.o
http_parser.c: In function ‘http_parser_execute’:
http_parser.c:1817:31: error: this statement may fall through [-Werror=implicit-fallthrough=]
               parser->upgrade = 1;
               ~~~~~~~~~~~~~~~~^~~
http_parser.c:1819:13: note: here
             case 1:
             ^~~~
http_parser.c: In function ‘http_parser_parse_url’:
http_parser.c:2376:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
         found_at = 1;
         ~~~~~~~~~^~~
http_parser.c:2379:7: note: here
       case s_req_server:
       ^~~~
cc1: all warnings being treated as errors
Makefile:102: recipe for target 'libhttp_parser.o' failed
make: *** [libhttp_parser.o] Error 1
make: Leaving directory '/home/freerange/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
aviks commented 6 years ago

Dup of #75. Please see workaround there.