Skip to content
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

Issue building libzmq: 'gnutls/gnutls.h' file not found #97

Open
warnes opened this issue May 22, 2020 · 6 comments
Open

Issue building libzmq: 'gnutls/gnutls.h' file not found #97

warnes opened this issue May 22, 2020 · 6 comments

Comments

@warnes
Copy link

warnes commented May 22, 2020

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.

build.log

@beaugunderson
Copy link
Collaborator

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) :)

@beaugunderson
Copy link
Collaborator

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 :)

@warnes
Copy link
Author

warnes commented May 22, 2020

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.

@beaugunderson
Copy link
Collaborator

beaugunderson commented May 22, 2020 via email

@warnes
Copy link
Author

warnes commented May 23, 2020

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.

@Jaxkr
Copy link

Jaxkr commented Aug 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants