New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17910 (new defect)

Opened 3 years ago

Last modified 3 years ago

xmgrace not working on OS X Leapord

Reported by: okhalid.cern@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: mcalhoun@…, ryandesign@…, illogic-al@…
Port: grace

Description (last modified by ryandesign@…) (diff)

Hi,

I have installed grace-5.1.22 on my machine. Macports successfully installed Grace and i can locate it, man pages work so does the command line grace interface.

But when i launches xmgrace from the console, it fails with the following error:

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: /Users/okhalid/usr/local/bin/MacPorts-1.7.0/lib/libjpeg.62.dylib

Trace/BPT trap

Thanks for your help. Regards

Omer

Change History

  Changed 3 years ago by jmr@…

  • priority changed from High to Normal
  • port set to grace

follow-up: ↓ 3   Changed 3 years ago by macsforever2000@…

  • cc omer.khalid@… removed

xmgrace works fine for me on Leopard. Did you install macports into a non-standard directory? if so, what is it? I have libjpeg.62.dylib at:

/opt/local/lib/libjpeg.62.dylib

Also, what does the following command return:

port installed grace jpeg

in reply to: ↑ 2   Changed 3 years ago by okhalid.cern@…

Replying to macsforever2000@…:

xmgrace works fine for me on Leopard. Did you install macports into a non-standard directory? if so, what is it? I have libjpeg.62.dylib at: {{{ /opt/local/lib/libjpeg.62.dylib }}}

I re-installed macports under standard location and now there is libjpeg.62.dy under /opt/local/lib/

It's also available under: /Users/okhalid/usr/local/bin/MacPorts-1.7.0/lib/

Also, what does the following command return: {{{ port installed grace jpeg }}}

I did the same as before; just re-installed every thing...

I think the problem is with the libjpeg. The installed version by macports is jpeg @ver7_b3 and my guess is that there is a bug in it which is crashing due to ]dyld: Symbol not found: cg_jpeg_resync_to_restart

How can i install another and stable version of libjpeg via macports?

  Changed 3 years ago by okhalid.cern@…

I have checked on the www.ijg.org . libjpeg version 3.6b is considered stable since Mar 1998...so I am not sure about my theory about the bug in it :-S

hmm...it might be due to my OS X 10.5.5

Any body else saw the same problem?

  Changed 3 years ago by okhalid.cern@…

I found the source of problem. There is a libJPEG.dylib on my system already which is actually conflicting with the libjpeg.dylib from macports.

[1]  http://lists.macromates.com/textmate/2006-June/011449.html [2]  http://www.nabble.com/dyld:-Symbol-not-found:-__cg_jpeg_resync_to_restart-td9949988.html

Now I have tried this in my ~/.profile and ~/.basrc : export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:$DYLD_FALLBACK_LIBRARY_PATH It does not work :-(

I have renamed the libJPEG.dylib to libJPEG.dylib under: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources

And then created a symbolic link in there to /opt/local/lib/libjpeg.62.dylib

But no luck! Any more ideas?

  Changed 3 years ago by mcalhoun@…

  • cc mcalhoun@… added

Cc Me!

  Changed 3 years ago by mcalhoun@…

grace works fine on my machine as well.

I wonder how any library found
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib.

What is the result of

otool -L /opt/local/bin/xmgrace /opt/local/lib/libjpeg.62.dylib

?

  Changed 3 years ago by ryandesign@…

  • cc ryandesign@… added
  • description modified (diff)

Replying to okhalid.cern@…:

Now I have tried this in my ~/.profile and ~/.basrc : export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:$DYLD_FALLBACK_LIBRARY_PATH It does not work :-(

You should not set DYLD_FALLBACK_LIBRARY_PATH. It is not necessary and can cause problems.

I have renamed the libJPEG.dylib to libJPEG.dylib under: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources And then created a symbolic link in there to /opt/local/lib/libjpeg.62.dylib

You should not change anything in /System. This will likely cause problems for your operating system. You should change it back to the way it was.

  Changed 3 years ago by illogic-al@…

I've seen this problem too with the kdepim4 package. The patch included (which is horribly horrible) is an attempt to work around this. I'm also on Leopard running macports 1.7.0 on OS 10.5.6

  Changed 3 years ago by illogic-al@…

  • cc illogic-al@… added

Cc Me!

  Changed 3 years ago by illogic-al@…

See ticket #18393 and r46678.

  Changed 3 years ago by illogic-al@…

files/patch-kresources-CMakeLists.diff is the patch. It just prevents the directory showing this error from compiling.

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.