[R-SIG-Mac] ld error while installing odesolve from source

Vincent Detours vdetours at ulb.ac.be
Mon Feb 5 12:23:34 CET 2007

Hello all,

I run in the following 2 problems intalling odesolve_0.5-16.tar.gz a  
power PC powermac running mac osx 10.4.8.

1-The binary does install but I got

R version 2.4.0 (2006-10-03)
Copyright (C) 2006 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

 > options(STERM='iESS', editor='emacsclient')
 > version
platform       powerpc-apple-darwin8.8.0
arch           powerpc
os             darwin8.8.0
system         powerpc, darwin8.8.0
major          2
minor          4.0
year           2006
month          10
day            03
svn rev        39566
language       R
version.string R version 2.4.0 (2006-10-03)
 > library(odesolve)
Error: package 'odesolve' was built for universal-apple-darwin8.8.1
In addition: Warning message:
package 'odesolve' was built under R version 2.4.1

2-Installing from the source fails with a linker error:

% R CMD INSTALL odesolve_0.5-16.tar.gz
* Installing *source* package 'odesolve' ...
** libs
g77   -fPIC  -g -O2 -c bnorm.f -o bnorm.o
gcc -no-cpp-precomp -I/sw/lib/R-2.4.0/include -I/sw/lib/R-2.4.0/ 
include  -I/sw/include -I/usr/local/include    -fPIC  -g -O2 - 
std=gnu99 -c call_lsoda.c -o call_lsoda.o
call_lsoda.c: In function 'call_lsoda':
call_lsoda.c:109: warning: passing argument 1 of 'initializer' from  
incompatible pointer type
g77   -fPIC  -g -O2 -c cfode.f -o cfode.o
g77   -fPIC  -g -O2 -c dgbfa.f -o dgbfa.o
g77   -fPIC  -g -O2 -c dgbsl.f -o dgbsl.o
g77   -fPIC  -g -O2 -c dgefa.f -o dgefa.o
g77   -fPIC  -g -O2 -c dgesl.f -o dgesl.o
g77   -fPIC  -g -O2 -c ewset.f -o ewset.o
g77   -fPIC  -g -O2 -c fdump.f -o fdump.o
g77   -fPIC  -g -O2 -c fnorm.f -o fnorm.o
g77   -fPIC  -g -O2 -c i1mach.f -o i1mach.o
g77   -fPIC  -g -O2 -c intdy.f -o intdy.o
g77   -fPIC  -g -O2 -c j4save.f -o j4save.o
g77   -fPIC  -g -O2 -c lsoda.f -o lsoda.o
gcc -no-cpp-precomp -I/sw/lib/R-2.4.0/include -I/sw/lib/R-2.4.0/ 
include  -I/sw/include -I/usr/local/include    -fPIC  -g -O2 - 
std=gnu99 -c odesolve_utils.c -o odesolve_utils.o
g77   -fPIC  -g -O2 -c prja.f -o prja.o
g77   -fPIC  -g -O2 -c solsy.f -o solsy.o
g77   -fPIC  -g -O2 -c stoda.f -o stoda.o
g77   -fPIC  -g -O2 -c vmnorm.f -o vmnorm.o
gcc -dynamiclib -flat_namespace -undefined suppress -single_module - 
multiply_defined suppress -L/sw/lib -L/usr/local/lib -o odesolve.so  
bnorm.o call_lsoda.o cfode.o dgbfa.o dgbsl.o dgefa.o dgesl.o ewset.o  
fdump.o fnorm.o i1mach.o intdy.o j4save.o lsoda.o odesolve_utils.o  
prja.o solsy.o stoda.o vmnorm.o -framework vecLib -L/sw/lib/gcc/ 
powerpc-apple-darwin8.7.0/3.4.3 -lg2c -lSystemStubs -lSystem -lmx / 
usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a -L/sw/lib/gcc/ 
powerpc-apple-darwin8.7.0/3.4.3 -lg2c -lSystemStubs -lSystem -lmx / 
usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a -L/sw/lib/R-2.4.0/ 
lib -lR
ld: multiple definitions of symbol _i1mach_
i1mach.o definition of _i1mach_ in section (__TEXT,__text)
/sw/lib/R-2.4.0/lib/libR.dylib(single module) definition of _i1mach_
/usr/bin/libtool: internal link edit command failed
make: *** [odesolve.so] Error 1
ERROR: compilation failed for package 'odesolve'
** Removing '/sw/lib/R-2.4.0/library/odesolve'
** Restoring previous '/sw/lib/R-2.4.0/library/odesolve'

I have installed dozens other packages (from source) on my system, so
any idea about what is wrong with this one?

Vincent Detours

More information about the R-SIG-Mac mailing list