Sorry about the earlier confusion.  I'll start fresh here.
 
I'm getting these error messages when I run "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

I'm configuring with 
    
    ./configure --prefix=/opt/net/r
 
which records some error messages in config.log, but returns
 
    R is now configured for sparc-sun-solaris2.9

which indicates to me that configure ran OK.
 
I'm running this on Solaris 9, using GCC, G77, G++ 3.4.1.
 
Some files of possible interest:
 
>>>>>> config.site >>>>>>>
 
CC="gcc"
CPPFLAGS="-I/usr/include"
F77="g77"
LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/" 
CXX="g++"
 
>>>>>>>>>>>>>>>>>>>>>>
 
 
>>>>>> foreign.ts.out >>>>>
 
* Installing *source* package 'foreign' ...
configure: loading cache /dev/null
checking for gcc... make[3]: Entering directory
`/tmp/R.INSTALL.14275/foreign'
gcc
make[3]: Leaving directory `/tmp/R.INSTALL.14275/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'

>>>>>>>>>>>>>>>>>>>>>>
 
 
>>>>>> errors appearing in config.log >>>>>
 
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

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 "[EMAIL PROTECTED]"
| #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;
| }

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 "[EMAIL PROTECTED]"
| #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;
| }

configure:23304: gcc -c -g -O2 -I/usr/include conftest.c >&5
conftest.c: In function `main':
conftest.c:73: error: `bogus' undeclared (first use in this function)
conftest.c:73: error: (Each undeclared identifier is reported only once
conftest.c:73: error: for each function it appears in.)
conftest.c:73: error: parse error before "endian"
configure:23310: $? = 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 "[EMAIL PROTECTED]"
| #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
| #define HAVE_LIBTERMCAP 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBREADLINE 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ELF_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FLOATINGPOINT_H 1
| #define HAVE_GRP_H 1
| #define HAVE_IEEEFP_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_PWD_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STRING_H 1
| #define HAVE_POSIX_SETJMP 1
| #define RETSIGTYPE void
| #define HAVE_DECL_SIZE_MAX 1
| #define SOCKLEN_T socklen_t
| /* end confdefs.h.  */
| #include <sys/types.h>
| #include <sys/param.h>
| 
| int
| main ()
| {
| #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|  bogus endian macros
| #endif
| 
|   ;
|   return 0;
| }

configure:26038: gcc -o conftest -g -O2 -I/usr/include
-L/opt/net/utils/gcc3.4.1/lib/ conftest.c cfortran_test.o -lreadline
-ldl -ltermcap -lm   -L/usr/ccs/lib -L/usr/lib
-L/opt/net/utils/gcc3.4.1/lib/
-L/opt/net/utils/gcc3.4.1/lib/gcc/sparc-sun-solaris2.9/3.4.1
-L/usr/ccs/bin
-L/opt/net/utils/gcc3.4.1/lib/gcc/sparc-sun-solaris2.9/3.4.1/../../..
-lfrtbegin -lg2c -lm -lgcc_s >&5
Undefined   first referenced
 symbol         in file
foobar                              /var/tmp//cc4fMBxp.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:26044: $? = 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 "[EMAIL PROTECTED]"
| #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
| #define HAVE_LIBTERMCAP 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBREADLINE 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ELF_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FLOATINGPOINT_H 1
| #define HAVE_GRP_H 1
| #define HAVE_IEEEFP_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_PWD_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STRING_H 1
| #define HAVE_POSIX_SETJMP 1
| #define RETSIGTYPE void
| #define HAVE_DECL_SIZE_MAX 1
| #define SOCKLEN_T socklen_t
| #define WORDS_BIGENDIAN 1
| #define R_INLINE inline
| #define SIZEOF_INT 4
| #define INT_32_BITS 1
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_LONG_DOUBLE 16
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char foobar ();
| #ifdef F77_DUMMY_MAIN
| 
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int F77_DUMMY_MAIN() { return 1; }
| 
| #endif
| int
| main ()
| {
| foobar ();
|   ;
|   return 0;
| }

configure:26125: gcc -o conftest -g -O2 -I/usr/include
-L/opt/net/utils/gcc3.4.1/lib/ conftest.c cfortran_test.o -lreadline
-ldl -ltermcap -lm   -L/usr/ccs/lib -L/usr/lib
-L/opt/net/utils/gcc3.4.1/lib/
-L/opt/net/utils/gcc3.4.1/lib/gcc/sparc-sun-solaris2.9/3.4.1
-L/usr/ccs/bin
-L/opt/net/utils/gcc3.4.1/lib/gcc/sparc-sun-solaris2.9/3.4.1/../../..
-lfrtbegin -lg2c -lm -lgcc_s >&5
Undefined   first referenced
 symbol         in file
foo_bar_                            /var/tmp//ccuNwgPP.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:26131: $? = 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 "[EMAIL PROTECTED]"
| #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
| #define HAVE_LIBTERMCAP 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBREADLINE 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ELF_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FLOATINGPOINT_H 1
| #define HAVE_GRP_H 1
| #define HAVE_IEEEFP_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_PWD_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STRING_H 1
| #define HAVE_POSIX_SETJMP 1
| #define RETSIGTYPE void
| #define HAVE_DECL_SIZE_MAX 1
| #define SOCKLEN_T socklen_t
| #define WORDS_BIGENDIAN 1
| #define R_INLINE inline
| #define SIZEOF_INT 4
| #define INT_32_BITS 1
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_LONG_DOUBLE 16
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char foo_bar_ ();
| #ifdef F77_DUMMY_MAIN
| 
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int F77_DUMMY_MAIN() { return 1; }
| 
| #endif
| int
| main ()
| {
| foo_bar_ ();
|   ;
|   return 0;
| }

configure:29271: gcc -o conftest -g -O2 -I/usr/include
-L/opt/net/utils/gcc3.4.1/lib/ conftest.c -lreadline -ldl -ltermcap -lm
>&5
Undefined   first referenced
 symbol         in file
setenv                              /var/tmp//cc8mSUF1.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:29277: $? = 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 "[EMAIL PROTECTED]"
| #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
| #define HAVE_LIBTERMCAP 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBREADLINE 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ELF_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FLOATINGPOINT_H 1
| #define HAVE_GRP_H 1
| #define HAVE_IEEEFP_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_PWD_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STRING_H 1
| #define HAVE_POSIX_SETJMP 1
| #define RETSIGTYPE void
| #define HAVE_DECL_SIZE_MAX 1
| #define SOCKLEN_T socklen_t
| #define WORDS_BIGENDIAN 1
| #define R_INLINE inline
| #define SIZEOF_INT 4
| #define INT_32_BITS 1
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_LONG_DOUBLE 16
| #define F77_FUNC(name,NAME) name ## _
| #define F77_FUNC_(name,NAME) name ## __
| #define HAVE_F77_UNDERSCORE 1
| #define HAVE_DOUBLE_COMPLEX 1
| #define SHLIB_EXT ".so"
| #define HAVE_OFF_T 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_ACCESS 1
| #define HAVE_CHDIR 1
| #define HAVE_EXPM1 1
| #define HAVE_FCNTL 1
| #define HAVE_FINITE 1
| #define HAVE_FSEEKO 1
| #define HAVE_FTELLO 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_GETCWD 1
| #define HAVE_GETGRGID 1
| #define HAVE_GETPWUID 1
| #define HAVE_GETUID 1
| #define HAVE_HYPOT 1
| #define HAVE_ISASCII 1
| #define HAVE_LOG1P 1
| #define HAVE_MATHERR 1
| #define HAVE_MKFIFO 1
| #define HAVE_POPEN 1
| #define HAVE_PUTENV 1
| #define HAVE_RINT 1
| /* end confdefs.h.  */
| /* Define setenv to an innocuous variant, in case <limits.h> declares
setenv.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define setenv innocuous_setenv
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char setenv (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef setenv
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char setenv ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined (__stub_setenv) || defined (__stub___setenv)
| choke me
| #else
| char (*f) () = setenv;
| #endif
| #ifdef __cplusplus
| }
| #endif
| 
| #ifdef F77_DUMMY_MAIN
| 
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int F77_DUMMY_MAIN() { return 1; }
| 
| #endif
| int
| main ()
| {
| return f != setenv;
|   ;
|   return 0;
| }

There are more, but I will stop here for now.  I'm just not sure how
much to include.
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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

Reply via email to