I have attempted to build the release R 2.1 on MacOS X 10.4 Tiger using gcc 4.0 The build is dying thus: building package 'graphics' mkdir ../../../library/graphics mkdir ../../../library/graphics/R mkdir ../../../library/graphics/demo mkdir ../../../library/graphics/po mkdir ../../../library/graphics/man Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/Users/billn/Public/R/R-2.1.0/ build/library/grDevices/libs/grDevices.so': dlopen(/Users/billn/Public/R/R-2.1.0/build/library/grDevices/libs/ grDevices.so, 6): 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: /usr/local/lib/libJPEG.dylib I don't really understand the error message. grDevices.so exists: [PBG4-BN:~] billn% otool -L /Users/billn/Public/R/R-2.1.0/build/ library/grDevices/libs/grDevices.so /Users/billn/Public/R/R-2.1.0/build/library/grDevices/libs/grDevices.so: /System/Library/Frameworks/AppKit.framework/Versions/C/ AppKit (compatibility version 45.0.0, current version 824.0.0) libR.dylib (compatibility version 2.1.0, current version 2.1.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.0.0) but the reference to /usr/local/lib/libJPEG.dylib baffles me. The library that is installed is called libjpeg.62.0.0.dylib and symlinked as libjpeg.62.dylib and libjpeg.dylib. Presumably __cg_jpeg_resync_to_restart is a symbol defined in CoreGraphics, but why is it looking in the non-existent libJPEG ??? Bill Northcott
Bill, On May 2, 2005, at 8:12 AM, Bill Northcott wrote:> Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library '/Users/billn/Public/R/ > R-2.1.0/build/library/grDevices/libs/grDevices.so': > dlopen(/Users/billn/Public/R/R-2.1.0/build/library/grDevices/libs/ > grDevices.so, 6): 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: /usr/local/lib/libJPEG.dylibIt's a problem in your library setup. Your /usr/local/lib/ libJPEG.dylib conflicts with the system libJPEG.dylib from ImageIO framework (which is in /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ Versions/A/Resources/libJPEG.dylib). Since R forces the load of the one in /usr/local/lib first (as you configured it), it is loaded instead of the one in ImageIO framework, but it doesn't contain the same symbols, thus the load fails. You should remove /usr/local/ libJPEG.dylib and use static version or ImageIO instead. Cheers, Simon
Apparently Analagous Threads
- R crashes in Mac OS 10.4 when Find is used (PR#9192)
- segmentation fault with Hmisc areg.boot(): Now acepack avas failure
- MacOSX 10.4.11 update breaks tests/lapack.R (R 2.6.0)? (PR#10454)
- R Cocoa GUI 1.12 (R 2.1.1 Framework) crashes on acf() (PR#8032)
- Tiger problems