[MacPorts] #57248: cargo opportunistically uses http-parser
MacPorts
noreply at macports.org
Thu Oct 4 16:51:00 UTC 2018
#57248: cargo opportunistically uses http-parser
------------------------+--------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: cargo
------------------------+--------------------
cargo seems to opportunistically use libhttp_parser (from the http-parser
port), because building cargo +universal failed on my system when it found
only a non-universal libhttp_parser:
{{{
= note: ld: warning: ignoring file /opt/local/lib/libhttp_parser.dylib,
file was built for x86_64 which is not the architecture being linked
(i386): /opt/local/lib/libhttp_parser.dylib
Undefined symbols for architecture i386:
"_http_parser_parse_url", referenced from:
_gitno_extract_url_parts in liblibgit2_sys-
e21f3c3615cda28a.rlib(netops.c.o)
"_http_errno_description", referenced from:
_http_stream_read in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
"_http_parser_execute", referenced from:
_http_stream_read in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
"_http_should_keep_alive", referenced from:
_http_connect in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
"_http_parser_init", referenced from:
_http_close in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
_http_stream_read in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
_http_stream_write_single in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
_http_stream_write_chunked in liblibgit2_sys-
e21f3c3615cda28a.rlib(http.c.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
}}}
Either add a dependency on http-parser or prevent cargo from using it.
--
Ticket URL: <https://trac.macports.org/ticket/57248>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list