Opened 3 years ago

Closed 3 years ago

#61971 closed defect (fixed)

dar @2.6.13_0 fails to build on macOS 11 (Big Sur) "ld: symbol(s) not found for architecture x86_64"

Reported by: jgosmann (Jan Gosmann) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur Cc:
Port: dar

Description

The command sudo port install dar fails with the following output:

--->  Computing dependencies for dar
--->  Fetching archive for dar
--->  Attempting to fetch dar-2.6.13_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/dar
--->  Attempting to fetch dar-2.6.13_0.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/dar
--->  Attempting to fetch dar-2.6.13_0.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/dar
--->  Fetching distfiles for dar
--->  Verifying checksums for dar
--->  Extracting dar
--->  Configuring dar
--->  Building dar
Error: Failed to build dar: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_dar/dar/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port dar failed

A snippet of the error output from the log (full log attached):

:info:build libtool: link: /usr/bin/clang++ -dynamiclib  -o .libs/libdar64.6000.dylib [...]
:info:build Undefined symbols for architecture x86_64:
:info:build   "_curl_easy_cleanup", referenced from:
:info:build       libdar::mycurl_easyhandle_node::~mycurl_easyhandle_node() in mycurl_easyhandle_sharing.o
:info:build       libdar::mycurl_easyhandle_node::~mycurl_easyhandle_node() in mycurl_shared_handle.o
:info:build   "_curl_easy_duphandle", referenced from:
:info:build       libdar::mycurl_easyhandle_node::mycurl_easyhandle_node(libdar::mycurl_easyhandle_node const&) in mycurl_easyhandle_node.o
...

Attachments (1)

main.log (262.3 KB) - added by jgosmann (Jan Gosmann) 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by jgosmann (Jan Gosmann)

Attachment: main.log added

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: ryandesign@… removed
Owner: set to ryandesign
Status: newassigned

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added
Status: assignedaccepted

The well-known libtool macOS 11+ undefined symbol bug.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 7b48f5be3ebf72df8ed4b07971d4ffd92503dbd6/macports-ports (master):

dar: Fix libtool macOS 11+ bug

Closes: #61971

Note: See TracTickets for help on using tickets.