Message: 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

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

Forum: Installation and Configuration
Date: 28 Jul, 2012
From: Mojca Miklavec <Mojca Miklavec>

I installed Geant4 9.5 with self-written package on MacPorts on Mac OS X 10.7 using CMake. The examples were compiled and installed, but I first need to run

    . /opt/local/bin/geant4.sh

to make (some of) them work. Without that command, exampleB1 would crash with

*************************************************************
 Geant4 version Name: geant4-09-05-patch-01    (20-March-2012)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : PhysicsLists002
      issued by : G4DataQuestionaire
.
Low energy electromagnetic data are needed.
This is a NEW requirement for standard EM physics since geant4 9.5.
Please set the environmental variable G4LEDATA
to point to your G4EMLOW directory. 
Note: EMLOW6.23 or above is needed for Bremsstrahlung data.
Data are available from the Geant4 download page.
.
Photon-evaporation data are needed.
Please set the environmental variable G4LEVELGAMMADATA
to point to your PhotonEvaporation directory.
Data are available from the Geant4 download page.
.
*** Fatal error: Missing mandatory data for this simulation engine ***
.
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------

*** G4Exception: Aborting execution *** Abort trap: 6

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?

Thank you,
    Mojca

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

1 None: Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart)   (Ben Morgan - 29 Jul, 2012)
(_ 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: "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 ]