After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 466417 - Gnucash 2.2.0 doesn't launch under MacOS X/MacPorts
Gnucash 2.2.0 doesn't launch under MacOS X/MacPorts
Status: VERIFIED INCOMPLETE
Product: GnuCash
Classification: Other
Component: General
2.2.x
Other Mac OS
: Normal critical
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2007-08-13 23:06 UTC by David Rowe
Modified: 2018-06-29 21:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Rowe 2007-08-13 23:06: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.
Comment 1 David Rowe 2007-08-15 00:15:46 UTC
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.
Comment 2 Christian Stimming 2007-08-17 08:02:52 UTC
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?
Comment 3 Christian Stimming 2007-10-30 09:14:08 UTC
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!
Comment 4 John Ralls 2018-06-29 21:45:47 UTC
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.