[Rd] FYI: issue with arpa/inet.h on SunOS 5.9 (old gcc?)

From: Don MacQueen <macq_at_llnl.gov>
Date: Mon, 5 Nov 2007 17:28:37 -0800


This just information of my experience installing R on SunOS 5.9 today, not a request for help.
(in case anyone cares, and if not, I apologize for the distraction)

I am building R 2.6.0 (patched; svn revision 43319, 2007-11-01) and encountered the problem described below.

I believe the problem is an old gcc (version 3.0.4, built some 5 years ago), because the warnings do not occur when I specify

    CC = cc
in the environment before configuring, and building R succeeds.

Hence I'm mailing to r-devel instead of r-bugs, as suggested in the warning messages.

I don't have much information about the cc I used (I'm not the sysadmin of this or any Solaris machine), other than it resides in
/opt/SUNWspro, and appears to be part of "Sun Studio 11", whatever
that is.

The messages from R's configure were:

configure: WARNING: arpa/inet.h: present but cannot be compiled
configure: WARNING: arpa/inet.h:     check for missing prerequisite headers?
configure: WARNING: arpa/inet.h: see the Autoconf documentation
configure: WARNING: arpa/inet.h:     section "Present But Cannot Be Compiled"
configure: WARNING: arpa/inet.h: proceeding with the preprocessor's result
configure: WARNING: arpa/inet.h: in the future, the compiler will 
take precedence
configure: WARNING:     ## ----------------------------------- ##
configure: WARNING:     ## Report this to r-bugs_at_R-project.org ##
configure: WARNING:     ## ----------------------------------- ##

And then the same set of warnings for

   netdb.h
   netinet/in.h
   sys/socket.h

At the very end configure reports:

configure: WARNING: could not determine type of socket length

Then, make fails with:

In file included from /usr/include/netinet/in.h:41,

                  from /usr/include/netdb.h:98,
                  from ../../../R-patched/src/main/platform.c:1586:

/usr/include/sys/stream.h:307: parse error before "projid_t"
make[3]: *** [platform.o] Error 1
make[3]: Leaving directory `/apps/kosapps/R/R-2.6.0/build/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/apps/kosapps/R/R-2.6.0/build/src/main'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/apps/kosapps/R/R-2.6.0/build/src'
make: *** [R] Error 1
-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 06 Nov 2007 - 01:32:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 06 Nov 2007 - 08:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.