From ripley at stats.ox.ac.uk  Mon May 22 14:46:55 2006
From: ripley at stats.ox.ac.uk (ripley at stats.ox.ac.uk)
Date: Mon, 22 May 2006 14:46:55 +0200 (CEST)
Subject: [Rd] ssize_t not defined in sockconn.c (PR#8889)
Message-ID: <20060522124655.0CF5AC9E8@slim.kubism.ku.dk>

This is already fixed in 2.3.1 beta: see the R FAQ for reporting on 
current versions only.

On Mon, 22 May 2006, wade.rogers at ciradiscovery.com wrote:

> Problem:
> Build of R failed when compiling sockconn.c.  The problem seemed to be
> that ssize_t was not defined.
>
> The following change in sock.h fixes the problem, though it's probably
> not fixed the _right_ way.

No, it's not.  The right way is to ensure that a suitable header file is 
includer.  ssize_t is not int on 64-bit platforms.

> /* Following line changed by WTR (Cira) to overcome make problem.
> #if defined Win32 && !defined _SSIZE_T_
> typedef int ssize_t;
> #endif
> */
> typedef int ssize_t;
>
> Thanks!
> Wade
>
> --please do not edit the information below--
>
> Version:
>  platform = i686-pc-linux-gnu
>  arch = i686
>  os = linux-gnu
>  system = i686, linux-gnu

Strange, which actual OS is this?  It has been defined in glibc since at 
least 2.3.0.

>  status =
>  major = 2
>  minor = 3.0
>  year = 2006
>  month = 04
>  day = 24
>  svn rev = 37909
>  language = R
>  version.string = Version 2.3.0 (2006-04-24)
>
> Locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C
>
> Search Path:
>  .GlobalEnv, package:methods, package:stats, package:graphics,
> package:grDevices, package:utils, package:datasets, Autoloads, package:base
>
>
> Wade T. Rogers, Ph.D.
> President & CEO
> Cira Discovery Sciences, Inc.
> 3701 Market St Suite 340
> Philadelphia, PA  19104
> wade.rogers at CiraDiscovery.com
> 215.966.6131 (office)
> 215.966.6001 (fax)
> 610.368.5821 (mobile)
> www.CiraDiscovery.com
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] ssize_t not defined in sockconn.c (PR#8889)
ripley at stats.ox.ac.uk