Almost succesfull build on AIX

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 8 Jul 1999 12:36:36 +0200


To add to my last E-mail  
where I said more-or-less

      ``we need  CFLAGS   -D_XOPEN_SOURCE_EXTENDED=1  

        for finite() and things to work ''

I now have put this into  config.site,
but then the compilation breaks when trying to compile 
src/unix/sock.c

it seems because of broken combination of header files 
   /usr/include/netinet/in_systm.h
   /usr/include/netinet/tcp.h
   /usr/include/netinet/ip.h

Maybe,  sock.c  {and further files?}
use other CFLAGS explicitly ?

Here the beginning of the long compilation error messages:

 gcc -I. -I../include -I../../src/include   -DHAVE_CONFIG_H  -g -O2 -D_XOPEN_SOURCE_EXTENDED=1 -c sock.c -o sock.o

 In file included from /usr/include/netinet/ip.h:75,
		  from /usr/include/netinet/tcp.h:72,
		  from sock.c:25:
 /usr/include/netinet/in_systm.h:79: parse error before `n_short'
 /usr/include/netinet/in_systm.h:79: warning: data definition has no type or storage class
 /usr/include/netinet/in_systm.h:80: parse error before `n_long'
 /usr/include/netinet/in_systm.h:80: warning: data definition has no type or storage class
 /usr/include/netinet/in_systm.h:82: parse error before `n_time'
 /usr/include/netinet/in_systm.h:82: warning: data definition has no type or storage class
 In file included from /usr/include/netinet/tcp.h:72,
		  from sock.c:25:
 /usr/include/netinet/ip.h:104: parse error before `u_long'
 /usr/include/netinet/ip.h:104: warning: no semicolon at end of struct or union
 /usr/include/netinet/ip.h:104: warning: no semicolon at end of struct or union
 /usr/include/netinet/ip.h:114: parse error before `ip_xhl'
 /usr/include/netinet/ip.h:114: warning: no semicolon at end of struct or union
 /usr/include/netinet/ip.h:119: warning: data definition has no type or storage class
 /usr/include/netinet/ip.h:120: parse error before `}'
 /usr/include/netinet/ip.h:120: warning: data definition has no type or storage class
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._