Skip to content
Prev 68035 / 398506 Next

Install problem on Solaris 9

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.
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:

            
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
LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l
http://www.R-project.org/posting-guide.html