[GNC] 4.10 cannot be opened on macOS Big Sur w/Apple Silicon

john jralls at ceridwen.us
Mon Mar 28 13:31:58 EDT 2022


This has been reported as https://bugs.gnucash.org/show_bug.cgi?id=798489
 <https://bugs.gnucash.org/show_bug.cgi?id=798489>
He's using Gnucash.app Sourceforge or Github, note the /Applications/Gnucash.app.. paths. He just happens to also have MacPorts installed.

@executable_path is a Mac linker feature that creates paths relative to the running executable, in this case /Applications/Gnucash.app/Contents/MacOS/Gnucash. .. means to back up one level, so @executable_path/../Resources//lib/libcairo-gobject.2.dylib tells the linker to look at /Applications/Gnucash.app/Contents/Resources/lib/libcairo-gobject.2.dylib. It's not linking the MacPorts version of libcairo-gobject.2.dylib.

The error message is quite clear: "Incompatible library version: libgtkmacintegration-gtk3.4.dylib requires version 11603.0.0 or later, but libcairo-gobject.2.dylib provides version 2.0.0" and your otool checks bear that out: (compatibility version 2.0.0, current version 2.0.0) vs. (compatibility version 11603.0.0, current version 11603.0.0). The linker would be happy if it was able to find the MacPorts libcairo-gobject, because ((compatibility version 11707.0.0, current version 11707.0.0): 11707 > 11603, but 2 isn't.

It's strange that it works on Monterey, not that it fails on BigSur (and earlier, as the bug reporter is using Catalina and another poster here is using Mojave).

Regards,
John Ralls



> On Mar 28, 2022, at 9:51 AM, William Prescott <will at theprescotts.com> wrote:
> 
> Are you installing it with MacPorts? Or from the .dmg file on SourceForge?
> 
> https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/4.10/Gnucash-Intel-4.10-1.dmg/download <https://sourceforge.net/projects/gnucash/files/gnucash%20(stable)/4.10/Gnucash-Intel-4.10-1.dmg/download>
> 
> Will
> 
> On 2022 Mar 28, at 03-28 10:33:09, John W. O'Brien via gnucash-user <gnucash-user at gnucash.org> wrote:
> 
> It looks like this might be a bad interaction with software installed via MacPorts, but I don't understand the versioning and dynamic loader well enough to be sure or to do anything about it.
> 
> $ otool -L /Applications/Gnucash.app/Contents/Resources/lib/libcairo-gobject.2.dylib | grep libcairo-gobject
> /Applications/Gnucash.app/Contents/Resources/lib/libcairo-gobject.2.dylib:
> 	@executable_path/../Resources//lib/libcairo-gobject.2.dylib (compatibility version 2.0.0, current version 2.0.0)
> $ otool -L /opt/local/lib/libcairo-gobject.2.dylib | grep libcairo-gobject
> /opt/local/lib/libcairo-gobject.2.dylib:
> 	/opt/local/lib/libcairo-gobject.2.dylib (compatibility version 11707.0.0, current version 11707.0.0)
> $ otool -L /Applications/Gnucash.app/Contents/Resources/lib/libgtkmacintegration-gtk3.4.dylib | grep libcairo-gobje
> ct
> 	@executable_path/../Resources/lib/libcairo-gobject.2.dylib (compatibility version 11603.0.0, current version 11603.0.0)
> 
> On 3/28/22 10:25, William Prescott wrote:
>> It ran fine on my MacBookPro M1 Max with Monterey.
>> Will
>> On 2022 Mar 28, at 03-28 08:03:09, John W. O'Brien via gnucash-user <gnucash-user at gnucash.org> wrote:
>> Good morning all,
>> Congratulations on the new release.
>> I am unable to run the new 4.10 on my MacBook Air (M1, 2020) with Big Sur (11.6.5). 4.9 has been running fine, as recently as this morning.
>> The essence of the crash log is:
>> ====
>> Termination Reason:    DYLD, [0x3] Wrong version
>> Application Specific Information:
>> dyld: launch, loading dependent libraries
>> Dyld Error Message:
>> Library not loaded: @executable_path/../Resources/lib/libcairo-gobject.2.dylib
>> Referenced from: /Applications/Gnucash.app/Contents/Resources/lib/libgtkmacintegration-gtk3.4.dylib
>> Reason: Incompatible library version: libgtkmacintegration-gtk3.4.dylib requires version 11603.0.0 or later, but libcairo-gobject.2.dylib provides version 2.0.0
>> ====
>> Full log is available on request.
>> What else could I do to diagnose and resolve this?
>> Thank you,
>> John
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list