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

ldns fails to compile during make on macOS with too many errors in ldns_wrapper.c #259

Open
SebDominguez opened this issue Nov 18, 2024 · 0 comments

Comments

@SebDominguez
Copy link

I'm encountering an issue when trying to install ldns via Homebrew. The installation fails during the make step, producing errors related to ldns_wrapper.c and ultimately emitting "too many errors" before stopping.

This issue occurs while using Homebrew on macOS, with OpenSSL 3 installed as a dependency. It seems the Python bindings or SWIG integration is causing the issue.

I'm running macOS 12.7.6 (21H1320) I know it's outdated but my MacBook Pro is stuck with this version.

brew install ldns
Warning: You are using macOS 12.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Fetching ldns
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/14caffd3e0f062ef61afb6c23a15c2b4a16822fe/Fo
Already downloaded: /Users/sebastien/Library/Caches/Homebrew/downloads/025bac31a642c2c0145942e440d57a840a7d1dcba3c2c23af2c74c20d52acafb--ldns.rb
==> Downloading https://nlnetlabs.nl/downloads/ldns/ldns-1.8.4.tar.gz
Already downloaded: /Users/sebastien/Library/Caches/Homebrew/downloads/299e648641e8140e601afb514621bd16ca9e7a51e42331fee2a3f295a9e011cd--ldns-1.8.4.tar.gz
==> ./configure --with-drill --with-examples --with-ssl=/usr/local/opt/openssl@3 --with-pyldns PYTHON_PLATFORM_SITE_
==> make
Last 15 lines from /Users/sebastien/Library/Logs/Homebrew/ldns/02.make:
                                                              ^
./contrib/python/ldns_wrapper.c:1259:1: note: 'SWIG_Python_AppendOutput' declared here
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib examples/ldns-keyfetcher.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lcrypto  -o examples/ldns-keyfetcher ./libldns.la
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib examples/ldns-keygen.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lcrypto  -o examples/ldns-keygen ./libldns.la
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib examples/ldns-mx.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lcrypto  -o examples/ldns-mx ./libldns.la
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib examples/ldns-notify.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lcrypto  -o examples/ldns-notify ./libldns.la
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib examples/ldns-read-zone.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lcrypto  -o examples/ldns-read-zone ./libldns.la
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib examples/ldns-resolver.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lcrypto  -o examples/ldns-resolver ./libldns.la
20 errors generated.
make: *** [ldns_wrapper.lo] Error 1
make: *** Waiting for unfinished jobs....
./libtool --tag=CC --quiet --mode=link clang -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2  -L/usr/local/opt/openssl@3/lib linktest.lo libldns.la -lcrypto  -o linktest ./libldns.la

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!


Error: You are using macOS 12.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Do not report this issue: you are running in an unsupported configuration.
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

1 participant