[Rd] ssize_t not defined in sockconn.c (PR#8889)

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon May 22 14:38:57 CEST 2006


wade.rogers at ciradiscovery.com writes:

> Problem:
> Build of R failed when compiling sockconn.c.  The problem seemed to be
> that ssize_t was not defined.

You have too little information here. Which platform, compiler, etc is
this? 

R certainly builds fine on at least some i686-pc-linux-gnu systems.

I believe this is supposed to be defined via <sys/types.h> (and "int"
could well be wrong on 64-bit systems), but your include chain may
somehow be broken.
 
> The following change in sock.h fixes the problem, though it's probably
> not fixed the _right_ way.
> 
> /* 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
>   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
> 

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list