i am working my way to create a stdin-stdout version of R i am not a gcc configuration expert. currently, i am missing #include <sys/types.h> # include <sys/socket.h> # include <netinet/in.h> # include <netinet/tcp.h> #include "sock.h" as far as i understand my system, these header files shpuld be in /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/include what library do i have to create in gcc to get these goodies? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "Erich" == Erich Neuwirth <erich.neuwirth@univie.ac.at> writes:Erich> i am working my way to create a stdin-stdout version of R Erich> i am not a gcc configuration expert. Erich> currently, i am missing Erich> #include <sys/types.h> Erich> # include <sys/socket.h> Erich> # include <netinet/in.h> Erich> # include <netinet/tcp.h> Erich> #include "sock.h" well, "sock.h" (as the `"' suggests) is a local file, in this case, it's in the same directory as the *.c file which includes it. Erich> as far as i understand my system, Erich> these header files shpuld be in Erich> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/include Well, I think to remember that for gcc under Solaris, it looks *BOTH* in /usr/local/lib/gcc-lib/sparc..../<version>/include AND /usr/include/ i.e. /usr/include/sys/ and /usr/include/netinet/ may contain your headers.. Otherwise, try cd /usr/include find . -name types.h find . -name tcp.h etc. Martin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Erich Neuwirth writes:> i am working my way to create a stdin-stdout version of R > i am not a gcc configuration expert. > currently, i am missing> #include <sys/types.h> > # include <sys/socket.h> > # include <netinet/in.h> > # include <netinet/tcp.h> > #include "sock.h"> as far as i understand my system, these header files shpuld be in > /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/include> what library do i have to create in gcc to get these goodies?I don't know whether the header files ``should'' be in gcc-lib (in which case gcc should also find them), but the code definitely needs some help. I don't think that sys/socket.h or netinet/*.h are ANSI C, and this is all we assume. We should have AC_CONFIG_HEADER tests for each of these, and not have sockets if the headers cannot be found. -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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._