> On Jan 10, 2016, at 9:02 AM, Craig Treleaven <ctrelea...@macports.org> wrote:
> 
>> On Jan 10, 2016, at 12:18 AM, Ryan Schmidt <ryandes...@macports.org> wrote:
>> 
>> 
>> On Jan 9, 2016, at 9:33 PM, Craig Treleaven wrote:
>> 
>>> I’m working on a new version of MythTV (0.28) and I’m stymied on the 
>>> following.  Every program (23), and every library and filter (28) is 
>>> reported by MacPorts to have a linking error similar to the following:
>>> 
>>> --->  Scanning binaries for linking errors
>>> …
>>> Incompatible library version: /opt/local/bin/mythavtest requires version 
>>> 64.0.0 or later, but 
>>> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
>>>  provides version 1.0.0
>>> DEBUG: Marking /opt/local/bin/mythavtest as broken
>>> 
>>> Web searches and whatnot have not turned up any promising leads so I beg 
>>> the indulgence of those more experienced than I.  
>>> 
>>> I’m running OS X 10.10.5 wtih Xcode 7.2 and up-to-date command line tools.  
>> 
>> What do you get when you run:
>> 
>> otool -L 
>> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
>>  
>> 
>> On my 10.10 and 10.11 systems, the first two lines are:
>> 
>> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices:
>>      
>> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
>>  (compatibility version 1.0.0, current version 48.0.0)
>> 
>> So, the OS provides ApplicationServices version 48.0.0 which is 
>> backward-compatible with 1.0.0. I'm not sure where you would have 
>> encountered a version 64.0.0 of ApplicationServices; it doesn't appear Apple 
>> has released any version that high yet.
>> 
> 
> I get the same as you:
> 
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices:
>       
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
>  (compatibility version 1.0.0, current version 48.0.0)
> 
> Perhaps it is just a coincidence, but I noticed the next line, CoreGraphics, 
> references “version 64.0.0”:
>       
> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 
> (compatibility version 64.0.0, current version 600.0.0)
> 
> 
>> Also, what do you get when you run:
>> 
>> otool -L /opt/local/bin/mythavtest
>> 
> 
> It links to 61 libraries/frameworks.  I’ll try attaching a file.
> <mythavtest otool output 2015Jan10.txt>
>> Maybe you have DYLD_LIBRARY_PATH set to a value that is causing the wrong 
>> libraries to be used.
>> 
> Don’t think so:
> 
> $ printenv |grep -i LIB
> PATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/mariadb/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
> 

Aha!  Did some careful checking and it appears that '-framework 
ApplicationServices’ was missing from the linker flags.  Adding that appears to 
have cured the problem.

Sorry for th noise.

Craig


_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to