GNOME Bugzilla – Bug 466417
Gnucash 2.2.0 doesn't launch under MacOS X/MacPorts
Last modified: 2018-06-29 21:45:47 UTC
When I try to launch the current MacPorts (1.5.10) version of Gnucash 2.2.0 under Macos X 10.4.10, Gnucash crashes before the splash screen appears, with the following messages: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /opt/local/lib/libjpeg.62.dylib Trace/BPT trap >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> From what I can gather, the root of the problem is confusion between the MacOS library in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib and the MacPorts library in /opt/local/lib/libjpeg.dylib (an alias for libjpeg.62.dylib) The immediate cause of the problem seems to be that the Gnucash script now sets the environment variable: DYLD_LIBRARY_PATH="${EXTRA_LIBS}:${DYLD_LIBRARY_PATH}" which in my case produces the value: /opt/local/lib/gnucash::/opt/local/lib:/opt/local/lib/gnucash: The previous MacPorts version of Gnucash (2.0.5) worked OK and it did not set DYLD_LIBRARY_PATH I have raised this issue on the MacPorts Users Mailing list, but the consensus there was that this is a Gnucash issue - hence this report.
Following advice on the macports-users group, I tried out the following: I edited the shell script: /opt/local/bin/gnucash (the one that launches Gnucash): Line 20 originally read: DYLD_LIBRARY_PATH="${EXTRA_LIBS}:${DYLD_LIBRARY_PATH}" So I altered it to: #DYLD_LIBRARY_PATH="${EXTRA_LIBS}:${DYLD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:/opt/local/lib:/opt/local/lib/gnucash" and Gnucash 2.2.0 now loads and apparently runs its basic functions OK, though I have not tested it thoroughly. I doubt if the above is watertight, production-quality fix, but I am submitting it in case it is helps you diagnose the problem.
I'm afraid this is something that has to be fixed by the MacPorts maintainer of gnucash. Don't they have their own bugtracking system?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=466417. Please update any external references or bookmarks.