I am trying to compile 0.65 on HPUX using c89/f77/make. This dies with c89 -I. -I../include -I../../src/include -DHAVE_CONFIG_H -g -c Rsock.c -o Rsock.o cc: "Rsock.c", line 135: error 1588: "WNOHANG" undefined. cc: "Rsock.c", line 142: error 1000: Unexpected symbol: "pid". cc: "Rsock.c", line 142: error 1588: "pid_t" undefined. cc: "Rsock.c", line 144: error 1574: Unknown size for "sa". cc: "Rsock.c", line 145: error 1530: Undefined struct or union. cc: "Rsock.c", line 146: error 1530: Undefined struct or union. cc: "Rsock.c", line 147: error 1588: "SIGCHLD" undefined. cc: "Rsock.c", line 150: error 1588: "pid" undefined. cc: "Rsock.c", line 151: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. *** Error exit code 1 although WNOHANG is defined in sys/wait.h which gets included by Rsock.c. Does anyone have an idea what is going on? -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Luke Tierney writes:> On HPUX a lot of stuff like this is only available if you set the > appropriate define, like HPUX_SOURCE_ or POSIX_SOURCE_. Unless that > is set in an include file, I suspect it is needed with the c89 command > line.Thanks. Seems that c89 needs -D_HPUX_SOURCE so I now define this via Platform.h. We also seem to need -L/lib/pa1.1 in LIBS. The problem I now seem to have is that alloca is not found when loading the main binary ... -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
After further elimination of sort-of-GNUish things in the Makefiles and tweaking of configure, I can now successfully build on HPUX with cc/f77/make (note: everything native). make check still fails, but ... -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._