From simon.urbanek at r-project.org  Sat Nov 15 02:33:45 2008
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 14 Nov 2008 20:33:45 -0500
Subject: [Rd] problem in downloading the rimage package
In-Reply-To: <4e835e290811141453y5cf0016dp91cc99c8fb45a144@mail.gmail.com>
References: <4e835e290811141453y5cf0016dp91cc99c8fb45a144@mail.gmail.com>
Message-ID: <105E6D54-5234-4A46-8360-2CA48821D1D2@r-project.org>


On Nov 14, 2008, at 5:53 PM, Shantanu D wrote:

> I am using a 64 bit machine with CentOS5. I am getting the following  
> errors
> when I try to install the rimage package
>
> g++ -shared -L/usr/local/lib64 -o rimage.so equalize.o  
> fftw_access_func.o
> freqfilters.o interface.o jpegio.o laplacian.o matrix.o smooth.o  
> sobel.o
> -ljpeg -lfftw
> /usr/bin/ld: /usr/local/lib/libfftw.a(fftwnd.o): relocation  
> R_X86_64_32
> against `a local symbol' can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libfftw.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [rimage.so] Error 1
> chmod: cannot access `/home/shantanu/R/rimage/libs/*': No such file or
> directory
> ERROR: compilation failed for package 'rimage'
>
>
> Any help would be appreciated. Could not find anything with google  
> search.
>

It helps to read the error, because that tells you all you need to  
know - you have to recompile libfftw with -fPIC (or use dynamic  
library instead of static one).

Cheers,
S



[Rd] problem in downloading the rimage package
Simon Urbanek