From ripley@stats.ox.ac.uk  Fri May 17 07:45:48 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Fri, 17 May 2002 08:45:48 +0200 (MET DST)
Subject: [Rd] Re: R-1.5.0 on NetBSD (PR#1566)
Message-ID: <200205170645.IAA13861@pubhealth.ku.dk>

On Fri, 17 May 2002 Ray.Brownrigg@mcs.vuw.ac.nz wrote:

> Firstly I omitted the following information from my original message:
>
> R is now configured for i386--netbsdelf
>
>   Source directory:          .
>   Installation directory:    /usr/pkg
>   C compiler:                cc  -mieee-fp -I/mnt/scratch/pkgsrc/math/R/work.i386/.buildlink/include -O2 -I/usr/pkg/share/x11-links/include
>   C++ compiler:              c++  -mieee-fp -I/mnt/scratch/pkgsrc/math/R/work.i386/.buildlink/include -I/mnt/scratch/pkgsrc/math/R/work.i386/.buildlink/include -O2 -I/usr/pkg/share/x11-links/include
>   FORTRAN compiler:          /mnt/scratch/pkgsrc/math/R/work.i386/.buildlink/bin/f2c-f77 -O
>   X11 support:               yes
>   Gnome support:             no
>   Tcl/Tk support:            yes
>   Readline support:          yes
>
>   R profiling support:       yes
>   R as a shared library:     no
>
>
> Secondly, a workaround patch is the following:
>
> --- src/main/unzip.h.orig       Mon Feb  4 11:48:57 2002
> +++ src/main/unzip.h
> @@ -49,6 +49,16 @@
>  #include "zlib.h"
>  #endif
>
> +/* Fudge for NetBSD's replacement of OF by __P in zconf.h */
> +
> +#ifndef OF /* function prototypes */
> +#  ifdef STDC
> +#    define OF(args)  args
> +#  else
> +#    define OF(args)  ()
> +#  endif
> +#endif
> +

Thanks. That extract is taken directly from zconf.h in the official
version, so do I gather that NetNSD has gratuitously removed it?

R assumes ISO C, so we don't need the test for STDC.

This is surely a bug in NetBSD and not in R, so I hope you have also filed
a NetBSD bug report.  I've add the comment

/* workaround for NetBSD vandalism on zconf.h */

and that seems a reasonable description to me (and a lot less rude
that some comments about other OSes legitimate differences in the R
sources).

Brian

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


[Rd] Re: R-1.5.0 on NetBSD (PR#1566)
ripley@stats.ox.ac.uk