i'm trying to  compile the source code for the package 'rimage', and it
fails  after  it starts compiling.  I have both fftw and jpeg packages
installed, and i'm currently running R 2.7.1 under gentoo x86_64. here  goes
the output from R while compiling the package: * Installing *source* package
'rimage' ...
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fftw.h usability... yes
checking fftw.h presence... yes
checking for fftw.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -g -O2 -I/usr/local/include
-fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3 -c
equalize.cpp -o equalize.o
x86_64-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib64/R/include -g -O2
-I/usr/local/include -fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident
-fweb -pipe -msse3 -c fftw_access_func.c -o fftw_access_func.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -g -O2 -I/usr/local/include
-fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3 -c
freqfilters.cpp -o freqfilters.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -g -O2 -I/usr/local/include
-fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3 -c
interface.cpp -o interface.o
x86_64-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib64/R/include -g -O2
-I/usr/local/include -fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident
-fweb -pipe -msse3 -c jpegio.c -o jpegio.o
x86_64-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib64/R/include -g -O2
-I/usr/local/include -fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident
-fweb -pipe -msse3 -c laplacian.c -o laplacian.o
laplacian.c: In function 'laplacian':
laplacian.c:14: warning: implicit declaration of function 'clearFrame'
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -g -O2 -I/usr/local/include
-fpic -O2 -march=core2 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3 -c
matrix.cpp -o matrix.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/bits/stl_vector.h: In
member function 'void std::vector<_Tp,
_Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type) [with
_Integer = int, _Tp = std::vector<double, std::allocator<double> >, _Alloc =
std::allocator<std::vector<double, std::allocator<double> > >]':
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/bits/stl_vector.h:290:
instantiated from 'std::vector<_Tp, _Alloc>::vector(_InputIterator,
_InputIterator, const _Alloc&) [with _InputIterator = int, _Tp =
std::vector<double, std::allocator<double> >, _Alloc =
std::allocator<std::vector<double, std::allocator<double> > >]'
matrix.cpp:31: instantiated from here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/bits/stl_vector.h:932:
error: no matching function for call to 'std::vector<std::vector<double,
std::allocator<double> >, std::allocator<std::vector<double,
std::allocator<double> > > >::_M_fill_initialize(size_t, int&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/bits/stl_vector.h:974:
note: candidates are: void std::vector<_Tp,
_Alloc>::_M_fill_initialize(size_t, const _Tp&) [with _Tp =
std::vector<double, std::allocator<double> >, _Alloc =
std::allocator<std::vector<double, std::allocator<double> > >]
make: *** [matrix.o] Error 1
chmod: cannot access `/usr/lib64/R/library/rimage/libs/*': No such file or
directory
ERROR: compilation failed for package 'rimage'
** Removing '/usr/lib64/R/library/rimage'

The downloaded packages are in
  /tmp/RtmpyySwOg/downloaded_packages
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("rimage", dependencies = TRUE) :
  installation of package 'rimage' had non-zero exit status

can someone help me with this?

thanks for the attention,

-- 

Guilherme Rodrigues Garcia

Laboratório de Evolução de Mamíferos - IB

Universidade de São Paulo - Brasil
+55 11 86274869

	[[alternative HTML version deleted]]

