wade.rogers at ciradiscovery.com
2006-May-22 12:18 UTC
[Rd] ssize_t not defined in sockconn.c (PR#8889)
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. /* 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]]
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
MSchwartz at mn.rr.com
2006-May-22 12:46 UTC
[Rd] ssize_t not defined in sockconn.c (PR#8889)
On Mon, 2006-05-22 at 14:18 +0200, 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. > > /* 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! > WadeThis has been reported at least three times previously and has already been fixed in 2.3.0patched and 2.3.1Beta by Prof. Ripley. It is an issue with older Linux distro headers, having been confirmed on both RH 8.0 and RH 9. Are you using either one of those, which you did not indicate? If so, please consider updating your system as well. You can get the Beta tarball from: http://cran.r-project.org/src/base-prerelease/ Please review the list archives and existing bug reports before filing a new one. Marc Schwartz
ripley at stats.ox.ac.uk
2006-May-22 12:46 UTC
[Rd] ssize_t not defined in sockconn.c (PR#8889)
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-gnuStrange, 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