[MacPorts] #43819: lz4 @r116 Bad install_name on liblz4
MacPorts
noreply at macports.org
Sun May 25 20:51:12 PDT 2014
#43819: lz4 @r116 Bad install_name on liblz4
----------------------+--------------------------------
Reporter: djvasi@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.0
Keywords: | Port: lz4
----------------------+--------------------------------
Libraries installed by MacPorts should have a full install_name, so that
users can link against them. Eg:
{{{
$ otool -L /opt/local/lib/liblzma.dylib
/opt/local/lib/liblzma.dylib:
/opt/local/lib/liblzma.5.dylib (compatibility version 6.0.0,
current version 6.5.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1197.1.1)
}}}
But liblz4 has no path in its install_name. Note the lack of "/opt/local"
on the second line:
{{{
$ otool -L /opt/local/lib/liblz4.dylib
/opt/local/lib/liblz4.dylib:
liblz4.1.0.0.dylib (compatibility version 0.0.0, current version
0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1197.1.1)
}}}
If a user attempts to link against this liblz4, they'll get a "Library not
loaded" error from dyld.
Probably either an "-install_name ${prefix}/lib/liblz4.1.dylib" should be
added to the Makefile, or a call to install_name_tool could be performed
by the Portfile to correct the error.
--
Ticket URL: <https://trac.macports.org/ticket/43819>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list