[R] Are sockets supported on Irix?

Setzer.Woodrow@epamail.epa.gov Setzer.Woodrow at epamail.epa.gov
Tue Mar 20 17:15:59 CET 2001


You didn't mention it (and I haven't learned how to read the configure
script yet), but if the include of tcp.h failed, would that cause
HAVE_BSD_NETWORKING to be undefined?  Here is the relevant portion of
config.log:

configure:9643: checking for netdb.h
configure:9653: gcc -E -I/usr/people/setzer/programs/include
-I/usr/local/includ
e  conftest.c >/dev/null 2>conftest.out
configure:9643: checking for netinet/in.h
configure:9653: gcc -E -I/usr/people/setzer/programs/include
-I/usr/local/includ
e  conftest.c >/dev/null 2>conftest.out
configure:9643: checking for netinet/tcp.h
configure:9653: gcc -E -I/usr/people/setzer/programs/include
-I/usr/local/includ
e  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/netinet/tcp.h:29,
                 from configure:9649:
/usr/include/sys/endian.h:32: #error "<standards.h> must be included before
<sys
/endian.h>."
configure: failed program was:
#line 9648 "configure"
#include "confdefs.h"
#include <netinet/tcp.h>

Indeed, netinet/tcp.h includes sys/endian.h, which has the following
notation:

/*
 * NOTE: Use of this file is deprecated. Though, if this file should be
 *       included in a program, standards.h should be included before
 *       endian.h
 */
#if !defined(_SGIAPI)
#error "<standards.h> must be included before <sys/endian.h>."
#endif

standards.h defines _SGIAPI (so why not just replace the #error statement
with #include <standards.h>?  just rhetorical)

R. Woodrow Setzer, Jr.                                            Phone:
(919) 541-0128
Experimental Toxicology Division                       Fax:  (919) 541-5394
Pharmacokinetics Branch
NHEERL MD-74; US EPA; RTP, NC 27711


                                                                                                               
                    Prof Brian                                                                                 
                    Ripley               To:     Woodrow Setzer/RTP/USEPA/US at EPA                               
                    <ripley at stats        cc:     r-help at hypatia.math.ethz.ch                                   
                    .ox.ac.uk>           Subject:     Re: [R] Are sockets supported on Irix?                   
                                                                                                               
                    03/20/01                                                                                   
                    10:33 AM                                                                                   
                                                                                                               
                                                                                                               




On Tue, 20 Mar 2001 Setzer.Woodrow at epamail.epa.gov wrote:

> When I try to open a server socket on the system setup listed below, I
get
> the following error:
>
> > a <- make.socket(port=8091,server=TRUE)
> Error in make.socket(port = 8091, server = TRUE) :
>         sockets are not available on this system
>
> I just wanted to make sure that sockets were generally available for this
> platform (or, perhaps, I need to upgrade to 1.2.2 on this system), before
I
> got our generally overworked system administrators to look into the
problem
> here.  Thanks.

I don't know about that system. The message means that configure set
HAVE_BSD_NETWORKING to be not defined, and to define it headers
netdb.h, netinet/in.h and sys/socket.h are needed and connect
and gethostbyname need to be found.  You need to look in config.log to see
what happened.

It's possible that you need to specify some other libraries via LIBS.
We are not aware of many people using Irix, nor of many people using that
socket mechanism, so the intersection might be empty.

>
> Version:
>  platform = mips-sgi-irix6.5
>  arch = mips
>  os = irix6.5
>  system = mips, irix6.5
>  status =
>  major = 1
>  minor = 2.1
>  year = 2001
>  month = 01
>  day = 15
>  language = R
>
> Search Path:
>  .GlobalEnv, package:ctest, Autoloads, package:base
>
> R. Woodrow Setzer, Jr.                                            Phone:
> (919) 541-0128
> Experimental Toxicology Division                       Fax:  (919)
541-5394
> Pharmacokinetics Branch
> NHEERL MD-74; US EPA; RTP, NC 27711
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-.-
> r-help 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-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._._._
>

--
Brian D. Ripley,                  ripley at 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-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list