-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Error on macOS High Sierra when lib idn2 is installed #236
Comments
I also had discovered that two versions of
First, the one from
|
This is the working setup: macOS High Sierra 10.13.5
|
|
Cool, thanks. I have the same issue, and it solved it. |
For me it seems to be a different cause. My output is the following: [ 54%] Linking CXX executable sipi I did not have wget installed, neither libidn2. Removing curl did not help either. My setup is: clang -v Any ideas? Cheers, E |
Seems to be a problem with libcurl - missing library... Will have a look at it...
Lukas
Am 15.12.2018 um 17:45 schrieb ez <[email protected]<mailto:[email protected]>>:
For me it seems to be a different cause. My output is the following:
[ 54%] Linking CXX executable sipi
Undefined symbols for architecture x86_64:
"_BrotliDecoderCreateInstance", referenced from:
_brotli_init_writer in libcurl.a(libcurl_la-content_encoding.o)
"_BrotliDecoderDecompressStream", referenced from:
_brotli_unencode_write in libcurl.a(libcurl_la-content_encoding.o)
"_BrotliDecoderDestroyInstance", referenced from:
_brotli_unencode_write in libcurl.a(libcurl_la-content_encoding.o)
_brotli_close_writer in libcurl.a(libcurl_la-content_encoding.o)
"_BrotliDecoderGetErrorCode", referenced from:
_brotli_unencode_write in libcurl.a(libcurl_la-content_encoding.o)
"_BrotliDecoderVersion", referenced from:
_curl_version_info in libcurl.a(libcurl_la-version.o)
_brotli_version in libcurl.a(libcurl_la-version.o)
"_idn2_check_version", referenced from:
_fix_hostname in libcurl.a(libcurl_la-url.o)
_curl_version in libcurl.a(libcurl_la-version.o)
_curl_version_info in libcurl.a(libcurl_la-version.o)
"_idn2_free", referenced from:
_Curl_disconnect in libcurl.a(libcurl_la-url.o)
_create_conn in libcurl.a(libcurl_la-url.o)
"_idn2_lookup_ul", referenced from:
_fix_hostname in libcurl.a(libcurl_la-url.o)
"_idn2_strerror", referenced from:
_fix_hostname in libcurl.a(libcurl_la-url.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sipi] Error 1
make[1]: *** [CMakeFiles/sipi.dir/all] Error 2
make: *** [all] Error 2
I did not have wget installed, neither libidn2. Removing curl did not help either.
My setup is:
macOS Mojave 10.14.2
clang -v
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Any ideas? Cheers, E
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#236 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFN9zGIzF8BYxvwF22QZa8ULUuLxlw_jks5u5ScigaJpZM4UgBl3>.
|
I had the following problem when compiling Sipi (
develop
):It turned out that my
local/lib/libcurl.la
looked like this (seebuild/CMakeFiles/sipi.dir/link.txt
for the linking command):On my laptop (same OS version, same version of
clang
) the compilation worked fine and-L/usr/local/Cellar/libidn2/2.0.4/lib -lidn2
was not added as a dependency since it was not even installed.Steps to resolve my problem:
brew remove wget
(depends onlibidn2
)brew remove libidn2
I even have
wget
installed on my laptop (but withoutlibidn2
).I do not know why this dependency was added in
local/lib/libcurl.la
for curl. It does not seem correct to me whenwget
depends on it.However, all works now and tests pass. I made this issue in case someone has the same problem.
The text was updated successfully, but these errors were encountered: