Opened 4 years ago

Closed 4 years ago

#60436 closed defect (worksforme)

avahi fails to build on High Sierra

Reported by: furioe Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: highsierra Cc:
Port: avahi cctools xar openssl

Description (last modified by furioe)

I am on OSX 10.13.6, Xcode 10.1, MacPorts 2.6.2. I am getting the following:

# port upgrade --force avahi
[...]
--->  Computing dependencies for avahi
--->  Fetching archive for avahi
--->  Attempting to fetch avahi-0.8_0+gtk+gtk3+python38+x11.darwin_17.x86_64.tbz2 from https://packages.macports.org/avahi
--->  Attempting to fetch avahi-0.8_0+gtk+gtk3+python38+x11.darwin_17.x86_64.tbz2 from http://fco.it.packages.macports.org/avahi
--->  Attempting to fetch avahi-0.8_0+gtk+gtk3+python38+x11.darwin_17.x86_64.tbz2 from http://lil.fr.packages.macports.org/avahi
--->  Building avahi
Error: Failed to build avahi: error copying "/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/net/avahi/files/build-db" to  "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_avahi/avahi/work/avahi-0.8/service-type- database/build-db": file already exists
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_avahi/avahi/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (1)

main.log (323.4 KB) - added by furioe 4 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_avahi/avahi/main.log

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by furioe

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_avahi/avahi/main.log

comment:1 Changed 4 years ago by furioe

Description: modified (diff)

comment:2 Changed 4 years ago by furioe

Oh. The error went away after cleaning up the build directory with rm -rf /opt/local/var/macports/build/* and retrying. Sorry about that. Perhaps the ticket is still useful to make the build more robust. Anyway, my problem is now solved.

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

Port: cctools xar openssl added
Resolution: worksforme
Status: newclosed

The initial error was:

:info:build dyld: Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib
:info:build   Referenced from: /opt/local/lib/libxar.1.dylib
:info:build   Reason: image not found
:info:build fatal error: otool: fatal error in /opt/local/bin/llvm-objdump-mp-4.0

The error quoted in the description was only happening in subsequent attempts.

Apparently your otool was linked with a xar that was linked with openssl 1.0. The openssl port was updated to 1.1.1 over a year ago. We usually remove upgrade paths after one year, so make sure you update your ports at least once a year, or you may run into similar issues where not everything upgrades in the right order automatically.

Note: See TracTickets for help on using tickets.