Skip to content

Build issue on Catalina: how to fix dylib paths in pre-built executables? install_name_tool: internal error: swap_object_headers() failed #53

@barracuda156

Description

@barracuda156

Pre-compiled binaries fail to get fixed by install_name_tool:

** INSTALL SUCCEEDED **

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: in swap_object_headers(): malformed load command 0 (cmdsize is zero)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: internal error: swap_object_headers() failed
Command failed: install_name_tool -change /usr/local/lib/libfuse.0.dylib /opt/local/lib/libosxfuse.dylib /opt/local/var/macports/build/macfusion2-863a57c4/work/destroot/Applications/MacPorts/Macfusion.app/Contents/PlugIns/ftpfs.mfplugin/Contents/Resources/curlftpfs_static_mg
Exit code: 1

Existing dylib paths point to Homebrew prefix, so they break executables with MacPorts installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions