Opened 8 years ago

Closed 8 years ago

#52520 closed defect (fixed)

SDRplay: install_name_tool: object: libmirsdrapi-rsp.dylib malformed object (unknown load command 9)

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: SDRplay

Description

https://build.macports.org/builders/ports-10.6_i386_legacy-builder/builds/6834

--->  Building SDRplay
DEBUG: Executing org.macports.build (SDRplay)
install_name_tool: object: libmirsdrapi-rsp.dylib malformed object (unknown load command 9)
Command failed: install_name_tool -id /opt/local/lib/libmirsdrapi-rsp.dylib libmirsdrapi-rsp.dylib
Exit code: 1
Error: org.macports.build for port SDRplay returned: command execution failed

Assuming these libraries can be loaded on 10.6 at all, you may need a newer install_name_tool (cctools port).

Change History (5)

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

Since you're installing a precompiled library, it may be the case that the precompiled library was compiled for a MACOSX_DEPLOYMENT_TARGET later than 10.6. If that's the case, you should make the port fail early (pre-extract) on unsupported Mac OS X versions.

comment:2 Changed 8 years ago by michaelld (Michael Dickens)

Good idea. Hmm ... do you know how I find out the TARGET? There's nothing obvious in the library itself that jumps out to me ("nm -a ... | more").

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

I don't know how to determine what deployment target was used, without looking at the source code's build system.

http://sdrplay.com/mac.html says 10.9.5 or later is required. It appears MacPorts was successful in creating packages for 10.7 and later but I don't know if they work.

comment:4 Changed 8 years ago by michaelld (Michael Dickens)

Hmm ... OK. I had a few customers wanting SDRplay. I'll ping them to see what OS they use. Maybe one of them has an older OS and can verify functionality.

comment:5 Changed 8 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

I tweaked the install_name_tool usage in r153630. Biggest question is whether any tweaks are needed for 10.8 or 10.9, but at least the major issues for 10.6 should be resolved. I'm going to go ahead and close out this ticket as fixed.

Note: See TracTickets for help on using tickets.