gnutls 3.7.4 build issue

Marius Schamschula lists at schamschula.com
Tue Apr 19 18:53:40 UTC 2022


Hi all,

Yesterday there was a PR https://github.com/macports/macports-ports/pull/14613 to move gnutls to the 3.7.x branch. FreeBSD and Homebrew have done so, even though upstream have not declared this branch as stable.

I am modifying the Portfile to add a gnutls-devel subport, as it is normal for gnutls to have a stable and unstable branch.

However, the PR ran into a build issue, which I have replicated:

 libtool: link: /usr/bin/clang -dynamiclib  -o .libs/libgnutls.30.dylib  .libs/range.o .libs/record.o .libs/compress.o .libs/debug.o .libs/cipher.o .libs/handshake-tls13.o .libs/mbuffers.o .libs/buffers.o .libs/handshake.o .libs/errors.o .libs/dh.o .libs/kx.o .libs/cipher-cbc.o .libs/priority.o .libs/hash_int.o .libs/cipher_int.o .libs/session.o .libs/db.o .libs/x509_b64.o .libs/hello_ext.o .libs/auth.o .libs/sslv2_compat.o .libs/datum.o .libs/session_pack.o .libs/mpi.o .libs/pk.o .libs/cert-cred.o .libs/global.o .libs/constate.o .libs/anon_cred.o .libs/pkix_asn1_tab.o .libs/gnutls_asn1_tab.o .libs/mem.o .libs/fingerprint.o .libs/tls-sig.o .libs/ecc.o .libs/alert.o .libs/privkey_raw.o system/.libs/certs.o system/.libs/threads.o system/.libs/fastopen.o system/.libs/sockets.o .libs/str-iconv.o .libs/system.o .libs/profiles.o inih/.libs/ini.o .libs/str.o .libs/str-unicode.o .libs/str-idna.o .libs/state.o .libs/cert-cred-x509.o .libs/file.o .libs/supplemental.o .libs/random.o .libs/crypto-api.o .libs/privkey.o .libs/pcert.o .libs/pubkey.o .libs/locks.o .libs/dtls.o .libs/system_override.o .libs/crypto-backend.o .libs/verify-tofu.o .libs/pin.o .libs/tpm.o .libs/fips.o .libs/safe-memfuncs.o .libs/atfork.o .libs/randomart.o .libs/urls.o .libs/prf.o .libs/auto-verify.o .libs/dh-session.o .libs/cert-session.o .libs/handshake-checks.o .libs/dtls-sw.o .libs/dh-primes.o .libs/openpgp_compat.o .libs/crypto-selftests.o .libs/crypto-selftests-pk.o .libs/secrets.o .libs/extv.o .libs/hello_ext_lib.o .libs/ocsp-api.o .libs/stek.o .libs/cert-cred-rawpk.o .libs/iov.o system/.libs/ktls.o .libs/vko.o system/.libs/keys-dummy.o tls13/.libs/encrypted_extensions.o tls13/.libs/certificate_request.o tls13/.libs/certificate_verify.o .libs/tls13-sig.o tls13/.libs/finished.o tls13/.libs/key_update.o tls13/.libs/hello_retry.o tls13/.libs/session_ticket.o tls13/.libs/certificate.o tls13/.libs/early_data.o tls13/.libs/post_handshake.o tls13/.libs/psk_ext_parser.o tls13/.libs/anti_replay.o .libs/pkcs11.o .libs/pkcs11x.o .libs/pkcs11_privkey.o .libs/pkcs11_write.o .libs/pkcs11_secret.o .libs/pkcs11_int.o .libs/srp.o .libs/psk.o   -Wl,-force_load,../gl/.libs/libgnu.a -Wl,-force_load,x509/.libs/libgnutls_x509.a -Wl,-force_load,ext/.libs/libgnutls_ext.a -Wl,-force_load,auth/.libs/libgnutls_auth.a -Wl,-force_load,algorithms/.libs/libgnutls_alg.a -Wl,-force_load,extras/.libs/libgnutls_extras.a -Wl,-force_load,accelerated/.libs/libaccelerated.a -Wl,-force_load,nettle/.libs/libcrypto.a  -framework Security -framework CoreFoundation -L/opt/local/lib -lz -lintl -lp11-kit -lzstd -lidn2 -lunistring -lpthread -ltasn1 -lnettle -lhogweed -lgmp  -Os -arch x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -Wl,-framework -Wl,CoreFoundation   -framework Security -framework CoreFoundation -install_name  /opt/local/lib/libgnutls.30.dylib -compatibility_version 63 -current_version 63.0 -Wl,-single_module

 libtool: link: nmedit -s .libs/libgnutls-symbols.expsym .libs/libgnutls.30.dylib

  /Library/Developer/CommandLineTools/usr/bin/nmedit: error: symbols names listed in: .libs/libgnutls-symbols.expsym not in: /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_gnutls/gnutls/work/gnutls-3.7.4/lib/.libs/libgnutls.30.dylib

 __gnutls_x86_cpuid_s
Note: __gnutls_x86_cpuid_s is defined in accelerated/.libs/libaccelerated.a and should have been loaded by -Wl,-force_load,accelerated/.libs/libaccelerated.a

Unfortunately, there is little information available to diagnose this issue. Any suggestions would be appreciated!

Marius
--
Marius Schamschula




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220419/38b9cfb9/attachment.htm>


More information about the macports-users mailing list