pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: tcl-expect weirdness under Mac OS X
* On 2016-03-05 at 14:37 GMT, Benny Siegert wrote:
> I am trying to build dejagnu, which uses expect. The tcl-expect
> package installed fine but does not run:
>
> /opt/pkg/bin/expect
> dyld: Library not loaded: libexpect545.so
> Referenced from: /opt/pkg/bin/expect
> Reason: image not found
> Trace/BPT trap: 5
>
> $ otool -L /opt/pkg/bin/expect
> /opt/pkg/bin/expect:
> libexpect545.so (compatibility version 5.45.0, current version 5.45.0)
> /opt/pkg/lib/libtcl86.dylib (compatibility version 8.6.0, current version 8.6.4)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 1225.1.1)
>
> Looks like some kind of rpath is missing. Interestingly, there are
> several files with that name in the package:
>
> /opt/pkg/lib/libexpect545.a
> /opt/pkg/lib/libexpect545.so
> /opt/pkg/lib/libexpect545.so.1.0
> /opt/pkg/lib/tcl/expect5.45/libexpect545.so
>
> Do others see the same thing? Any ideas?
This is a common issue on OSX. If you enable PKG_DEVELOPER=yes then
the shlib checks will ensure that you find out at build time that
there is a problem rather than at runtime.
The fixes can be relatively straight-forward, and there are lots of
examples of how to do it in pkgsrc now, just look for install_name.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com
Home |
Main Index |
Thread Index |
Old Index