Opened 5 years ago

Last modified 5 years ago

#58084 new defect

perl5.28: install_name_tool: malformed object (unknown load command 9)

Reported by: QuRyu (Qingbo Liu) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: mojca (Mojca Miklavec)
Port: perl5.28

Description

I am running on macOS Mojave 10.14.3. I tried to install perl 5.28.1 but the installation failed. I followed through the log file and executed the command which the log says failed. The second file is the output I got from executing the make instruction. The perl installed on my system by default is version 5.18.2 in /usr/bin/perl.

Attachments (2)

main.log (525.7 KB) - added by QuRyu (Qingbo Liu) 5 years ago.
make_output.txt (139.5 KB) - added by QuRyu (Qingbo Liu) 5 years ago.

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by QuRyu (Qingbo Liu)

Attachment: main.log added

Changed 5 years ago by QuRyu (Qingbo Liu)

Attachment: make_output.txt added

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

Keywords: staging destroot installation failure removed
Port: perl5.28 added
Summary: installing Perl: staging failedperl5.28: install_name_tool: malformed object (unknown load command 9)

The log says:

:info:destroot install_name_tool: object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.28/work/destroot/opt/local/bin/perl5.28.1 malformed object (unknown load command 9)

This suggests your install_name_tool command is too old. Please reinstall the correct version. It's part of Xcode and/or the command line tools.

comment:2 Changed 5 years ago by QuRyu (Qingbo Liu)

To update install_name_tool, should I just delete it and expect Xcode to download a new one? I reinstalled Xcode and have xcode-select now pointing to the correct place. But install_name_tool is still kept intact.

comment:3 Changed 5 years ago by QuRyu (Qingbo Liu)

Also software update says that "No new software available" with softwareupdate --list.

comment:4 Changed 5 years ago by QuRyu (Qingbo Liu)

The current version of install_name_tool on my mac is

/usr/bin/install_name_tool:

/usr/lib/libxcselect.dylib (compatibility version 1.0.0, current version 1.0.0)

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)

comment:5 Changed 5 years ago by jmroot (Joshua Root)

Cc: mojca added

That doesn't actually tell us anything because (a) /usr/bin/install_name_tool is just a shim that runs the actual program inside Xcode, and (b) otool -L only shows the versions of the libraries an executable is linked with, not the version of the executable itself.

More helpful might be xcodebuild -version and xcrun --find install_name_tool.

comment:6 Changed 5 years ago by QuRyu (Qingbo Liu)

xcodebuild -version gives

Xcode 10.1

Build version 10B61

and xcrun -find install_name_tool prints

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool

Note: See TracTickets for help on using tickets.