Dear all, I want to install R-0.65.0 on mips-sgi-irix6.5 (SGI IRIX 6.5 IP32), but it doesn't work !!! I run the following configure call: <146>: ./configure --prefix=/usr/people40c/kuonen/Software/bin ... R is now configured for mips-sgi-irix6.5 Source directory: . Installation directory: /usr/people40c/kuonen/Software/bin C compiler: gcc -g -O2 FORTRAN compiler: f77 Gnome support: no Ok, then I simply type <147>:R-0.65.0: make gcc -I. -I../include -I../../src/include -DHAVE_CONFIG_H -g -O2 -c S_compat.c -o S_compat.o In file included from ../include/S.h:47, from ../include/S_compat.h:28, from S_compat.c:28: /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:681: conflicting types for `srandom' /usr/include/stdlib.h:234: previous declaration of `srandom' /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:682: conflicting types for `initstate' /usr/include/stdlib.h:226: previous declaration of `initstate' /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:683: conflicting types for `setstate' /usr/include/stdlib.h:233: previous declaration of `setstate' *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) I know that these errors mean that the functions srandom and *state are being declared twice with different types; giving me the relevant files and line numbers.... But, as I am not root on the machine, I'm unable to change the system files, but I tried to change the header files in /usr/people40c/kuonen/Software/R-0.65.0/include in order to comment lines where "math.h" occurred (as the declaration in /usr/include/stdlib.h may be sufficient), but each time re-running "make", it produced the same error messages... May there be a possibility to use "make" without rebuilding the header files in /usr/people40c/kuonen/Software/R-0.65.0/include , or is there a simpler solution to my problem? Maybe just an argument to be passed to gcc? I appreciate your help! Have a great day, Diego P.S.: using "egcs" instead of the "normal gcc" did produce the same... -- ------------------------------------------------------------ Diego Kuonen, DMA-Ecublens, EPFL, 1015 Lausanne, Switzerland Diego.Kuonen at epfl.ch Diego at Kuonen.com http://statwww.epfl.ch/people/kuonen/ "You have to live on the edge of reality - to make your dreams come true!" Powered by Linux... ------------------------------------------------------------ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Diego Kuonen writes:> Dear all, > I want to install R-0.65.0 on mips-sgi-irix6.5 (SGI IRIX 6.5 IP32), > but it doesn't work !!!> I run the following configure call:> <146>: ./configure --prefix=/usr/people40c/kuonen/Software/bin> ...> R is now configured for mips-sgi-irix6.5> Source directory: . > Installation directory: /usr/people40c/kuonen/Software/bin > C compiler: gcc -g -O2 > FORTRAN compiler: f77 > Gnome support: no> Ok, then I simply type> <147>:R-0.65.0: make > gcc -I. -I../include -I../../src/include -DHAVE_CONFIG_H -g -O2 -c S_compat.c -o S_compat.o > In file included from ../include/S.h:47, > from ../include/S_compat.h:28, > from S_compat.c:28: > /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:681: conflicting types for `srandom' > /usr/include/stdlib.h:234: previous declaration of `srandom' > /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:682: conflicting types for `initstate' > /usr/include/stdlib.h:226: previous declaration of `initstate' > /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:683: conflicting types for `setstate' > /usr/include/stdlib.h:233: previous declaration of `setstate' > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21)> I know that these errors mean that the functions srandom and *state > are being declared twice with different types; giving me the relevant > files and line numbers....Hmm ... looks like gcc's math.h is trying to fix a ``broken'' system header file. I am not sure what ANSI thinks about srandom, my Linux manpage says #include <stdlib.h> long int random(void); void srandom(unsigned int seed); char *initstate(unsigned int seed, char *state, size_t n); char *setstate(char *state); What do the conflicting header files think? Duncan and whoever else has access to SGI---anything special one needs on SGI? -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
1999-Sep-09 09:17 UTC
[R] R-0.65.0 on mips-sgi-irix6.5: Error code 1 (bu21)
Diego Kuonen <Diego.Kuonen at epfl.ch> writes:> Dear all, > > I want to install R-0.65.0 on mips-sgi-irix6.5 (SGI IRIX 6.5 IP32),***> /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:681:*** I think that is your problem. Your OS got upgraded but not your gcc. GCC looks at the system include files and generates its own ones from them. If the system files change, one gets in trouble. We've previously seen very similar effects between Solaris versions.> But, as I am not root on the machine, I'm unable to change the system filesWell, I suggest that you go and talk to the person who is and say that the system C compiler is defunct... -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._