Skip to content

IRIX build error of R-1.3.0 (and fix)

3 messages · Tim Carlson, Brian Ripley

#
Hello,

For R-1.3.0 on IRIX 6.5.12 (probably earlier versions as well), you need
to add

#define HAVE_BSD_NETWORKING

to nanoftp.c and nanohttp.c

It also helps to avoid using the IRIX default libz. (missing defines of
gzseek and others).

All of this assumes gcc-2.95.3 (gcc g77)

--
Tim Carlson
Voice: (509) 376-0300
Email: Tim.Carlson at pnl.gov
EMSL UNIX system support


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
We've hade a lot of discussion about this on R-devel and elsewhere.
Basically the configure process is getting inconsistent answers.  Please do
not change those files, but change src/include/config.h to read

/* Define if you have BSD networking headers and libraries. */
#define HAVE_BSD_NETWORKING 1

/* Define if you have support for sockets. */
#define HAVE_SOCKETS 1

/* Define if you have support for ftp/http access. */
#define HAVE_INTERNET 1

/* Define if you provide support for libxml's ftp/http functions. */
#define SUPPORT_LIBXML 1

or you will have an sub-optimal system.

The underlying problem is an error in the way IRIX has these files set up,
failing to include dependent headers.
On Fri, 29 Jun 2001, Tim Carlson wrote:

            
Well, configure tests the header file for zlib >= 1.1.3, and that version
(there is only one meeting the test at present) does have those functions.
So if you are having problems, you must have an inconsistent header and
library and perhaps you should correct that?  Or is the test not working
and you do have an earlier version?
#
On Sat, 30 Jun 2001, Prof Brian D Ripley wrote:

            
ok.. sorry.. quick fix on a Friday afternoon :)

-snip-.. now to libz
After further investigation, it turns out that I needed to pass an
LDFLAGS parameter to the configure line. My other architectures
(Solaris 2.6/8, AIX 4.3.1, Redhat 6.2/7.1) had been
happy with:

env R_PAPERSIZE=letter CPPFLAGS="-I/msrc/apps/include"
	LIBS="-L/msrc/apps/lib"
	./configure --prefix=/afs/msrc.pnl.gov/files/apps/R-1.3

But in the linking phase I then get the -L/msrc/apps/lib as the last of
the -L flags, so I end up getting the /usr/lib/libz.a instead of the one I
have stashed in /msrc/apps/lib/libz.a

adding a LDFLAGS="-L/msrc/apps/lib" to the above configure fixes the
problem I was having.

Thanks

Tim Carlson
Voice: (509) 375-5978
Email: Tim.Carlson at pnl.gov
EMSL UNIX System Support

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._