Opened 15 years ago

Closed 8 years ago

#17910 closed defect (worksforme)

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: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), ryandesign (Ryan Carsten Schmidt), illogic-al@…
Port: grace

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (14)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Port: grace added
Priority: HighNormal

comment:2 Changed 15 years ago by mf2k (Frank Schima)

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

comment:3 in reply to:  2 Changed 15 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?

comment:4 Changed 15 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?

comment:5 Changed 15 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?

comment:6 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:7 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

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

?

comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:9 Changed 15 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

comment:10 Changed 15 years ago by illogic-al@…

Cc: illogic-al@… added

Cc Me!

comment:11 Changed 15 years ago by illogic-al@…

See ticket #18393 and r46678.

comment:12 Changed 15 years ago by illogic-al@…

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

comment:13 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:14 Changed 8 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

No further response from reporter. Stale issue.

Note: See TracTickets for help on using tickets.