[Rd] Error compiling on HP-UX

Pascal A. Niklaus pascal.niklaus at ipw.agrl.ethz.ch
Mon Dec 18 14:34:17 CET 2006


Dear all,

I hope this is the right mailing list for my question -- I felt that this was 
too technical for R-help.

I am trying to compile R-2.4.0 on a HP-UX system:

./configure 
MAKE=gmake --prefix=$HOME --without-x  --without-tcltk --disable-R-profiling --without-readline --disable-multibyte

R is now configured for ia64-hp-hpux11.23

  Source directory:          .
  Installation directory:    /home/agrl/pniklaus

  C compiler:                gcc  -g -O2 -std=gnu99
  Fortran 77 compiler:       f90  -g

  C++ compiler:              g++  -g -O2
  Fortran 90/95 compiler:    f90 -g

  Interfaces supported:
  External libraries:
  Additional capabilities:   NLS
  Options enabled:           shared BLAS

  Recommended packages:      yes

gmake gives me the following error:

gcc -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre  -I. -I../../src/include -I../../src/include -I/home/agrl/pniklaus/include -DHAVE_CONFIG_H    -g -O2 -std=gnu99 -c 
platform.c -o platform.o
In file included from /usr/include/netdb.h:69,
                 from platform.c:1428:
/usr/include/sys/socket.h:535: error: static declaration of 'sendfile' follows 
non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of 'sendfile' was 
here
/usr/include/sys/socket.h:536: error: static declaration of 'sendpath' follows 
non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of 'sendpath' was 
here

I am not sure whether this is a problem with the platform's installed 
libraries or with the way R includes these files. Including netdb.h alone in 
a test file does not result in any error.

I have put config.h, config.log and the socket.h files on the web:

http://azug.minpet.unibas.ch/~pascal/R/config.log
http://azug.minpet.unibas.ch/~pascal/R/config.h
http://azug.minpet.unibas.ch/~pascal/R/socket.h

Is there any further information I can provide?

Thank you for your help

Pascal Niklaus



More information about the R-devel mailing list