JuliaWeb / GnuTLS.jl

Transport Level Security for Julia Streams provided by GnuTLS
Other
8 stars 13 forks source link

GnuTLS does not build on OSX Yosemite #49

Closed yeesian closed 9 years ago

yeesian commented 9 years ago

I get the following:

$ ../bin/escher --serve --port 5556
ERROR: could not open file /Users/yeesian/.julia/v0.3/GnuTLS/src/../deps/deps.jl
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at loading.jl:128
 in process_options at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
while loading /Users/yeesian/.julia/v0.3/GnuTLS/src/GnuTLS.jl, in expression starting on line 7
while loading /Users/yeesian/.julia/v0.3/HttpServer/src/HttpServer.jl, in expression starting on line 229
while loading /Users/yeesian/.julia/v0.3/Mux/src/server.jl, in expression starting on line 1
while loading /Users/yeesian/.julia/v0.3/Mux/src/Mux.jl, in expression starting on line 22
while loading /Users/yeesian/.julia/v0.3/Escher/src/cli/serve.jl, in expression starting on line 5
while loading /Users/yeesian/.julia/v0.3/Escher/bin/escher, in expression starting on line 7

Checking out master gives me

  | | |_| | | | (_| |  |  Version 0.3.6 (2015-02-17 22:12 UTC)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |  x86_64-apple-darwin14.0.0

julia> Pkg.checkout("GnuTLS")
INFO: Checking out GnuTLS master...
INFO: Pulling GnuTLS latest master...
INFO: No packages to install, update or remove

julia> Pkg.build("GnuTLS")
INFO: Building Homebrew
HEAD is now at ce9a56d Remove unused method
HEAD is now at 5b3b59a Merge pull request #55 from staticfloat/staging
INFO: Building Nettle
INFO: Building GnuTLS
Unlinking /Users/yeesian/.julia/v0.3/Homebrew/deps/usr/Cellar/gnutls/3.3.15... 1003 symlinks removed
Warning: gnutls-3.3.15 already installed, it's just not linked
Linking /Users/yeesian/.julia/v0.3/Homebrew/deps/usr/Cellar/gnutls/3.3.15... 1003 symlinks created
==================================================[ ERROR: GnuTLS ]==================================================

Provider PackageManager failed to satisfy dependency gnutls
while loading /Users/yeesian/.julia/v0.3/GnuTLS/deps/build.jl, in expression starting on line 57

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

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

WARNING: GnuTLS had build errors.

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

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

Freeing GnuTLS, and retrying, it still doesn't work. So I removed it, and re-added

  | | |_| | | | (_| |  |  Version 0.3.6 (2015-02-17 22:12 UTC)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |  x86_64-apple-darwin14.0.0

julia> Pkg.rm("GnuTLS")
INFO: No packages to install, update or remove
INFO: Package database updated

julia> Pkg.add("GnuTLS")
INFO: No packages to install, update or remove
INFO: Package database updated

and still get the same

$ ../bin/escher --serve --port 5556
ERROR: could not open file /Users/yeesian/.julia/v0.3/GnuTLS/src/../deps/deps.jl
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at loading.jl:128
 in process_options at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
while loading /Users/yeesian/.julia/v0.3/GnuTLS/src/GnuTLS.jl, in expression starting on line 7
while loading /Users/yeesian/.julia/v0.3/HttpServer/src/HttpServer.jl, in expression starting on line 229
while loading /Users/yeesian/.julia/v0.3/Mux/src/server.jl, in expression starting on line 1
while loading /Users/yeesian/.julia/v0.3/Mux/src/Mux.jl, in expression starting on line 22
while loading /Users/yeesian/.julia/v0.3/Escher/src/cli/serve.jl, in expression starting on line 5
while loading /Users/yeesian/.julia/v0.3/Escher/bin/escher, in expression starting on line 7

I thought it might be related to #25 and tried

  | | |_| | | | (_| |  |  Version 0.3.6 (2015-02-17 22:12 UTC)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |  x86_64-apple-darwin14.0.0

julia> Homebrew.add("GnuTLS")
ERROR: Homebrew not defined

julia> using Homebrew

julia> Homebrew.add("GnuTLS")
Unlinking /Users/yeesian/.julia/v0.3/Homebrew/deps/usr/Cellar/gnutls/3.3.15... 1003 symlinks removed
Warning: gnutls-3.3.15 already installed, it's just not linked
Linking /Users/yeesian/.julia/v0.3/Homebrew/deps/usr/Cellar/gnutls/3.3.15... 1003 symlinks created

with the same set of error messages as above, i.e.

$ ../bin/escher --serve --port 5556
ERROR: could not open file /Users/yeesian/.julia/v0.3/GnuTLS/src/../deps/deps.jl
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:54
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in require at /Users/yeesian/.julia/v0.3/Requires/src/require.jl:8
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in include_from_node1 at loading.jl:128
 in process_options at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
while loading /Users/yeesian/.julia/v0.3/GnuTLS/src/GnuTLS.jl, in expression starting on line 7
while loading /Users/yeesian/.julia/v0.3/HttpServer/src/HttpServer.jl, in expression starting on line 229
while loading /Users/yeesian/.julia/v0.3/Mux/src/server.jl, in expression starting on line 1
while loading /Users/yeesian/.julia/v0.3/Mux/src/Mux.jl, in expression starting on line 22
while loading /Users/yeesian/.julia/v0.3/Escher/src/cli/serve.jl, in expression starting on line 5
while loading /Users/yeesian/.julia/v0.3/Escher/bin/escher, in expression starting on line 7
staticfloat commented 9 years ago

@yeesian did you ever get this figured out? I'm sorry that noone has responded to you yet; I'm willing to help you walk through it if you're still having trouble.

yeesian commented 9 years ago

Hey @staticfloat, I've moved on to v0.4 now, and can't reproduce this issue anymore. Thanks for the offer though!

staticfloat commented 9 years ago

Great, glad it worked itself out for you. :)

yeesian commented 9 years ago

On a different note, I have never been able to figure out how to get https://github.com/JuliaGeo/LibGEOS.jl/pull/7 to work, and it'll be great if you have any pointers. In a bizarre twist, I got LibGEOS to build on AppVeyor with tkelman post-JuliaCon, but am not sure what's the problem for the build on TravisCI.