Hi list,
    I tried to install MCMCpack to R-2.12.0, got the following error,
R CMD INSTALL MCMCpack_1.0-9.tar.gz
..........
CC -m64 -library=stlport4 -I/apps/sparcv9/R-2.12.0/lib/R/include -DSCYTHE_COMPILE_DIRECT -DSCYTHE_DEBUG=0 -DHAVE_TRUNC -DHAVE_IEEEFP_H   -I/opt/csw/include    -KPIC  -g -c MCMCSVDreg.cc<http://MCMCSVDreg.cc> -o MCMCSVDreg.o
"error.h", line 598: Error: The function "abort" must have a prototype.
"distributions.h", line 550: Error: The function "trunc" must have a prototype.
"distributions.h", line 550: Error: log1p is not a member of file level.
"distributions.h", line 566: Error: The function "trunc" must have a prototype.
"distributions.h", line 566: Error: log1p is not a member of file level.
"distributions.h", line 2177: Error: sqrt is not a member of file level.
6 Error(s) detected.
make: *** [MCMCSVDreg.o] Error 2
ERROR: compilation failed for package 'MCMCpack'
* removing '/apps/sparcv9/R-2.12.0/lib/R/library/MCMCpack'

root@dqssun4 local# which cc
/opt/solstudio12.2/bin/cc
root@dqssun4 local# which R
/apps/sparcv9/R-2.12.0/bin/R

The configure script for the successful R installation is the following,
CC="cc -xc99 -m64 -xarch=sparcvis2"
CPPFLAGS="-I/opt/csw/include"
CFLAGS="-xcode=abs64 -xlibmieee -xtarget=ultra3 -xarch=sparcvis2"
F77=f95
CXX="CC -m64 -library=stlport4"
FC=$F77
FFLAGS="-m64 -xarch=sparcvis2"
FCFLAGS=$FFLAGS
LDFLAGS="-L/opt/csw/lib/sparcv9 -L/opt/solstudio12.2/prod/lib/v9"
export CC CPPFLAGS CFLAGS F77 FFLAGS CXX CXXFLAGS FC FCFLAGS LDFLAGS
./configure --prefix=/apps/sparcv9/R-2.12.0 --with-tcl-config=/opt/csw/lib/tclCo
nfig.sh<http://nfig.sh> --with-tk-config=/opt/csw/lib/tkConfig.sh --disable-nls

Jun Zhang

	[[alternative HTML version deleted]]

