Message: Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) 

Forum: Installation and Configuration
Re: Warning DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) (Mojca Miklavec)
Date: 29 Jul, 2012
From: Ben Morgan <Ben Morgan>

Hi Mojca,

On Sat, 28 Jul 2012 12:26:24 GMT, Mojca Miklavec wrote:
> The problem is that DYLD_LIBRARY_PATH variable spoils the game. Namely,
> I end up with another crash:
> 
> 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.dylib
>  in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
> Trace/BPT trap: 5
> 
> After unsetting DYLD_LIBRARY_PATH the examples start working properly.
> Is there any generic remedy for that?

I think it'll depends how you want to set up the portfile and applications. The easiest thing to do is probably to wrap your application in a script which sets up the data library paths before running the application. That's a little hacky I admit, but would get it working. The other option is to add a patch to the portfile to remove the setting of the PATH and DYLD_LIBRARY_PATH - though here you'd still need to source the script before running the programs.

Ben.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart)   (Mojca Miklavec - 30 Jul, 2012)
 Add Message Add Message
to: "Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]