Opened 10 months ago
Last modified 8 months ago
#69221 assigned defect
aria2 +openssl, +gnutls: ld: Undefined symbols: _SecRandomCopyBytes, _kSecRandomDefault
Reported by: | ShadSterling (Shad Sterling) | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.0 |
Keywords: | Cc: | ||
Port: | aria2 |
Description
Isolating just the openssl
variant with port clean aria2; port install aria2 -cares-docs-gnutls+openssl-sqlite3-universal
fails:
---> Cleaning aria2 ---> Computing dependencies for aria2 ---> Fetching archive for aria2 ---> Attempting to fetch aria2-1.37.0_4+openssl.darwin_22.x86_64.tbz2 from https://packages.macports.org/aria2 ---> Attempting to fetch aria2-1.37.0_4+openssl.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/aria2 ---> Attempting to fetch aria2-1.37.0_4+openssl.darwin_22.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/aria2 ---> Fetching distfiles for aria2 ---> Verifying checksums for aria2 ---> Extracting aria2 ---> Applying patches to aria2 ---> Configuring aria2 ---> Building aria2 Error: Failed to build aria2: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port aria2 failed
Log messages look like the linker can't find symbols _SecRandomCopyBytes
and _kSecRandomDefault
Isolating just the gnutls
variant with port clean aria2; port install aria2 -cares-docs+gnutls-openssl-sqlite3-universal
also fails:
---> Cleaning aria2 ---> Computing dependencies for aria2 ---> Fetching archive for aria2 ---> Attempting to fetch aria2-1.37.0_4+gnutls.darwin_22.x86_64.tbz2 from https://packages.macports.org/aria2 ---> Attempting to fetch aria2-1.37.0_4+gnutls.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/aria2 ---> Attempting to fetch aria2-1.37.0_4+gnutls.darwin_22.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/aria2 ---> Fetching distfiles for aria2 ---> Verifying checksums for aria2 ---> Extracting aria2 ---> Applying patches to aria2 ---> Configuring aria2 ---> Building aria2 Error: Failed to build aria2: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port aria2 failed
Log messages look like the linker can't find symbols _SecRandomCopyBytes
and _kSecRandomDefault
Attachments (2)
Change History (6)
Changed 10 months ago by ShadSterling (Shad Sterling)
Attachment: | main-openssl.log added |
---|
Changed 10 months ago by ShadSterling (Shad Sterling)
Attachment: | main-gnutls.log added |
---|
comment:1 Changed 10 months ago by kencu (Ken)
comment:2 Changed 10 months ago by Schamschula (Marius Schamschula)
I'm always open to PRs for older OS versions that I don't have access to myself.
comment:3 Changed 10 months ago by kencu (Ken)
In this case , the failure is on even the newest systems.
I’m just not sure if this is worth fixing.
comment:4 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mps@… Schamschula removed |
---|---|
Owner: | set to Schamschula |
Status: | new → assigned |
Summary: | `aria2 +openssl` and `aria2 +gnutls` builds fail → aria2 +openssl, +gnutls: ld: Undefined symbols: _SecRandomCopyBytes, _kSecRandomDefault |
Bug reported and solution given here: https://github.com/aria2/aria2/issues/2145
This commit:
https://github.com/aria2/aria2/commit/ba3396f7bb210b53fb940f274a0622ad9799545c
makes aria2 assume Apple builds will always have access to the Security framework.
But it appears they have access to the Security framework only if AppleTLS is enabled.
https://github.com/aria2/aria2/blob/a8cb271b044230f38085be7fc185c30eb1f52d36/configure.ac#L1103
So -- some work will need to be done to make the MacOS builds work without AppleTLS enabled, if that is desired.
There is already a patch for < 10.7 that might be broadened out to make this happen.
patch-src-SimpleRandomizer.cc.diff