Coder Social home page Coder Social logo

httpparser.jl's People

Contributors

andreasnoack avatar astrieanna avatar aviks avatar awbsmith avatar chuckha avatar despeset avatar fp4code avatar hayd avatar huckl3b3rry87 avatar iainnz avatar ihnorton avatar ivarne avatar jbn avatar keno avatar malmaud avatar mlubin avatar musm avatar quinnj avatar ranjanan avatar shashi avatar simondanisch avatar ssfrr avatar staticfloat avatar stefankarpinski avatar tkelman avatar westleyargentum avatar wildart avatar yuyichao avatar zachallaun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

httpparser.jl's Issues

Build error on Julia v0.5.2 (OS Sierra)

I'm trying to install HttpParser, required by Whippet.jl, on Julia v0.5.2 (v0.6.0 not yet supported by Whippet). I get this error when building:

INFO: Building HttpParser
INFO: Attempting to Create directory /Users/scnorton/.julia/v0.5/HttpParser/deps/downloads
INFO: Attempting to Create directory /Users/scnorton/.julia/v0.5/HttpParser/deps/downloads
INFO: Directory /Users/scnorton/.julia/v0.5/HttpParser/deps/downloads already created
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    321      0 --:--:-- --:--:-- --:--:--   321
100 55365  100 55365    0     0   118k      0 --:--:-- --:--:-- --:--:-- 6657k
INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Attempting to Create directory /Users/scnorton/.julia/v0.5/HttpParser/deps
INFO: Directory /Users/scnorton/.julia/v0.5/HttpParser/deps already created
Archive:  /Users/scnorton/.julia/v0.5/HttpParser/deps/downloads/v2.7.1.zip
feae95a3a69f111bc1897b9048d9acbc290992f9
   creating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/.gitignore  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/.mailmap  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/.travis.yml  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/AUTHORS  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/LICENSE-MIT  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/Makefile  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/README.md  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/bench.c  
   creating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/contrib/
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/contrib/parsertrace.c  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/contrib/url_parser.c  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/http_parser.c  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/http_parser.gyp  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/http_parser.h  
  inflating: /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/test.c  
INFO: Attempting to Create directory /Users/scnorton/.julia/v0.5/HttpParser/deps/usr/lib
INFO: Changing Directory to /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /Users/scnorton/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /Users/scnorton/.julia/v0.5/HttpParser/deps/src
INFO: Attempting to Create directory /Users/scnorton/.julia/v0.5/HttpParser/deps/usr/lib
INFO: Directory /Users/scnorton/.julia/v0.5/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /Users/scnorton/.julia/v0.5/HttpParser/deps/src
/usr/local/bin/gcc-7  -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
make: *** [libhttp_parser.o] Error 1
===========================================================================================================================================================================[ ERROR: HttpParser ]============================================================================================================================================================================

LoadError: failed process: Process(setenv(`make -j8 -C http-parser-2.7.1 library`,String["XPC_FLAGS=0x0","PATH=/Applications/Julia-0.5.app/Contents/Resources/julia/bin:/Applications/Julia-0.5.app/Contents/Resources/julia/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/TeX/texbin","CXX=/usr/local/bin/g++-7","PWD=/Users/scnorton/Whippet.jl","CPP=/usr/local/bin/cpp-7","XPC_SERVICE_NAME=0","TERM_PROGRAM=Apple_Terminal","CC=/usr/local/bin/gcc-7","DISPLAY=/private/tmp/com.apple.launchd.QL6e7N4ABk/org.macosforge.xquartz:0","SHELL=/bin/bash","__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0","DEVKITPRO=/Users/scnorton/devkitPro","SONAME=libhttp_parser.dylib","TMPDIR=/var/folders/sw/0_4y37tj71zfc4p7jn78h88m0000gn/T/","TK_LIBRARY=/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts","FONTCONFIG_PATH=/Applications/Julia-0.5.app/Contents/Resources/julia/etc/fonts","LANG=en_US.UTF-8","SHLVL=1","LOGNAME=scnorton","TERM_SESSION_ID=33A3716D-DAF2-415A-8C4B-3BB002EC2DAD","SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.5Kxb8IEmbW/Listeners","_=/usr/local/bin/julia","Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.QVO2KrCf37/Render","USER=scnorton","TERM=xterm-256color","HOME=/Users/scnorton","TERM_PROGRAM_VERSION=388.1","DEVKITARM=/Users/scnorton/devkitPro/devkitARM","LD=/usr/local/bin/gcc-7","OPENBLAS_MAIN_FREE=1"]), ProcessExited(2)) [2]
while loading /Users/scnorton/.julia/v0.5/HttpParser/deps/build.jl, in expression starting on line 71

============================================================================================================================================================================================================================================================================================================================================================================

==============================================================================================================================================================================[ BUILD ERRORS ]==============================================================================================================================================================================

WARNING: HttpParser had build errors.

 - packages with build errors remain installed in /Users/scnorton/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("HttpParser")`
 - build a single package by running its `deps/build.jl` script

============================================================================================================================================================================================================================================================================================================================================================================

The gcc-7 suite was poured from Homebrew. All Homebrew formulae are up to date except, explicitly, Julia itself.

Tagging a new version

The deprecation warnings have gotten crazy - I'm going to tag a new version unless anyone objects

Binaries for OS X

Would be nice if building this on OS X could just install binaries. Then on OSX, the entire web stack would have binaries for all dependencies.

incompatible http_parser lib

See JuliaWeb/HttpServer.jl#86 for a history of my problem. Long story short, I had cryptic errors which I eventually traced to HttpParser. They were apparently caused by an incompatibility of some sort between my system-installed libhttp_parser. I wonder... is there any way that we can either:

  • force usage of a local library, or
  • warn the user and print a helpful error message if an incompatible library is loaded.

I'm not handy enough with bindeps to say what the best option will be. Thanks.

Windows?

I was hoping to teach a class that uses HttpServer/HttpParser, but I realized that this won't work because it won't be able to build the http-parser lib.

Would putting a binary version of http-parser for Windows in the repository be acceptable?

It looks like HttpCommon depends on Calendar which also doesn't have a Windows binary I think so I'm still in trouble...

Build error on Debian 9 w/ Julia 0.6.2

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

invalid constant string

I'm trying to make this package compatible with the latest master, but running into issues. First line 109 has an invalid convert call now, but it seems like anything I try to change it to gives me:

Out [2]: ERROR: LoadError: HTTP Parser Exception: HPE_INVALID_CONSTANT(25):invalid constant string
while loading In[2], in expression starting on line 3

Looking at the C file header, it seems like it should be pretty straightforward, http_parser_execute is just expecting a const char *, yet I still see the error above. Any ideas? @Keno?

mac os : (HelloWorld) pkg> add [email protected] failure in Julia Version 1.0.2

julia> versioninfo()
Julia Version 1.0.2
Commit d789231e99 (2018-11-08 20:11 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
JULIA_HOME = /Applications/Julia-1.0.app/Contents/Resources/julia

julia> Pkg.status()
Project HelloWorld v0.1.0
Status ~/julia/HelloWorld/Project.toml
[682c06a0] JSON v0.19.0
[9a3f8284] Random

(HelloWorld) pkg> add [email protected]
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package HttpParser [38bc9a14]:
HttpParser [38bc9a14] log:
├─possible versions are: [0.0.1-0.0.13, 0.1.0-0.1.1, 0.2.0, 0.3.0-0.3.1, 0.4.0] or uninstalled
├─restricted to versions 0.4.0 by an explicit requirement, leaving only versions 0.4.0
└─restricted by julia compatibility requirements to versions: uninstalled — no versions left

please help me .

Not using system library

Hi, I have libhttp_parser.so in the LD_LIBRARY_PATH. Other packages (like MbedTLS) try to use the system library if exists, and then fall back to the compilation. This package alwasy tries to compile. Since I'm on NixOS, the file /sbin/ldconfig does not exists, and so the build fails and the package can't be installed

Pkg.add("HttpParser") gives ERROR: unknown package HttpParser

There's a good chance I'm just doing something wrong here and this error has nothing to do with HttpParser. However, other packages install fine, so I just wanted to flag it. I also had no luck when cloning the repository through Pkg.clone("https://github.com/JuliaWeb/HttpParser.jl").

julia> Pkg.add("HttpParser")
ERROR: unknown package HttpParser
 in wait at task.jl:51
 in sync_end at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib

julia> versioninfo()
Julia Version 0.3.6
Commit 0c24dca* (2015-02-17 22:12 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-3635QM CPU @ 2.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

HttpParser fails to build on Julia 0.6 / macOS High Sierra (10.13.4)

As you'll see in the output, I tried a couple times; here's the latest. Note that I'm running Julia as root.

julia> Pkg.build("HttpParser")
INFO: Building HttpParser
Info: Attempting to create directory /Users/me/.julia/v0.6/HttpParser/deps/downloads
Info: Directory /Users/me/.julia/v0.6/HttpParser/deps/downloads already exists
Info: Attempting to create directory /Users/me/.julia/v0.6/HttpParser/deps/downloads
Info: Directory /Users/me/.julia/v0.6/HttpParser/deps/downloads already exists
Info: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
Info: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
Info: Attempting to create directory /Users/me/.julia/v0.6/HttpParser/deps
Info: Directory /Users/me/.julia/v0.6/HttpParser/deps already exists
Info: Path /Users/me/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1 already exists
Info: Attempting to create directory /Users/me/.julia/v0.6/HttpParser/deps/usr/lib
Info: Directory /Users/me/.julia/v0.6/HttpParser/deps/usr/lib already exists
Info: Changing directory to /Users/me/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
Info: Changing directory to /Users/me/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
Info: Changing directory to /Users/me/.julia/v0.6/HttpParser/deps/src
Info: Attempting to create directory /Users/me/.julia/v0.6/HttpParser/deps/usr/lib
Info: Directory /Users/me/.julia/v0.6/HttpParser/deps/usr/lib already exists
Info: Changing directory to /Users/me/.julia/v0.6/HttpParser/deps/src
cc  -I. -DHTTP_PARSER_STRICT=0  -Wall -Wextra -Werror -O3  -fPIC -c http_parser.c -o libhttp_parser.o
In file included from http_parser.c:24:
./http_parser.h:231:3: error: unknown type name 'uint32_t'
  uint32_t nread;          /* # bytes read in various scenarios */
  ^
./http_parser.h:232:3: error: unknown type name 'uint64_t'
  uint64_t content_length; /* # bytes in body (0 if no Content-Length header) */
  ^
./http_parser.h:290:3: error: unknown type name 'uint16_t'
  uint16_t field_set;           /* Bitmask of (1 << UF_*) values */
  ^
./http_parser.h:291:3: error: unknown type name 'uint16_t'
  uint16_t port;                /* Converted UF_PORT string */
  ^
./http_parser.h:294:5: error: unknown type name 'uint16_t'
    uint16_t off;               /* Offset into buffer in which field starts */
    ^
./http_parser.h:295:5: error: unknown type name 'uint16_t'
    uint16_t len;               /* Length of run in buffer */
    ^
In file included from http_parser.c:28:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:110:
/usr/include/sys/resource.h:196:2: error: unknown type name 'uint8_t'
        uint8_t  ri_uuid[16];
        ^
/usr/include/sys/resource.h:197:2: error: unknown type name 'uint64_t'
        uint64_t ri_user_time;
        ^
/usr/include/sys/resource.h:198:2: error: unknown type name 'uint64_t'
        uint64_t ri_system_time;
        ^
/usr/include/sys/resource.h:199:2: error: unknown type name 'uint64_t'
        uint64_t ri_pkg_idle_wkups;
        ^
/usr/include/sys/resource.h:200:2: error: unknown type name 'uint64_t'
        uint64_t ri_interrupt_wkups;
        ^
/usr/include/sys/resource.h:201:2: error: unknown type name 'uint64_t'
        uint64_t ri_pageins;
        ^
/usr/include/sys/resource.h:202:2: error: unknown type name 'uint64_t'
        uint64_t ri_wired_size;
        ^
/usr/include/sys/resource.h:203:2: error: unknown type name 'uint64_t'
        uint64_t ri_resident_size;
        ^
/usr/include/sys/resource.h:204:2: error: unknown type name 'uint64_t'
        uint64_t ri_phys_footprint;
        ^
/usr/include/sys/resource.h:205:2: error: unknown type name 'uint64_t'
        uint64_t ri_proc_start_abstime;
        ^
/usr/include/sys/resource.h:206:2: error: unknown type name 'uint64_t'
        uint64_t ri_proc_exit_abstime;
        ^
/usr/include/sys/resource.h:210:2: error: unknown type name 'uint8_t'
        uint8_t  ri_uuid[16];
        ^
/usr/include/sys/resource.h:211:2: error: unknown type name 'uint64_t'
        uint64_t ri_user_time;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [libhttp_parser.o] Error 1
=============================[ ERROR: HttpParser ]==============================

LoadError: failed process: Process(setenv(`make -j8 -C http-parser-2.7.1 library`,String["PATH=/Applications/Julia-0.6.app/Contents/Resources/julia/bin:/Applications/Julia-0.6.app/Contents/Resources/julia/bin:/Users/me/anaconda3/bin:/Users/me/anaconda/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin", "USERNAME=root", "DISPLAY=/private/tmp/com.apple.launchd.ZJLVFaiHdS/org.macosforge.xquartz:0", "SUDO_GID=20", "SHELL=/bin/sh", "__CF_USER_TEXT_ENCODING=0x0:0:0", "SONAME=libhttp_parser.dylib", "TK_LIBRARY=/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts", "MAIL=/var/mail/root", "LANG=en_US.UTF-8", "FONTCONFIG_PATH=/Applications/Julia-0.6.app/Contents/Resources/julia/etc/fonts", "LOGNAME=root", "SUDO_USER=me", "SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.CW0nDxq1vZ/Listeners", "SUDO_UID=501", "SUDO_COMMAND=/Applications/Julia-0.6.app/Contents/Resources/julia/bin/julia", "USER=root", "TERM=xterm-256color", "HOME=/Users/me", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(2)) [2]
while loading /Users/me/.julia/v0.6/HttpParser/deps/build.jl, in expression starting on line 80

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: HttpParser had build errors.

 - packages with build errors remain installed in /Users/me/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("HttpParser")`
 - build a single package by running its `deps/build.jl` script

================================================================================

Unable to compile in Atom using Ubuntu 18.4

Part of the error-message i get is :
INFO: Precompiling module Atom. ERROR: LoadError: HttpParser not properly installed. Please run Pkg.build("HttpParser")

It also continues going on about how it failed to precompile httpserver, Mux, Blink and Atom.
When I try Pkg.build("HttpParser") i get this mess:
`julia> Pkg.build("HttpParser")
INFO: Building HttpParser
Info: Attempting to create directory /home/adrian/.julia/v0.6/HttpParser/deps/downloads
Info: Directory /home/adrian/.julia/v0.6/HttpParser/deps/downloads already exists
Info: Attempting to create directory /home/adrian/.julia/v0.6/HttpParser/deps/downloads
Info: Directory /home/adrian/.julia/v0.6/HttpParser/deps/downloads already exists
Info: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
Info: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
Info: Attempting to create directory /home/adrian/.julia/v0.6/HttpParser/deps
Info: Directory /home/adrian/.julia/v0.6/HttpParser/deps already exists
Info: Path /home/adrian/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1 already exists
Info: Attempting to create directory /home/adrian/.julia/v0.6/HttpParser/deps/usr/lib
Info: Directory /home/adrian/.julia/v0.6/HttpParser/deps/usr/lib already exists
Info: Changing directory to /home/adrian/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
Info: Changing directory to /home/adrian/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
Info: Changing directory to /home/adrian/.julia/v0.6/HttpParser/deps/src
Info: Attempting to create directory /home/adrian/.julia/v0.6/HttpParser/deps/usr/lib
Info: Directory /home/adrian/.julia/v0.6/HttpParser/deps/usr/lib already exists
Info: Changing directory to /home/adrian/.julia/v0.6/HttpParser/deps/src
=============================[ ERROR: HttpParser ]==============================

LoadError: could not spawn setenv(make -j8 -C http-parser-2.7.1 library,String["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", "TEXTDOMAIN=im-config", "DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path", "QT_ACCESSIBILITY=1", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "NODE_ENV=production", "XDG_SESSION_DESKTOP=ubuntu", "SSH_AGENT_PID=1800", "XDG_SESSION_TYPE=x11", "JULIA_EDITOR=atom -a", "LC_TIME=nb_NO.UTF-8", "USER=adrian", "LESSCLOSE=/usr/bin/lesspipe %s %s", "QT_IM_MODULE=xim", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg", "LC_NUMERIC=nb_NO.UTF-8", "LC_MEASUREMENT=nb_NO.UTF-8", "GNOME_SHELL_SESSION_MODE=ubuntu", "USERNAME=adrian", "GDMSESSION=ubuntu", "LC_TELEPHONE=nb_NO.UTF-8", "LESSOPEN=| /usr/bin/lesspipe %s", "CLUTTER_IM_MODULE=xim", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop", "SHELL=/bin/bash", "GJS_DEBUG_OUTPUT=stderr", "XDG_SEAT=seat0", "XAUTHORITY=/run/user/1000/gdm/Xauthority", "XDG_MENU_PREFIX=gnome-", "GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q", "GTK_MODULES=gail:atk-bridge", "GTK_IM_MODULE=ibus", "SESSION_MANAGER=local/Tardis:@/tmp/.ICE-unix/1706,unix/Tardis:/tmp/.ICE-unix/1706", "XMODIFIERS=@im=ibus", "HOME=/home/adrian", "TERM=xterm-256color", "COLORTERM=truecolor", "VTE_VERSION=5201", "NODE_PATH=/usr/share/atom/resources/app.asar/exports", "IM_CONFIG_PHASE=2", "XDG_CURRENT_DESKTOP=ubuntu:GNOME", "LANG=en_US.UTF-8", "SHLVL=1", "LOGNAME=adrian", "LC_MONETARY=nb_NO.UTF-8", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "XDG_RUNTIME_DIR=/run/user/1000", "DESKTOP_SESSION=ubuntu", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "LC_ADDRESS=nb_NO.UTF-8", "LC_PAPER=nb_NO.UTF-8", "_=/usr/bin/env", "GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1", "GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/1f778899_d26e_46ad_a535_335abf8eebd1", "JULIA_NUM_THREADS=2", "GNOME_TERMINAL_SERVICE=:1.108", "PWD=/home/adrian", "DISPLAY=:0", "GJS_DEBUG_TOPICS=JS ERROR;JS LOG", "SONAME=libhttp_parser.so", "XDG_VTNR=2", "MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path", "XDG_SESSION_ID=2", "LC_NAME=nb_NO.UTF-8", "TEXTDOMAINDIR=/usr/share/locale/", "LC_IDENTIFICATION=nb_NO.UTF-8", "ATOM_HOME=/home/adrian/.atom", "QT4_IM_MODULE=xim", "WINDOWPATH=2", "LS_COLORS=", "OPENBLAS_MAIN_FREE=1"]): no such file or directory (ENOENT)
while loading /home/adrian/.julia/v0.6/HttpParser/deps/build.jl, in expression starting on line 71

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: HttpParser had build errors.

  • packages with build errors remain installed in /home/adrian/.julia/v0.6
  • build the package(s) and all dependencies with Pkg.build("HttpParser")
  • build a single package by running its deps/build.jl script

================================================================================`

Error finding library

I built the library, got a libhttp_parser.so.2.1 file, copied to /usr/local/lib/libhttp_parser.so, but it can't find it (on Ubuntu 12)
Not sure whats up with that?

InexactError or OutOfMemory Error for on_body callback

Using Julia 0.4 nightly with LLVM 3.5 (nalimilan's Fedora nightlies) and LLVM 3.6.0 (compiled from source) on Fedora 21 x86_64. I get some test failures stemming from the on_body callback.

When instrumenting on_body as:

function on_body(parser, at, len)                                                                                                                                            
  @show at, len                                                                                                                                                              
  @show typeof(at), typeof(len)                                                                                                                                              
    r.data = string(r.data, bytestring(convert(Ptr{Uint8}, at)), int(len))                                                                                                   
    return 0                                                                                                                                                                 
end  

I get

julia test/runtests.jl
[ 0.4 dep warnings removed here ]
(at,len) = (Ptr{Int8} @0x00007f2852c1153e,0xffffffffffffffff)
(typeof(at),typeof(len)) = (Ptr{Int8},UInt64)
ERROR: LoadError: InexactError()
 in on_body at /root/.julia/v0.4/HttpParser/test/runtests.jl:95
while loading /root/.julia/v0.4/HttpParser/test/runtests.jl, in expression starting on line 131

It looks like there's some type of corruption occurring, but only with on_body. When using get from Requests.jl, I found that it almost seemed like the at and len arguments were swapped, and swapping them as:

    function on_body(parser, at, len)                                                                                                                                        
      oldat = at                                                                                                                                                             
       at = convert(Ptr{Uint8}, len)                                                                                                                                         
       len = convert(Csize_t, oldat)                                                                                                                                         
        r = pd(parser).current_response                                                                                                                                      
        @show at, len                                                                                                                                                        
        @show typeof(at), typeof(len)                                                                                                                                        
        r.data = string(r.data, bytestring(convert(Ptr{Uint8}, at), len))                                                                                                    
        return 0                                                                                                                                                             
    end     

seemed to make all the callbacks (namely headers) appear to work. ie:

julia> y = get("http://httpbin.org/get")
WARNING: [a,b,...] concatenation is deprecated; use [a;b;...] instead
 in depwarn at ./deprecated.jl:42
 in oldstyle_vcat_warning at ./abstractarray.jl:28
 in vect at ./abstractarray.jl:37
 in render at /root/.julia/v0.4/Requests/src/Requests.jl:23
 in open_stream at /root/.julia/v0.4/Requests/src/Requests.jl:232
 in open_stream at /root/.julia/v0.4/Requests/src/Requests.jl:215
 in do_request at /root/.julia/v0.4/Requests/src/Requests.jl:577
 in get at /root/.julia/v0.4/Requests/src/Requests.jl:591
 in get at /root/.julia/v0.4/Requests/src/Requests.jl:590
(at,len) = (Ptr{UInt8} @0x00007fd6cfdfc8f0,0x000000000000000a)
(typeof(at),typeof(len)) = (Ptr{UInt8},UInt64)
Response(200 OK, 10 Headers, 10 Bytes in Body)

julia> y.headers
Dict{AbstractString,AbstractString} with 10 entries:
  "current_header"   => ""
  "true"             => ""
  "http_major"       => "1"
  "Content-Type"     => "text/html; charset=utf-8"
  "Date"             => "Wed, 13 May 2015 16:08:57 GMT"
  "Content-Language" => "en"
  "http_minor"       => "1"
  "Keep-Alive"       => "1"
  "Server"           => "Julia/0.4.0-dev+4817"
  "status_code"      => "200"

julia> y.data
"P\x01\U9057f\0\0_\n"

Though the data still seems to be wrong.

Any thoughts?

WARNING: HttpParser had build errors

I am running fedora release 24 32bit.

When running Julia from Atom for the first time, I am receiving the following.

=============================[ ERROR: HttpParser ]==============================

LoadError: Provider BinDeps.BuildProcess failed to satisfy dependency libhttp_parser
while loading /root/.julia/v0.6/HttpParser/deps/build.jl, in expression starting on line 71

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: HttpParser had build errors.

 - packages with build errors remain installed in /root/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("HttpParser")`
 - build a single package by running its `deps/build.jl` script

================================================================================

Tag new release?

Master seems to be free of build dep warns. A new tagged version would make thePkg.add a lot better.

Windows install error

I'm getting this on master 0.4:

In  [2]: Pkg.build("HttpParser")
INFO: Building LibCURL
WARNING: split(x,y,l::Integer) is deprecated, use split($(Expr(:parameters, :(limit=l))),x,y) instead.
 in split at deprecated.jl:26
 in getcachedir at C:\Users\karbarcca\.julia\v0.4\WinRPM\src\WinRPM.jl:82
 in update at C:\Users\karbarcca\.julia\v0.4\WinRPM\src\WinRPM.jl:131
 in __init__ at C:\Users\karbarcca\.julia\v0.4\WinRPM\src\WinRPM.jl:42
INFO: Updating WinRPM package list
INFO: Downloading http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1//repodata/repomd.xml
INFO: Downloading http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1//repodata/repomd.xml
INFO: Building WinRPM
INFO: Downloading http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1//repodata/repomd.xml
INFO: Downloading http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1//repodata/repomd.xml
INFO: Building ICU
INFO: Building HttpParser
INFO: Attempting to Create directory C:\Users\karbarcca\.julia\v0.4\HttpParser\deps\downloads
INFO: Directory C:\Users\karbarcca\.julia\v0.4\HttpParser\deps\downloads already created
INFO: Downloading file https://dl.dropboxusercontent.com/u/19359560/libhttp_parser.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
=============================[ ERROR: HttpParser ]==============================

failed process: Process(`curl -o 'C:\Users\karbarcca\.julia\v0.4\HttpParser\deps\downloads\libhttp_parser.zip' -L https://dl.dropboxusercontent.com/u/19359560/libhttp_parser.zip`, ProcessExited(60)) [60]
while loading C:\Users\karbarcca\.julia\v0.4\HttpParser\deps\build.jl, in expression starting on line 42

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: HttpParser had build errors.

 - packages with build errors remain installed in C:\Users\karbarcca\.julia\v0.4
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

================================================================================

And this on 0.3

julia> using Requests
ERROR: invalid base 10 digit 'L' in "LL"
 in error at error.jl:21
 in parseint_nocheck at string.jl:1520
 in parseint_nocheck at string.jl:1548
 in int at string.jl:1559
 in include at boot.jl:245
 in include_from_node1 at loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at boot.jl:245
 in include_from_node1 at loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at boot.jl:245
 in include_from_node1 at loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at boot.jl:245
 in include_from_node1 at loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at boot.jl:245
 in include_from_node1 at loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
while loading C:\Users\karbarcca\.julia\v0.3\ICU\src\ICU.jl, in expression starting on line 59
while loading C:\Users\karbarcca\.julia\v0.3\Calendar\src\Calendar.jl, in expression starting on line 1
while loading C:\Users\karbarcca\.julia\v0.3\HttpCommon\src\HttpCommon.jl, in expression starting on line 3
while loading C:\Users\karbarcca\.julia\v0.3\HttpParser\src\HttpParser.jl, in expression starting on line 9
while loading C:\Users\karbarcca\.julia\v0.3\Requests\src\Requests.jl, in expression starting on line 6

http_parser.h:32:10: fatal error: 'sys/types.h' file not found

This happens when executing Pkg.build("Interact", "HttpParser") on Julia 0.5, mid 2012 Mac running 10.11.5:

INFO: Building Interact

INFO: Enabling widgetsnbextension

Enabling notebook extension jupyter-js-widgets/extension...

      - Validating: OK

INFO: ipywidgets version found: 5.2.2

INFO: A compatible version of ipywidgets was found. All good.

INFO: Building HttpParser

INFO: Attempting to Create directory /Users/Boryana/.julia/v0.5/HttpParser/deps/downloads

INFO: Directory /Users/Boryana/.julia/v0.5/HttpParser/deps/downloads already created

INFO: Attempting to Create directory /Users/Boryana/.julia/v0.5/HttpParser/deps/downloads

INFO: Directory /Users/Boryana/.julia/v0.5/HttpParser/deps/downloads already created

INFO: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip

INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip

INFO: Attempting to Create directory /Users/Boryana/.julia/v0.5/HttpParser/deps

INFO: Directory /Users/Boryana/.julia/v0.5/HttpParser/deps already created

INFO: Path /Users/Boryana/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1 already created

INFO: Attempting to Create directory /Users/Boryana/.julia/v0.5/HttpParser/deps/usr/lib

INFO: Directory /Users/Boryana/.julia/v0.5/HttpParser/deps/usr/lib already created

INFO: Changing Directory to /Users/Boryana/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1

INFO: Changing Directory to /Users/Boryana/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1

INFO: Changing Directory to /Users/Boryana/.julia/v0.5/HttpParser/deps/src

INFO: Attempting to Create directory /Users/Boryana/.julia/v0.5/HttpParser/deps/usr/lib

INFO: Directory /Users/Boryana/.julia/v0.5/HttpParser/deps/usr/lib already created

INFO: Changing Directory to /Users/Boryana/.julia/v0.5/HttpParser/deps/src

cc  -I. -DHTTP_PARSER_STRICT=0  -Wall -Wextra -Werror -O3  -fPIC -c http_parser.c -o libhttp_parser.o

In file included from http_parser.c:24:

./http_parser.h:32:10: fatal error: 'sys/types.h' file not found

#include <sys/types.h>

         ^

1 error generated.

make: *** [libhttp_parser.o] Error 1

==================================================================[ ERROR: HttpParser ]===================================================================

 

LoadError: failed process: Process(setenv(`make -j8 -C http-parser-2.7.1 library`,String["XPC_FLAGS=0x0","PATH=/Applications/Julia-0.5.app/Contents/Resources/julia/bin:/Users/Boryana/.julia/v0.5/Homebrew/deps/usr/bin:/Users/Boryana/.julia/v0.5/Homebrew/deps/usr/sbin:/Applications/Julia-0.5.app/Contents/Resources/julia/bin:/Applications/anaconda/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin","PWD=/Users/Boryana","DISPLAY=/private/tmp/com.apple.launchd.YJHzuuoZT9/org.macosforge.xquartz:0","XPC_SERVICE_NAME=0","TERM_PROGRAM=Apple_Terminal","SHELL=/bin/bash","__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0","SONAME=libhttp_parser.dylib","TMPDIR=/var/folders/fp/djgc9ypn0_9c9d0myll6p3ym0000gn/T/","TK_LIBRARY=/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts","HOMEBREW_CACHE=/Users/Boryana/Library/Caches/Homebrew.jl/","FONTCONFIG_PATH=/Applications/Julia-0.5.app/Contents/Resources/julia/etc/fonts","LANG=en_US.UTF-8","SHLVL=0","LOGNAME=Boryana","TERM_SESSION_ID=09EA8BA6-8B60-4FE3-896F-9D1C9106AB8B","SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.cBtKSYL3PY/Listeners","Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.w4bBjhP8KH/Render","USER=Boryana","SECURITYSESSIONID=186a7","HOMEBREW_NO_AUTO_UPDATE=1","TERM=xterm-256color","HOME=/Users/Boryana","TERM_PROGRAM_VERSION=361.1","OPENBLAS_MAIN_FREE=1","HOMEBREW_NO_ANALYTICS=1"]), ProcessExited(2)) [2]

while loading /Users/Boryana/.julia/v0.5/HttpParser/deps/build.jl, in expression starting on line 71

 

==========================================================================================================================================================

 

=====================================================================[ BUILD ERRORS ]=====================================================================

 

WARNING: HttpParser had build errors.

 

 - packages with build errors remain installed in /Users/Boryana/.julia/v0.5

 - build the package(s) and all dependencies with `Pkg.build("HttpParser")`

 - build a single package by running its `deps/build.jl` script

Are these missing dependencies?

Best,
Simon

Tests error: `ReadOnlyMemoryError()`

Just trying to run tests after installing the package locally:

julia> Pkg.test("HttpParser")
INFO: Testing HttpParser
ERROR: LoadError: ReadOnlyMemoryError()
while loading /home/gcielo/.julia/v0.4/HttpParser/test/runtests.jl, in expression starting on line 144
=================================================[ ERROR: HttpParser ]=================================================

failed process: Process(`/usr/bin/julia --check-bounds=yes --code-coverage=none --color=yes /home/gcielo/.julia/v0.4/HttpParser/test/runtests.jl`, ProcessExited(1)) [1]

=======================================================================================================================
ERROR: HttpParser had test errors
 in test at pkg/entry.jl:803
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

My operating system is Arch Linux. Here's the package information for the http-parser distributed by Arch Linux:

$ yaourt -Si http-parser
Repository     : community
Name           : http-parser
Version        : 2.6.0-1
Description    : Parser for HTTP Request/Response written in C
Architecture   : x86_64
URL            : https://github.com/joyent/http-parser
Licenses       : MIT
Groups         : None
Provides       : None
Depends On     : glibc
Optional Deps  : None
Conflicts With : None
Replaces       : None
Download Size  :  16.76 KiB
Installed Size :  45.00 KiB
Packager       : Felix Yan <[email protected]>
Build Date     : Thu 29 Oct 2015 01:01:56 AM PDT
Validated By   : MD5 Sum  SHA256 Sum  Signature

no testing on 0.6

it appears that this package is not tested on julia 0.6 and I am getting issues trying to add it

_julia> Pkg.add("HttpParser")
INFO: Installing HttpCommon v0.2.7
INFO: Installing HttpParser v0.2.0
INFO: Building HttpParser
WARNING: BinDeps.shlib_ext is deprecated.
  likely near /home/febbo/.julia/v0.6/HttpParser/deps/build.jl:38
INFO: Attempting to Create directory /home/febbo/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/febbo/.julia/v0.6/HttpParser/deps/downloads already created
INFO: Attempting to Create directory /home/febbo/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/febbo/.julia/v0.6/HttpParser/deps/downloads already created
INFO: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Attempting to Create directory /home/febbo/.julia/v0.6/HttpParser/deps
INFO: Directory /home/febbo/.julia/v0.6/HttpParser/deps already created
INFO: Path /home/febbo/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1 already created
INFO: Attempting to Create directory /home/febbo/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/febbo/.julia/v0.6/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /home/febbo/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /home/febbo/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /home/febbo/.julia/v0.6/HttpParser/deps/src
INFO: Attempting to Create directory /home/febbo/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/febbo/.julia/v0.6/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /home/febbo/.julia/v0.6/HttpParser/deps/src
===========================================================================================[ ERROR: HttpParser ]============================================================================================

LoadError: could not spawn setenv(`make -j8 -C http-parser-2.7.1 library`,String["PATH=/usr/bin/pdf2svg:/usr/local/texlive/2016/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin", "DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path", "QT_ACCESSIBILITY=1", "UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1484", "LD_LIBRARY_PATH=/home/febbo/knitro-10.2.1-z-Linux-64/lib:", "UPSTART_JOB=unity-settings-daemon", "DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-WvZeTZXAsl", "MANPATH=/usr/local/texlive/2016/texmf-dist/doc/man:", "XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0", "XDG_SESSION_DESKTOP=ubuntu", "XDG_SESSION_TYPE=x11", "USER=febbo", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg", "QT_IM_MODULE=ibus", "LESSCLOSE=/usr/bin/lesspipe %s %s", "JAVA_HOME=/usr/lib/jvm/java-8-oracle", "SESSIONTYPE=gnome-session", "INSTANCE=Unity", "GDMSESSION=ubuntu", "CLUTTER_IM_MODULE=xim", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop", "LESSOPEN=| /usr/bin/lesspipe %s", "SHELL=/bin/bash", "XDG_SEAT=seat0", "XAUTHORITY=/home/febbo/.Xauthority", "J2SDKDIR=/usr/lib/jvm/java-8-oracle", "GTK_MODULES=gail:atk-bridge:unity-gtk-module", "GNOME_KEYRING_PID=", "GTK_IM_MODULE=ibus", "QT_QPA_PLATFORMTHEME=appmenu-qt5", "XMODIFIERS=@im=ibus", "TERM=xterm-256color", "HOME=/home/febbo", "VTE_VERSION=4205", "GTK2_MODULES=overlay-scrollbar", "J2REDIR=/usr/lib/jvm/java-8-oracle/jre", "IM_CONFIG_PHASE=1", "COMPIZ_CONFIG_PROFILE=ubuntu", "UPSTART_INSTANCE=", "XDG_CURRENT_DESKTOP=Unity", "LANG=en_US.UTF-8", "SHLVL=1", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "LOGNAME=febbo", "XDG_RUNTIME_DIR=/run/user/1000", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "DESKTOP_SESSION=ubuntu", "GDM_LANG=en_US", "INFOPATH=/usr/local/texlive/2016/texmf-dist/doc/info:", "_=/opt/julia-903644385b/bin/julia", "GPG_AGENT_INFO=/home/febbo/.gnupg/S.gpg-agent:0:1", "PWD=/home/febbo", "DISPLAY=:0", "UPSTART_EVENTS=started starting", "LANGUAGE=en_US", "SONAME=libhttp_parser.so", "XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/febbo", "XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0", "XDG_VTNR=7", "WINDOWID=83886892", "MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path", "XDG_SESSION_ID=c2", "QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1", "DERBY_HOME=/usr/lib/jvm/java-8-oracle/db", "QT4_IM_MODULE=xim", "LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:", "GNOME_KEYRING_CONTROL=", "JOB=gnome-session", "OPENBLAS_MAIN_FREE=1"]): not a directory (ENOTDIR)
while loading /home/febbo/.julia/v0.6/HttpParser/deps/build.jl, in expression starting on line 71

============================================================================================================================================================================================================

==============================================================================================[ BUILD ERRORS ]==============================================================================================

WARNING: HttpParser had build errors.

 - packages with build errors remain installed in /home/febbo/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("HttpParser")`
 - build a single package by running its `deps/build.jl` script

============================================================================================================================================================================================================
INFO: Package database updated

julia> 

UPDATE:
Well, I added tests on 0.6 #70 and they are passing https://travis-ci.org/JuliaWeb/HttpParser.jl/builds/248957394?utm_source=github_status&utm_medium=notification

So, it seems that the issue is somehow local to my machine even though I did a fresh install of all julia packages, all Atom packages and atom...

might it have something to do with this:

julia> Pkg.build("HttpParser")
INFO: Building HttpParser
WARNING: BinDeps.shlib_ext is deprecated.
  likely near /home/febbo/.julia/v0.6/HttpParser/deps/build.jl:38

[PkgEval] HttpParser may have a testing issue on Julia 0.3 (2014-08-16)

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.

On Julia 0.3

  • On 2014-08-15 the testing status was Tests pass.
  • On 2014-08-16 the testing status changed to Package doesn't load.

Tests pass. means that PackageEvaluator found the tests for your package, executed them, and they all passed.

Package doesn't load. means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using failed.

This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.

Test log:

>>> 'Pkg.add("HttpParser")' log
 - Library "libhttp_parser"

INFO: Installing BinDeps v0.3.0
INFO: Installing Calendar v0.4.2
INFO: Installing FactCheck v0.1.2
INFO: Installing HttpCommon v0.0.5
INFO: Installing HttpParser v0.0.9
INFO: Installing ICU v0.4.1
INFO: Installing SHA v0.0.2
INFO: Installing URIParser v0.0.2
INFO: Building ICU
=================================[ ERROR: ICU ]=================================

None of the selected providers can install dependency icu.
Use BinDeps.debug(package_name) to see available providers

while loading /home/idunning/pkgtest/.julia/v0.3/ICU/deps/build.jl, in expression starting on line 28

================================================================================
INFO: Building HttpParser

================================[ BUILD ERRORS ]================================

WARNING: ICU had build errors.

 - packages with build errors remain installed in /home/idunning/pkgtest/.julia/v0.3
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date a you may not have the latest version of HttpParser
INFO: Use `Pkg.update()` to get the latest versions of your packages

>>> 'using HttpParser' log
ERROR: could not open file /home/idunning/pkgtest/.julia/v0.3/ICU/src/../deps/deps.jl
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
 in _start_3B_1699 at /home/idunning/julia03/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.3/ICU/src/ICU.jl, in expression starting on line 54
while loading /home/idunning/pkgtest/.julia/v0.3/Calendar/src/Calendar.jl, in expression starting on line 1
while loading /home/idunning/pkgtest/.julia/v0.3/HttpCommon/src/HttpCommon.jl, in expression starting on line 3
while loading /home/idunning/pkgtest/.julia/v0.3/HttpParser/src/HttpParser.jl, in expression starting on line 9
while loading /home/idunning/pkgtest/.julia/v0.3/HttpParser/testusing.jl, in expression starting on line 1


>>> test log
no tests to run
>>> end of log

build error on 0.7, Libdl not defined

julia> Pkg.build("HttpParser")
[ Info: Building HttpParser
┌ Warning: `is_windows` is deprecated, use `Sys.iswindows` instead.
│   caller = top-level scope
└ @ Core :0
┌ Warning: `is_unix` is deprecated, use `Sys.isunix` instead.
│   caller = top-level scope
└ @ Core :0
┌ Error: ------------------------------------------------------------# Build failed for HttpParser
│   exception =
│    LoadError: UndefVarError: Libdl not defined
│    Stacktrace:
│     [1] top-level scope at /home/tamas/.julia/v0.7/HttpParser/deps/build.jl:38
│     [2] include at ./boot.jl:292 [inlined]
│     [3] include_relative(::Module, ::String) at ./loading.jl:521
│     [4] include at ./sysimg.jl:26 [inlined]
│     [5] include(::String) at ./loading.jl:555
│     [6] top-level scope
│     [7] eval at ./boot.jl:295 [inlined]
│     [8] eval at ./sysimg.jl:71 [inlined]
│     [9] evalfile(::String, ::Array{String,1}) at ./loading.jl:550 (repeats 2 times)
│     [10] #4 at ./none:12 [inlined]
│     [11] cd(::getfield(, Symbol("##4#7")){String}, ::String) at ./file.jl:70
│     [12] (::getfield(, Symbol("##3#5")))(::IOStream) at ./none:11
│     [13] open(::getfield(, Symbol("##3#5")), ::String, ::String) at ./iostream.jl:310
│     [14] top-level scope
│     [15] eval at ./boot.jl:295 [inlined]
│     [16] eval(::Module, ::Expr) at ./sysimg.jl:71
│     [17] process_options(::Base.JLOptions) at ./client.jl:301
│     [18] _start() at ./client.jl:375in expression starting at /home/tamas/.julia/v0.7/HttpParser/deps/build.jl:38
└ @ Main none:15
┌ Warning: ------------------------------------------------------------# Build error summary
│ 
│ HttpParser had build errors.
│ 
│  - packages with build errors remain installed in /home/tamas/.julia/v0.7- build the package(s) and all dependencies with `Pkg.build("HttpParser")`- build a single package by running its `deps/build.jl` script
└ @ Base.Pkg.Entry entry.jl:656

Pkg.test("HttpParser") failed with Bus error

Pkg.test("HttpParser")
INFO: Testing HttpParser
INFO: Recompiling stale cache file /Users/DYZ/.julia/lib/v0.4/HttpParser.ji for module HttpParser.

signal (10): Bus error: 10
unknown function (ip: 0x1077a9270)
=============================[ ERROR: HttpParser ]==============================

failed process: Process(`/Applications/Julia-0.4.5.app/Contents/Resources/julia/bin/julia --check-bounds=yes --code-coverage=none --color=yes /Users/DYZ/.julia/v0.4/HttpParser/test/runtests.jl`, ProcessSignaled(10)) [0]

================================================================================
ERROR: HttpParser had test errors
 in error at /Applications/Julia-0.4.5.app/Contents/Resources/julia/lib/julia/sys.dylib
 in test at pkg/entry.jl:803
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

Problems with Juno installation in atom linked to HttpParser

I've been trying to install juno within atom, and met persistent problems with HttpParser. I tried the fixes suggested on the juno discussion page and was advised here. Here are my error scripts (I am using Julia v0.4.5, Atom v1.7.4 and OSX 10.11.3):
`julia> Pkg.build("Atom")
INFO: Building HttpParser
INFO: Changing Directory to /Users/davidzentlermunro/.julia/v0.4/HttpParser
INFO: Changing Directory to /Users/davidzentlermunro/.julia/v0.4/HttpParser
INFO: Changing Directory to /Users/davidzentlermunro/.julia/v0.4/HttpParser/deps/src
INFO: Attempting to Create directory /Users/davidzentlermunro/.julia/v0.4/HttpParser/deps/usr/lib
INFO: Directory /Users/davidzentlermunro/.julia/v0.4/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /Users/davidzentlermunro/.julia/v0.4/HttpParser/deps/src
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
=============================[ ERROR: HttpParser ]==============================

LoadError: failed process: Process(setenv(make -j8 -C http-parser library,Union{ASCIIString,UTF8String}["XPC_FLAGS=0x0","PATH=/Applications/Julia-0.4.5.app/Contents/Resources/julia/bin:/Applications/Julia-0.4.5.app/Contents/Resources/julia/libexec/git-core:/Applications/Julia-0.4.5.app/Contents/Resources/julia/bin:/Applications/Julia-0.4.5.app/Contents/Resources/julia/libexec/git-core:/Users/davidzentlermunro/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Library/TeX/texbin","PWD=/Users/davidzentlermunro","NODE_PATH=/Applications/Atom.app/Contents/Resources/app.asar/exports","XPC_SERVICE_NAME=0","TERM_PROGRAM=Apple_Terminal","GIT_EXEC_PATH=/Applications/Julia-0.4.5.app/Contents/Resources/julia/libexec/git-core","SHELL=/bin/bash","__CF_USER_TEXT_ENCODING=0x1F5:0:0","NODE_ENV=production","TMPDIR=/var/folders/8q/sjb3qrjd71bc669szqbty7gm0000gn/T/","TK_LIBRARY=/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts","GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","FONTCONFIG_PATH=/Applications/Julia-0.4.5.app/Contents/Resources/julia/etc/fonts","LANG=en_GB.UTF-8","SHLVL=3","LOGNAME=davidzentlermunro","TERM_SESSION_ID=36326E4A-E59F-42C2-AFB5-4C8179537108","SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.zTWbDVHuJ1/Listeners","ATOM_HOME=/Users/davidzentlermunro/.atom","_=/Applications/Julia-0.4.5.app/Contents/Resources/julia/bin/julia","GIT_TEMPLATE_DIR=/Applications/Julia-0.4.5.app/Contents/Resources/julia/share/git-core","Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.E72VpqG5VI/Render","USER=davidzentlermunro","TERM=xterm-256color","HOME=/Users/davidzentlermunro","TERM_PROGRAM_VERSION=361.1","OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
while loading /Users/davidzentlermunro/.julia/v0.4/HttpParser/deps/build.jl, in expression starting on line 42

INFO: Building Homebrew
HEAD is now at 7cbd735 Remove formulae/aliases/travis.yml. (#50676)
HEAD is now at c377b50 Merge pull request #92 from staticfloat/staging
INFO: Building MbedTLS
INFO: Building Nettle

================================[ BUILD ERRORS ]================================

WARNING: HttpParser had build errors.

  • packages with build errors remain installed in /Users/davidzentlermunro/.julia/v0.4
  • build the package(s) and all dependencies with Pkg.build("HttpParser")
  • build a single package by running its deps/build.jl script

================================================================================`

[PkgEval] HttpParser may have a testing issue on Julia 0.4 (2014-08-16)

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.

On Julia 0.4

  • On 2014-08-15 the testing status was Tests pass.
  • On 2014-08-16 the testing status changed to Package doesn't load.

Tests pass. means that PackageEvaluator found the tests for your package, executed them, and they all passed.

Package doesn't load. means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using failed.

This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.

Test log:

>>> 'Pkg.add("HttpParser")' log
INFO: Installing BinDeps v0.3.0
INFO: Installing Calendar v0.4.2
INFO: Installing FactCheck v0.1.2
INFO: Installing HttpCommon v0.0.5
INFO: Installing HttpParser v0.0.9
INFO: Installing ICU v0.4.1
INFO: Installing SHA v0.0.2
INFO: Installing URIParser v0.0.2
INFO: Building ICU
=================================[ ERROR: ICU ]=================================

None of the selected providers can install dependency icu.
Use BinDeps.debug(package_name) to see available providers

while loading /home/idunning/pkgtest/.julia/v0.4/ICU/deps/build.jl, in expression starting on line 28

================================================================================
INFO: Building HttpParser

================================[ BUILD ERRORS ]================================

WARNING: ICU had build errors.

 - packages with build errors remain installed in /home/idunning/pkgtest/.julia/v0.4
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

================================================================================
INFO: Package database updated
 - Library "libhttp_parser"


>>> 'using HttpParser' log
ERROR: could not open file /home/idunning/pkgtest/.julia/v0.4/ICU/src/../deps/deps.jl
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
 in _start_3B_3500 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.4/ICU/src/ICU.jl, in expression starting on line 54
while loading /home/idunning/pkgtest/.julia/v0.4/Calendar/src/Calendar.jl, in expression starting on line 1
while loading /home/idunning/pkgtest/.julia/v0.4/HttpCommon/src/HttpCommon.jl, in expression starting on line 3
while loading /home/idunning/pkgtest/.julia/v0.4/HttpParser/src/HttpParser.jl, in expression starting on line 9
while loading /home/idunning/pkgtest/.julia/v0.4/HttpParser/testusing.jl, in expression starting on line 1


>>> test log
no tests to run
>>> end of log

BinDeps related warnings

I've written a blog post that uses HttpServer.jl/HttpParser.jl and want to throw it out on HackerNews etc. but the warnings that I get when starting the server are kind of awkward. I'm not really sure how to fix them, they come from ext.jl at least and possibly other places:

WARNING: BinDeps.find_library is deprecated, use Base.find_library instead. in include at boot.jl:238 WARNING: add_library_mapping is deprecated, use push!(DL_LOAD_PATH,"/path/to/search") instead. WARNING: contains(collection, item) is deprecated, use in(item, collection) instead in contains at reduce.jl:238

Argument error

Hello,

After installing -- I followed all the instructions verbatim -- running runtests.jl produces this error:

ERROR: LoadError: ArgumentError: Array dimension must be 0 ≤ dim ≤ 9223372036854775807, got 18446744073709551615 for dimension 1
 in pointer_to_array at pointer.jl:41
 in on_body at .julia/v0.4/HttpParser/test/runtests.jl:93
while loading .julia/v0.4/HttpParser/test/runtests.jl, in expression starting on line 129

This is my version info:

julia> versioninfo()
Julia Version 0.4.1
Commit cbe1bee* (2015-11-08 10:33 UTC)
Platform Info:
  System: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
  WORD_SIZE: 64
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblasp.so.0
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Is it a bug? What am I doing wrong?

Missing expression after unary operator '--'

julia> versioninfo()
Julia Version 0.4.0-rc1
Commit e5c6964 (2015-09-09 16:07 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Hi,

I am starting up some work again and was using Morsel.jl before, but see it is now deprecated with a suggestion to use Mux.jl instead. I just tried to add Mux.jl and got the following message when it got to building HttpParser:

INFO: Building HttpParser
At line:1 char:3
+ --help
+   ~ 
Missing expression after unary operator '--'.
At line:1 char:3
+ --help
+   ~~~~
Unexpected token 'help' in expression or statement.
+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator

Just FYI.

Build error on Julia 0.6 (Ubuntu 17.10)

I'm trying to install HttpParser, required by Atom.jl, on Julia v0.6.0. I get this error when building:

INFO: Attempting to Create directory /home/filipebraida/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/filipebraida/.julia/v0.6/HttpParser/deps/downloads already created
INFO: Attempting to Create directory /home/filipebraida/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/filipebraida/.julia/v0.6/HttpParser/deps/downloads already created
INFO: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Attempting to Create directory /home/filipebraida/.julia/v0.6/HttpParser/deps
INFO: Directory /home/filipebraida/.julia/v0.6/HttpParser/deps already created
INFO: Path /home/filipebraida/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1 already created
INFO: Attempting to Create directory /home/filipebraida/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/filipebraida/.julia/v0.6/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /home/filipebraida/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /home/filipebraida/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /home/filipebraida/.julia/v0.6/HttpParser/deps/src
INFO: Attempting to Create directory /home/filipebraida/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/filipebraida/.julia/v0.6/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /home/filipebraida/.julia/v0.6/HttpParser/deps/src
ERROR: LoadError: could not spawn setenv(`make -j8 -C http-parser-2.7.1 library`,String["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", "TEXTDOMAIN=im-config", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "XDG_SESSION_DESKTOP=ubuntu", "XDG_SESSION_TYPE=wayland", "USER=filipebraida", "QT_IM_MODULE=xim", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LC_NUMERIC=pt_BR.UTF-8", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg", "LC_TIME=pt_BR.UTF-8", "LC_MEASUREMENT=pt_BR.UTF-8", "GNOME_SHELL_SESSION_MODE=ubuntu", "USERNAME=filipebraida", "GDMSESSION=ubuntu", "LC_TELEPHONE=pt_BR.UTF-8", "CLUTTER_IM_MODULE=xim", "DESKTOP_AUTOSTART_ID=10e907f99fee1b438c150860190546867100000012840008", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop", "LESSOPEN=| /usr/bin/lesspipe %s", "SHELL=/bin/bash", "XDG_SEAT=seat0", "XDG_MENU_PREFIX=gnome-", "GTK_IM_MODULE=ibus", "SESSION_MANAGER=local/asuna:@/tmp/.ICE-unix/1284,unix/asuna:/tmp/.ICE-unix/1284", "XMODIFIERS=@im=ibus", "HOME=/home/filipebraida", "TERM=xterm-256color", "COLORTERM=truecolor", "VTE_VERSION=4804", "WAYLAND_DISPLAY=wayland-0", "LC_CTYPE=pt_BR.UTF-8", "IM_CONFIG_PHASE=2", "XDG_CURRENT_DESKTOP=ubuntu:GNOME", "LANG=en_US.UTF-8", "SHLVL=2", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "LC_MONETARY=pt_BR.UTF-8", "LOGNAME=filipebraida", "XDG_RUNTIME_DIR=/run/user/1000", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "DESKTOP_SESSION=ubuntu", "OLDPWD=/home/filipebraida", "LC_PAPER=pt_BR.UTF-8", "LC_ADDRESS=pt_BR.UTF-8", "_=/usr/local/bin/julia", "PWD=/home/filipebraida", "DISPLAY=:0", "SONAME=libhttp_parser.so", "XDG_VTNR=2", "LC_NAME=pt_BR.UTF-8", "XDG_SESSION_ID=2", "TEXTDOMAINDIR=/usr/share/locale/", "JOURNAL_STREAM=9:26281", "LC_IDENTIFICATION=pt_BR.UTF-8", "QT4_IM_MODULE=xim", "LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:", "OPENBLAS_MAIN_FREE=1"]): no such file or directory (ENOENT)

Thanks! :D

Reauthorize coveralls

Currently looking at the build of a file:

SOURCE NOT AVAILABLE
The owner of this repo needs to re-authorize with Github; their OAuth credentials are no longer valid so the file cannot be pulled from the Github API.

Pkg2 gone

Pkg2 has been removed from Julia, so the build script is currently broken.

Pkg.test fails: ccall: could not find function http_parser_version in library libhttp_parser64.dll

I can't seem to figure out why this happens.

I cross compiled 32 and 64 bit version as per instructions in the readme. Short story for some reason the 32-bit build can't be recognized as a valid win32 application
ERROR: error compiling anonymous: could not load library "libhttp_parser32.dll" %1 is not a valid Win32 application.
The error comes on 64-bit julia (perhaps this is expected) and 64 bit windows.

In any case the 64 bit dll gives the following:

I built the latest version of http-parser and tried
ver = ccall((:http_parser_url_init,"libhttp_parser64.dll"), Culong, ())
with error

ERROR: ccall: could not find function http_parser_url_init in library libhttp_parser64.dll
 in anonymous at .\<missing>:?

HttpParser fails to build on recent ArchLinux and Julia Version 0.6.0 (2017-06-19 13:05 UTC)

A fix which seems to have worked for me was to comment out the -Werror switch in ~/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/Makefile line 57:

CFLAGS += -Wall -Wextra #-Werror

Otherwise, a warning which stems from a drop through in case 2: below (line 1817 ~/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/http_parser.c is treated as an error and aborts the build. However, the drop through (missing break statement) in case 2: seems purposeful. I am guessing about that however.

        if (settings->on_headers_complete) {
          switch (settings->on_headers_complete(parser)) {
            case 0:
              break;

            case 2:
              parser->upgrade = 1;

            case 1:
              parser->flags |= F_SKIPBODY;
              break;

            default:
              SET_ERRNO(HPE_CB_headers_complete);
              RETURN(p - data); /* Error */
          }
        }

Error Building HttpParser on 1.0.0

Building HttpParser → ~/.julia/packages/HttpParser/yGK3a/deps/build.log
┌ Error: Error building HttpParser:
│ ERROR: LoadError: UndefVarError: is_windows not defined
│ Stacktrace:
│ [1] top-level scope at none:0
│ [2] include at ./boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at ./loading.jl:1038
│ [4] include(::Module, ::String) at ./sysimg.jl:29
│ [5] include(::String) at ./client.jl:388
│ [6] top-level scope at none:0
│ in expression starting at /Users/XXX/.julia/packages/HttpParser/yGK3a/deps/build.jl:10
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.