How to fix "broken ports"?
Bradley Giesbrecht
pixilla at macports.org
Wed May 23 09:40:19 PDT 2012
On May 22, 2012, at 9:55 PM, Marko Käning wrote:
>
> On May 21, 2012, at 10:51 PM, Ryan Schmidt wrote:
>
>> What does "otool -L /opt/macports-test/lib/libphonon.4.dylib" say?
>>
>> The output we want to see is:
>>
>> /opt/macports-test/lib/libphonon.4.dylib:
>> /opt/macports-test/lib/libphonon.4.dylib (compatibility version 4.4.0, current version 4.4.2)
>> /opt/macports-test/lib/libQtDBus.4.dylib (compatibility version 4.7.0, current version 4.7.3)
>> /opt/macports-test/lib/libQtXml.4.dylib (compatibility version 4.7.0, current version 4.7.3)
>> /opt/macports-test/lib/libQtGui.4.dylib (compatibility version 4.7.0, current version 4.7.3)
>> /opt/macports-test/lib/libQtCore.4.dylib (compatibility version 4.7.0, current version 4.7.3)
>> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)
>>
>> If instead the second line reads:
>>
>> lib/libphonon.4.dylib (compatibility version 4.4.0, current version 4.4.2)
>>
>> then that would explain the problem, and the fix would need to occur in the phonon port.
>>
>
> Well, I read this line from my previous email:
> ---
> Could not open lib/libphonon.4.dylib: Error opening or reading file (referenced from /opt/macports-test/lib/libphononexperimental.4.6.0.dylib)
> DEBUG: Marking /opt/macports-test/lib/libphononexperimental.4.6.0.dylib as broken
> ---
> as such that the libphonon4.dylib could be opened since the libphononexperimental.4.6.0.dylib couldn't access the file.
> otool showed why this happened, i.e. because of the missing prefix in front of the lib.
>
>
>
> But well, you are right, in libphonon4.dylib there is the path also without the prefix:
> ---
> [ MP-devel ] :~ marko$ otool -L /opt/macports-test/lib/libphonon.4.dylib
> /opt/macports-test/lib/libphonon.4.dylib:
> lib/libphonon.4.dylib (compatibility version 4.0.0, current version 4.6.0)
> /opt/macports-test/lib/libQtCore.4.dylib (compatibility version 4.8.0, current version 4.8.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
> /opt/macports-test/lib/libQtGui.4.dylib (compatibility version 4.8.0, current version 4.8.0)
> /opt/macports-test/lib/libQtDBus.4.dylib (compatibility version 4.8.0, current version 4.8.0)
> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
> ---
>
>
>
>
> But my install_name_tool "magic"
> ---
> [ MP-devel ] :~ marko$ sudo install_name_tool -change lib/libphonon.4.dylib /opt/macports-test/lib/libphonon.4.dylib /opt/macports-test/lib/libphonon.4.dylib
If memory serves me correctly, the first line in "otool -L" is the "id".
Try:
sudo install_name_tool -id /opt/macports-test/lib/libphonon.4.dylib /opt/macports-test/lib/libphonon.4.dylib
Regards,
Bradley Giesbrecht (pixilla)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120523/245c6caf/attachment.bin>
More information about the macports-dev
mailing list