Dear friends,
I am trying to install R-2.4.1 from source on Solaris 11 x-86_64.
running on Sun Ultra-20 workstation, and using the SunStudio 11 compilers.
I was able to "configure" R correctly, but received an error in "make",
aparently related to bzip2 which I have been unable to debug.
The messages are listed below.
The configure.log and configure.site and teh terminal output with the
error message files are attached.
Any help would be sincerely appreciated, as I have exausted my debugging
resources. I believe that there is a problem with the configure script
in dealing with my particular setup.
Octavio Tourinho
#! /bin/sh
### This file is part of R.
###
### R is free software; you can redistribute it and/or modify it under
### the terms of the GNU General Public License as published by the Free
### Software Foundation; either version 2 of the License, or (at your
### option) any later version.
###
### R is distributed in the hope that it will be useful, but WITHOUT ANY
### WARRANTY; without even the implied warranty of MERCHANTABILITY or
### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
### License for more details.
###
### You should have received a copy of the GNU General Public License
### along with R; if not, you can obtain it via the World Wide Web at
### 'http://www.gnu.org/copyleft/gpl.html', or by writing to the Free
### Software Foundation,
### 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
## By means of this file you can (also) provide default values for the
## configuration process. To set variables, uncomment the VAR=DEFAULT
## lines and set DEFAULT according to your needs.
## The command used to spool PostScript files to the printer.
## If unspecified, the system will look for either 'lpr' or 'lp'.
## R_PRINTCMD=lp
## The paper size for the local (PostScript) printer.
## It must either be left blank or set to one of 'a4' or 'letter'.
## If left blank the system will use 'a4'.
## R_PAPERSIZE=a4
## Set the default behavior of R when ending a session
## Set this to one of '--save' or '--no-save' depending whether you
## want automatic saving of '.RData' or not.
## Note that this applies to interactive and batch use,
## but NOT to the utility R CMD BATCH
## (which defaults to --save irrespective of this setting)
## R_BATCHSAVE=
## The command which runs the C compiler.
## If unspecified, a search is made for gcc and cc (in that order).
## To override this choice, specify the name of the command which runs
## the compiler here, for example 'c89'.
## It is also convenient to set the architecture here, e.g. 'gcc -m32'.
## NB, as from R 2.5.0 configure will append flags for C99 compliance,
## e.g. CC=gcc -std=gnu99
## To avoid this, set contradictory flags (such as -ansi) as part of CFLAGS.
## CC="/opt/SUNWspro/bin/cc -xarch=amd64"
## CC=gcc -std=gnu99
## Debugging and optimization options for the C compiler.
## Use this to specify CFLAGS for the version of the C compiler
## specified above.
## If unspecified, defaults to '-g -O2' for gcc,
## and '-g' in all other cases except icc (for which see R-admin.html).
## CFLAGS="-xO3"
## Defines for C compilation.
## Use this to specify defines to be used in the compilation of R,
## e.g. -DUSE_TYPE_CHECKING_STRICT
## DEFS=
## The following additional CFLAGS to be used only in the main
## compilation and only in building shared libraries respectively.
## For example, on some systems one needs 'MAIN_CFLAGS=-pg' when
## profiling.
## MAIN_CFLAGS=
## SHLIB_CFLAGS=
## Header file search directory ('-IDIR') and any other miscellaneous
## options (such as defines) for the C preprocessor and compiler.
## If unset defaults to '-I/usr/local/include', with '-I/sw/include'
## prepended on systems using Fink with root '/sw'.
## CPPFLAGS="-I/usr/local/include -I/usr/local/include/readline
-I/usr/sfw/include"
## The command which runs the FORTRAN 77 compiler.
## If this is not specified, a search is made for
## f95 fort xlf95 ifort ifc efc pgf95 lf95 gfortran ftn g95
## f90 xlf90 pgf90 pghpf epcf90
## g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77
## On HPUX fort77 is the POSIX compliant FORTRAN compiler, and replaces
## f77 in the search list.
## If CC is gcc, first preference is given to the matching FORTRAN
## compiler (g77 or gfortran).
## If none of these is found, R cannot be compiled.
## F77="opt/SUNWspro/bin/f95 -xarch=amd64"
## Options for the FORTRAN 77 compiler.
## Use this to specify FFLAGS for the version of the compiler specified
## above. If unspecified, defaults to '-g -O2' for g77, and '-g' if
## this is accepted, otherwise ''.
## FFLAGS="-xO3"
## Options for safe compilation under the FORTRAN 77 compiler.
## Use this to specify FFLAGS for the version of the compiler specified
## above, using as accurate a result as possible, e.g. no optimization
## or using -ffloat-store.
## SAFE_FFLAGS=
## The following additional FFLAGS to be used only in the main
## compilation and only in building shared libraries respectively.
## For example, on some systems one needs 'MAIN_FFLAGS=-pg' when
## profiling.
## MAIN_FFLAGS=
## SHLIB_FFLAGS=
## The command to be used to load the main R binary.
## This is usually the FORTRAN 77 or C compiler, but the automatic
## choice can be overriden by means of this variable.
## MAIN_LD=
## The flags which are necessary for loading main program which will
## load DLLs at runtime. HP-UX and Linux-elf are examples of platforms
## which use this. These platforms are already taken care of by
## configure, and anything set here will be in addition unless MAIN_LD
## is given.
## For example, one can set flags for profiling here.
## MAIN_LDFLAGS=
## Any special flags which must be used when compiling C code to be
## turned into a shared library. This is typically something like
## '-fpic' or '-fPIC'. If this variable is left unspecified an attempt
## is made to automatically detect the correct value by configure.
## CPICFLAGS=
## The following variable can be used to provide any PIC flags for the
## FORTRAN 77 compiler. If this variable is left
## unspecified an attempt is made to automatically detect the correct
## value by configure.
## FPICFLAGS=
## The command to be used to create shared objects which contain object
## files from a C or FORTRAN 77 compiler only. This is usually the C
## compiler or 'ld', but the automatic choice can be overridden by means
## of this variable.
## SHLIB_LD=
## Any special flags which are required by the linker when creating
## shared objects containing object files from a C or FORTRAN 77
## compiler only. This is usually automatically detected by configure,
## and anything set here will be in addition unless SHLIB_LD is given.
## SHLIB_LDFLAGS=
## ditto for a dynamic library: DYLIB_LDFLAGS defaults to SHLIB_LDFLAGS
## DYLIB_LD=
## DYLIB_LDFLAGS=
## The appropriate 'lib' dir, normally 'lib', but 'lib64' on Linux on
## x86_64, mips64, ppc64, sparc64, s390x but not ia64.
## LIBnn=
## Stripping ('-s'), path ('-L'), and any other miscellaneous options
## for the linker.
## '-L' options set here will be prepended to LD_LIBRARY_PATH (or its
## system equivalent) at run time.
## If unset defaults to '-L/usr/local/lib', with '-L/sw/lib' prepended
## on systems using Fink with root '/sw'.
## On some Linux 64-bit systems its default is -L/usr/local/lib64.
## If LIBnn is set it defaults to -L/usr/local/$LIBnn.
## LDFLAGS=" -L/usr/lib/amd64 -L/usr/sfw/lib/amd64 -R/usr/lib/amd64
-R/usr/sfw/lib/amd64"
## The command which runs the C++ compiler. It not specified, configure
## uses the values of the environment variables 'CXX' or 'CCC' if set,
## and then looks under the names 'c++', 'g++', 'gcc', 'CC', 'cxx', and
## 'cc++' (in that order).
CXX="/opt/SUNWspro/bin/CC -xarch=amd64"
## Options for the C++ compiler.
CXXFLAGS="-xO3"
## Any special flags which must be used when compiling C++ code to be
## turned into a shared library. If this variable is left unspecified
## an attempt is made to automatically detect the correct value by
## configure.
## CXXPICFLAGS=
## The command to be used to load shared libraries which contain object
## files from a C++ compiler. This is usually the C++ compiler/linker,
## but the automatic choice can be overridden by means of this
## variable.
## SHLIB_CXXLD=
## Any special flags which are required when creating shared libraries
## containing object files from a C++ compiler. This is usually
## automatically detected by configure, and anything set here will be in
## addition unless SHLIB_CXXLD is given.
## SHLIB_CXXLDFLAGS=
## FORTRAN 95 compiler: optional for use in packages.
## Analogous to the F77 and CXX settings.
FC="/opt/SUNWspro/bin/f95 -xarch=amd64"
FCFLAGS="-xO3"
## FCPICFLAGS=
## SHLIB_FCLD=$(FC)
## Unlike SHLIB_CXXLDFLAGS, SHLIB_FCLDFLAGS is never additional
## SHLIB_FCLDFLAGS=$(SHLIB_LDFLAGS)
## Tcl/Tk settings.
## Use TCLTK_LIBS for all '-L' and '-l' options needed for linking
## against the Tcl and Tk library.
TCLTK_LIBS="/usr/Activetcl-8.4/lib"
## Use TCLTK_CPPFLAGS for all '-I' options needed for finding the tcl.h
## and tk.h headers.
## TCLTK_CPPFLAGS=
## Browser default
## Default setting for the R_BROWSER env variable
## If unset configure searches in turn for (currently)
## firefox mozilla netscape galeon kfmclient opera gnome-moz-remote open
## and uses the full path.
## R_BROWSER=
## BLAS and LAPACK settings
## Use BLAS_LIBS for all '-L' and '-l' options needed for linking
## against an external BLAS implementation.
BLAS_LIBS="/opt/SUNWspro/prod/lib/amd64"
## Use LAPACK_LIBS for all '-L' and '-l' options needed for linking
## against an external LAPACK implementation.
## Note that (see R-admin) that our main intention is to allow a
## LAPACK-containing BLAS to be used, so this is rarely needed, and
## it is not used if the BLAS already contains LAPACK.
##LAPACK_LIBS=
## Make name.
## Set this if you want to use a make by another name.
## For example, if your GNU make is called 'gmake', use 'MAKE=gmake'.
## MAKE=
configure: creating ./config.status
config.status: creating Makeconf
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/html/Makefile
config.status: creating doc/html/search/Makefile
config.status: creating doc/manual/Makefile
config.status: creating etc/Makefile
config.status: creating etc/Makeconf
config.status: creating etc/Renviron
config.status: creating etc/ldpaths
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating share/Makefile
config.status: creating src/Makefile
config.status: creating src/appl/Makefile
config.status: creating src/extra/Makefile
config.status: creating src/extra/blas/Makefile
config.status: creating src/extra/bzip2/Makefile
config.status: creating src/extra/intl/Makefile
config.status: creating src/extra/pcre/Makefile
config.status: creating src/extra/xdr/Makefile
config.status: creating src/extra/zlib/Makefile
config.status: creating src/include/Makefile
config.status: creating src/include/Rmath.h0
config.status: creating src/include/R_ext/Makefile
config.status: creating src/library/Recommended/Makefile
config.status: creating src/library/Makefile
config.status: creating src/library/base/DESCRIPTION
config.status: creating src/library/base/Makefile
config.status: creating src/library/datasets/DESCRIPTION
config.status: creating src/library/datasets/Makefile
config.status: creating src/library/graphics/DESCRIPTION
config.status: creating src/library/graphics/Makefile
config.status: creating src/library/grDevices/DESCRIPTION
config.status: creating src/library/grDevices/Makefile
config.status: creating src/library/grDevices/src/Makefile
config.status: creating src/library/grid/DESCRIPTION
config.status: creating src/library/grid/Makefile
config.status: creating src/library/grid/src/Makefile
config.status: creating src/library/methods/DESCRIPTION
config.status: creating src/library/methods/Makefile
config.status: creating src/library/methods/src/Makefile
config.status: creating src/library/profile/Makefile
config.status: creating src/library/stats/DESCRIPTION
config.status: creating src/library/stats/Makefile
config.status: creating src/library/stats/src/Makefile
config.status: creating src/library/stats4/DESCRIPTION
config.status: creating src/library/stats4/Makefile
config.status: creating src/library/splines/DESCRIPTION
config.status: creating src/library/splines/Makefile
config.status: creating src/library/splines/src/Makefile
config.status: creating src/library/tcltk/DESCRIPTION
config.status: creating src/library/tcltk/Makefile
config.status: creating src/library/tcltk/src/Makefile
config.status: creating src/library/tools/DESCRIPTION
config.status: creating src/library/tools/Makefile
config.status: creating src/library/tools/src/Makefile
config.status: creating src/library/utils/DESCRIPTION
config.status: creating src/library/utils/Makefile
config.status: creating src/main/Makefile
config.status: creating src/modules/Makefile
config.status: creating src/modules/X11/Makefile
config.status: creating src/modules/internet/Makefile
config.status: creating src/modules/lapack/Makefile
config.status: creating src/modules/vfonts/Makefile
config.status: creating src/nmath/Makefile
config.status: creating src/nmath/standalone/Makefile
config.status: creating src/scripts/Makefile
config.status: creating src/scripts/COMPILE
config.status: creating src/scripts/INSTALL
config.status: creating src/scripts/REMOVE
config.status: creating src/scripts/R.sh
config.status: creating src/scripts/Rdconv
config.status: creating src/scripts/Rprof
config.status: creating src/scripts/SHLIB
config.status: creating src/scripts/Sd2Rd
config.status: creating src/scripts/build
config.status: creating src/scripts/check
config.status: creating src/unix/Makefile
config.status: creating tests/Makefile
config.status: creating tests/Embedding/Makefile
config.status: creating tests/Examples/Makefile
config.status: creating tests/Native/Makefile
config.status: creating tools/Makefile
config.status: creating src/include/config.h
config.status: src/include/config.h is unchanged
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing stamp-h commands
R is now configured for i386-pc-solaris2.11
Source directory: .
Installation directory: /usr/local
C compiler: gcc -std=gnu99 -D__NO_MATH_INLINES -g -O2
Fortran 77 compiler: g77 -g -O2
C++ compiler: /opt/SUNWspro/bin/CC -xarch=amd64 -xO3
Fortran 90/95 compiler: /opt/SUNWspro/bin/f95 -xarch=amd64 -xO3
Interfaces supported: X11
External libraries: readline
Additional capabilities: PNG, JPEG, NLS
Options enabled: shared BLAS, R profiling
Recommended packages: yes
configure: WARNING: you cannot build DVI versions of the R manuals
configure: WARNING: you cannot build PDF versions of the R manuals
# make
creating src/scripts/R.fe
config.status: creating src/include/config.h
config.status: src/include/config.h is unchanged
Rmath.h is unchanged
`libRblas.so' is up to date.
/usr/local/R/lib/libRblas.so is unchanged
`libbz2.a' is up to date.
`libpcre.a' is up to date.
`libz.a' is up to date.
../../../src/include/libintl.h is unchanged
../../../include/libintl.h is unchanged
`localecharset.h' is up to date.
`libintl.a' is up to date.
`libappl.a' is up to date.
`libnmath.a' is up to date.
`libunix.a' is up to date.
gcc -std=gnu99 -L/usr/local/lib -o R.bin Rmain.o CConverters.o
CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o
array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o
complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o
deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o
errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o graphics.o
identical.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o
main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o
options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o print.o
printarray.o printvector.o printutils.o qsort.o random.o regex.o
registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o size.o
sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o
summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o
../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a -L../../lib -lRblas
-lg2c -lm -R/usr/sfw/lib -lgcc_s ../extra/zlib/libz.a ../extra/bzip2/libbz2.a
../extra/pcre/libpcre.a ../extra/intl/libintl.a -lreadline -lncurses -lnsl
-lsocket -ldl -lm -liconv
Undefined first referenced
symbol in file
__Fz_div ../../lib/libRblas.so
__z_abs ../../lib/libRblas.so
__f95_sign ../../lib/libRblas.so
ld: fatal: Symbol referencing errors. No output written to R.bin
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `R.bin'
Current working directory /usr/local/R/src/main
*** Error code 1
The following command caused the error:
make install-bin-local
make: Fatal error: Command failed for target `R'
Current working directory /usr/local/R/src/main
*** Error code 1
The following command caused the error:
for d in scripts include extra appl nmath unix main modules library; do \
(cd ${d} && make R) || exit 1; \
done
make: Fatal error: Command failed for target `R'
Current working directory /usr/local/R/src
*** Error code 1
The following command caused the error:
for d in m4 tools doc etc share src tests po; do \
(cd ${d} && make R) || exit 1; \
done
make: Fatal error: Command failed for target `R'
#
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.