weak import of symbol '____chkstk_darwin'
Description of problem:
A test build of gnutls under 10.15 Beta (19A487l) using Xcode 11.0 beta (11M336w) fails due to
weak import of symbol '____chkstk_darwin'
Version of gnutls used:
3.6.8
Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
MacPorts under macOS 10.15 Catalina
How reproducible:
Steps to Reproduce:
- using MacPorts to build
Actual results:
` 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/num.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 .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 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 -lp11-kit -lidn2 -lunistring -ltasn1 -lnettle -lhogweed -lgmp -lintl -Os -arch x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64 -Wl,-no_weak_imports -Wl,-framework -Wl,CoreFoundation -framework Security -framework CoreFoundation -install_name /opt/local/lib/libgnutls.30.dylib -compatibility_version 55 -current_version 55.0 -Wl,-single_module -Wl,-exported_symbols_list,.libs/libgnutls-symbols.expsym
ld: warning: cannot export hidden symbol __gnutls_x86_cpuid_s from accelerated/.libs/libaccelerated.a(x86-common.o)
ld: weak import of symbol '____chkstk_darwin' not supported because of option: -no_weak_imports for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libgnutls.la] Error 1 `
For full log, see https://trac.macports.org/ticket/58636
Expected results:
Clean build of gnutls 3.6.8, as for previous OS versions