From ripley@stats.ox.ac.uk  Mon Apr  1 22:29:49 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Mon, 1 Apr 2002 22:29:49 +0100 (BST)
Subject: [Rd] R compile on Solaris 8 fails (PR#1428)
In-Reply-To: <200204012019.WAA06615@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.31.0204012225160.2589-100000@gannet.stats>

Almost certainly your c++ is g++ installed in /usr/local, and
you don't have /usr/local/lib in your LD_LIBRARY_PATH.

In short
> checking whether the C++ compiler (c++  ) works... no

is correct, and that's not a problem with R but with your system.
First get a simple C++ program working.

If this is a current gcc (3.0.x), the same problem will occur with gcc
eventually in the build process (for libgcc.so).


On Mon, 1 Apr 2002 brower@bst.rochester.edu wrote:

> Full_Name: Christine Brower
> Version: 1.4.1
> OS: Solaris 8
> Submission from: (NULL) (128.151.148.205)
>
>
> Configure options fails with following message:
> ./configure --with-f77
> loading cache ./config.cache
> checking for a BSD compatible install... tools/install-sh -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... missing
> checking for working autoconf... missing
> checking for working automake... missing
> checking for working autoheader... missing
> checking for working makeinfo... found
> checking host system type... sparc-sun-solaris2.8
> loading site script ./config.site
> loading build specific script ./config.site
> checking for pwd... /usr/bin/pwd
> checking whether builddir is srcdir... yes
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> checking whether gcc needs -traditional... no
> checking whether gcc accepts -M for generating dependencies... yes
> checking whether gcc supports -c -o FILE.lo... yes
> checking for mawk... no
> checking for gawk... no
> checking for nawk... nawk
> checking whether ln -s works... yes
> checking for ranlib... ranlib
> checking for bison... no
> checking for byacc... no
> checking for ar... ar
> checking whether echo can suppress newlines... yes
> configure: warning: redefining INSTALL to be
> /disk/d5/a/R,v1.4.1/R/tools/install-sh -c
> checking for javac... /usr/bin/javac
> checking for less... /usr/bin/less
> checking for perl... /usr/bin/perl
> checking whether perl version is at least 5.004... yes
> checking for dvips... /usr/ucc/bin/dvips
> checking for tex... /usr/ucc/bin/tex
> checking for latex... /usr/ucc/bin/latex
> checking for makeindex... /usr/ucc/bin/makeindex
> checking for pdftex... no
> checking for pdflatex... no
> configure: warning: you cannot build PDF versions of the R manuals
> checking for makeinfo... /usr/ucc/bin/makeinfo
> checking for unzip... /usr/bin/unzip
> checking for zip... /usr/bin/zip
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking build system type... sparc-sun-solaris2.8
> checking for ld used by GCC... /usr/ccs/bin/ld
> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
> checking for /usr/ccs/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/ccs/bin/nm -p
> checking how to recognise dependant libraries... pass_all
> checking for object suffix... o
> checking for executable suffix... no
> checking command to parse /usr/ccs/bin/nm -p output... ok
> checking for dlfcn.h... yes
> checking for ranlib... (cached) ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo...
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... no
> checking dynamic linker characteristics... solaris2.8 ld.so
> checking if libtool supports shared libraries... yes
> creating libtool
> checking whether makeinfo version is at least 4... no
> configure: warning: you cannot build info versions of the R manuals
> checking for main in -lm... yes
> defining F77 to be f77
> checking whether the Fortran 77 compiler (f77  ) works... yes
> checking whether the Fortran 77 compiler (f77  ) is a cross-compiler... no
> checking whether we are using GNU Fortran 77... no
> checking for Fortran 77 libraries...  -R/a/SUNWspro/lib:/opt/SUNWspro/lib
> -L/a/SUNWspro/lib -L/a/SUNWspro/SC4.2/lib -L/usr/ccs/lib -L/usr/lib
> /a/SUNWspro/SC4.2/lib/libM77.a -lF77 -lsunmath -lm -lcx
> checking whether f77 appends underscores... yes
> checking whether f77 and gcc agree on int and double... yes
> checking whether f77 and gcc agree on double complex... yes
> checking whether f77 supports -c -o FILE.lo... no
> checking for c++... c++
> checking whether the C++ compiler (c++  ) works... no
> configure: error: installation or configuration problem: C++ compiler cannot
> create executables.
> ----------
> config.log reads:
> ----------
> configure:7263: checking whether f77 supports -c -o FILE.lo
> configure:7273: f77 -g -c conftest.f -o TMP/conftest.lo 1>&5
> f77: Suffix mismatch between -o and produced file (should produce .o)
> configure:7565: checking for c++
> configure:7597: checking whether the C++ compiler (c++  ) works
> configure:7613: c++ -o conftest  -I/usr/local/include  conftest.C
> -L/usr/local/lib 1>&5
> ld: fatal: library -lstdc++: not found
> ld: fatal: File processing errors. No output written to conftest
> configure: failed program was:
>
> #line 7608 "configure"
> #include "confdefs.h"
>
> int main(){return(0);}
>
> ------------
> I have installed gcc 2.95.3, it didn't seem to help.
> Any thoughts, tricks or help would be greatly appreciated!  Thank you!
>
> Chris
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] R compile on Solaris 8 fails (PR#1428)
ripley@stats.ox.ac.uk