gnuradio-for-mac-without-macports
gnuradio-for-mac-without-macports copied to clipboard
Issue building libzmq: 'gnutls/gnutls.h' file not found
build.sh
proceeds happily until it tries to build libzmq, and terminates with several messages like this:
/Users/gwarnes/src/gnuradio-for-mac-without-macports/tmp/libzmq/src/ws_engine.cpp:40:10: fatal error:
'gnutls/gnutls.h' file not found
#include <gnutls/gnutls.h>
^~~~~~~~~~~~~~~~~
1 error generated.
System Info
Mac OS X 10.15.4 (19E287) XCode 11.5 (11E608c) Python 3.7.7 from /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Build log attached.
Interesting--I checked what's installed on our Circle CI build machine and this is the result of brew list
(note that brew python is not actually used):
Distillers-Mac-5:~ distiller$ brew list
autoconf carthage gettext icu4c libidn2 moreutils openssl python ruby-install wget
automake chruby git jq libunistring node [email protected] python@2 sqlite xz
bison gdbm git-lfs libffi libyaml oniguruma pcre2 readline tccutil yarn
I also verified that the build machine does not have gnustls.h
anywhere, so maybe if openssl is missing it looks for gnutls instead?
I'd love a script that verifies all the dependencies, but so far it's been a lot of trial and error (which culminated in the Circle CI build process, which is supposed to eliminate the need for anyone to compile locally) :)
Also noting that using homebrew to manage the build dependencies is not required, but it's what I use locally and for the Circle CI build, so I will not be very helpful if you're managing them a different way :)
I also use homebrew to manage build deps. Let me check what I've got installed...
bash-3.2$ for pkg in `cat CircleCI.list`; do echo -n "$pkg: "; grep -c $pkg brew.list ; done | grep 0
carthage: 0
moreutils: 0
ruby-install: 0
chruby: 0
jq: 0
python@2: 0
bison: 0
git-lfs: 0
libyaml: 0
oniguruma: 0
tccutil: 0
yarn: 0
Looks like I'm missing some things you have.
Hmm, though you have openssl
and that's the one I thought would be
responsible for this error...
On Fri, May 22, 2020 at 11:44 AM, Gregory R. Warnes < [email protected]> wrote:
I also use homebrew to manage build deps. Let me check what I've got installed...
bash-3.2$ for pkg in
cat CircleCI.list
; do echo -n "$pkg: "; grep -c $pkg brew.list ; done | grep 0 carthage: 0 moreutils: 0 ruby-install: 0 chruby: 0 jq: 0 python@2: 0 bison: 0 git-lfs: 0 libyaml: 0 oniguruma: 0 tccutil: 0 yarn: 0Looks like I'm missing some things you have.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ktemkin/gnuradio-for-mac-without-macports/issues/97#issuecomment-632851206, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPCX6WIZRJWLCGC7UZ4A3RS3BZRANCNFSM4NH4GTNQ .
I've made a fork where I'm keeping track of the changes to get it to build for me: [email protected]:warnes/gnuradio-for-mac-without-macports.git
Once I get everything running, I'll create a PR.
I had this same issue building libzmq on its own. I suspected it was because homebrew messed with the built-in OpenSSL libraries when I installed FFMPEG (which has ZeroMQ as a dependency). I tried uninstalling homebrew and all packages and it still didn't work.
The only thing that fixed this issue was reinstalling my operating system and installing the xcodetools BEFORE homebrew as well as building libzmq from source and NOT installing it through homebrew.