[R] Install problem on Solaris 9

Shields, Rusty (IMS) ShieldsR at imsweb.com
Tue Apr 19 17:28:19 CEST 2005


Sorry.  I posted the contents of foreign.ts.out from an attempted "make"
that included the -m64 options for the gcc, etc.  

I'm running

	./configure --prefix=/opt/net/r

My config.site contains:

    CC="gcc"
    CPPFLAGS="-I/usr/include"
    F77="g77"
    LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
    CXX="g++"

Everything worked fine up until it got to the "foreign" package.

>From config.log, these messages appear.  Are they related?

	configure:4488: gcc -c -g -O2 -I/usr/include conftest.c >&5
	conftest.c:2: error: parse error before "me"
	configure:4494: $? = 1
	configure: failed program was:
	| #ifndef __cplusplus
	|   choke me
	| #endif

and >>>>>>>>>>>>>>

	configure:5894: g++ -c -g -O2 -I/usr/include conftest.cc >&5
	conftest.cc: In function `int main()':
	conftest.cc:20: error: `exit' undeclared (first use this
function)
	conftest.cc:20: error: (Each undeclared identifier is reported
only once for each function it appears in.)
	configure:5900: $? = 1
	configure: failed program was:
	| /* confdefs.h.  */
	| 
	| #define PACKAGE_NAME "R"
	| #define PACKAGE_TARNAME "R"
	| #define PACKAGE_VERSION "2.0.1"
	| #define PACKAGE_STRING "R 2.0.1"
	| #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
	| #define PACKAGE "R"
	| #define VERSION "2.0.1"
	| #define R_PLATFORM "sparc-sun-solaris2.9"
	| #define R_CPU "sparc"
	| #define R_VENDOR "sun"
	| #define R_OS "solaris2.9"
	| #define Unix 1
	| /* end confdefs.h.  */
	| 
	| int
	| main ()
	| {
	| exit (42);
	|   ;
	|   return 0;
	| }

and >>>>>>>>>

	configure:21326: gcc -o conftest -g -O2 -I/usr/include
-L/opt/net/utils/gcc3.4.1/lib/ conftest.c -lncurses  -lm  >&5
	ld: fatal: library -lncurses: not found
	ld: fatal: File processing errors. No output written to conftest
	collect2: ld returned 1 exit status
	configure:21332: $? = 1
	configure: failed program was:
	| /* confdefs.h.  */
	| 
	| #define PACKAGE_NAME "R"
	| #define PACKAGE_TARNAME "R"
	| #define PACKAGE_VERSION "2.0.1"
	| #define PACKAGE_STRING "R 2.0.1"
	| #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
	| #define PACKAGE "R"
	| #define VERSION "2.0.1"
	| #define R_PLATFORM "sparc-sun-solaris2.9"
	| #define R_CPU "sparc"
	| #define R_VENDOR "sun"
	| #define R_OS "solaris2.9"
	| #define Unix 1
	| #ifdef __cplusplus
	| extern "C" void std::exit (int) throw (); using std::exit;
	| #endif
	| #define STDC_HEADERS 1
	| #define HAVE_SYS_TYPES_H 1
	| #define HAVE_SYS_STAT_H 1
	| #define HAVE_STDLIB_H 1
	| #define HAVE_STRING_H 1
	| #define HAVE_MEMORY_H 1
	| #define HAVE_STRINGS_H 1
	| #define HAVE_INTTYPES_H 1
	| #define HAVE_UNISTD_H 1
	| #define HAVE_DLFCN_H 1
	| #define HAVE_LIBM 1
	| /* end confdefs.h.  */
	| 
	| 
	| int
	| main ()
	| {
	| main ();
	|   ;
	|   return 0;
	| }

>>>>>>>>>>>

There are more but I'll stop here for now.  I assumed that this were no
big deal since I got the message 

	R is now configured for sparc-sun-solaris2.9

when configure finished running.

Thanks.

Rusty

-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de] 
Sent: Tuesday, April 19, 2005 7:37 AM
To: Shields, Rusty (IMS)
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Install problem on Solaris 9


Shields, Rusty (IMS) wrote:

> Did I post this to the right mail list?  Is there another list that is
> more appropriate for this type of question?
> 
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Shields, Rusty
> (IMS)
> Sent: Monday, April 18, 2005 12:09 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Install problem on Solaris 9
> 
> 
> I'm trying to install R-2.0.1 on Solaris 9 and I'm receiving the
> following error messages during make.
>  
>     begin installing recommended package foreign
>     make[2]: *** [foreign.ts] Error 1
>     make[2]: Leaving directory
> `/opt/net/source/R-2.0.1/src/library/Recommended'
>     make[1]: *** [recommended-packages] Error 2
>     make[1]: Leaving directory
> `/opt/net/source/R-2.0.1/src/library/Recommended'
>     make: *** [stamp-recommended] Error 2
> 
>  
> A review of src/library/Recommended/foreign.ts.out shows:
>  
>     * Installing *source* package 'foreign' ...
>     configure: loading cache /dev/null
>     checking for gcc... make[3]: Entering directory
> `/tmp/R.INSTALL.169/foreign'
>     gcc -m64
>     make[3]: Leaving directory `/tmp/R.INSTALL.169/foreign'
>     checking for C compiler default output file name... configure:
> error: C compiler cannot create executables
>     See `config.log' for more details.
>     ERROR: configuration failed for package 'foreign'
> 
>  
> A review of config.log does not reveal anything terribly useful.
>  
> I'm using gcc, g77, and g++ v3.4.1, 32 bit builds (I think), all

32bit builds?
A few lines above the line "gcc -m64" suggests to check again and 
compile also with 32-bit.

Did everything before foreign work smoothly?
Which configure options have you specified?
Any errors or warnings from configure?

Uwe Ligges




> installed under /opt/net/utils/gcc3.4.1, which is in the path.
>  
>
LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l
> ib:/otherstuff
>  
> My config.site contains:
> 
>     CC="gcc"
>     CPPFLAGS="-I/usr/include"
>     F77="g77"
>     LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
>     CXX="g++"
>  
>  
> What should I be looking for here?
>  
> Thanks.
>  
> Rusty
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list