From simon.urbanek at r-project.org  Mon May  2 14:50:18 2005
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Mon May  2 14:50:27 2005
Subject: [Rd] MacOS X 10.4 build problem
In-Reply-To: <44470350-F1BB-4CE4-B123-7268F51D335B@unsw.edu.au>
References: <200505021004.j42A4ihR001699@hypatia.math.ethz.ch>
	<44470350-F1BB-4CE4-B123-7268F51D335B@unsw.edu.au>
Message-ID: <92898BB7-A6C8-4C8F-B0BD-598E5008F3AB@r-project.org>

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.dylib

It'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


[Rd] MacOS X 10.4 build problem
Simon Urbanek