From bug-octave-request at bevo dot che dot wisc dot edu Wed Oct 18 14:36:35 2000 Subject: Compilation Problems / IRIX 6.5.4m From: Jeremy DENISE To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 18 Oct 2000 14:36:31 -0500 Hello Here are some problems (with partial fixes) I encountered as I was trying to install Octave version 2.1.31 on a 2xR12000 Octane running IRIX 6.5.4m. egcs-2.91.66 and gmake 3.78.1 were used. Installation commands were (bash): export CC=egcs export CFLAGS=-O2 # no fear export CXX=egcs export CXXFLAGS=-O2 export LIBS=-lstdc++ ./configure --prefix=$HOME gmake gmake install * src/oct-time.cc: The macro definitions at the top of oct-time.cc conflict with system header files, resulting in a undefined struct timeval: #if !defined (_BSD_SOURCE) #define _BSD_SOURCE 1 #define OCTAVE_UNDEFINE_BSD_SOURCE #endif #if !defined (_XOPEN_SOURCE) #define _XOPEN_SOURCE 1 #define OCTAVE_UNDEFINE_XOPEN_SOURCE #endif On my machine, simply commenting out these lines fixes the problem. I suggest during the configuration step a little bit of code could be compiled, in order to determine wether _BSD_SOURCE and _XOPEN_SOURCE have to be manually defined (this is not the case on IRIX systems). * doc/interpreter/Makefile.in: - $(LIBS) is missing in `munge-texi' compilation line (-lstdc++ is needed) - ` at anchor' tags only appear in Texinfo 4.0 . Texinfo version should be checked during configuration step to prevent users like me from getting an incomplete info documentation installed ;-) (I had Texinfo 3.12 installed) * Makeconf.in: `texi2dvi' is defined as: TEXI2DVI = $(top_srcdir)/texi2dvi this is a problem when top_srcdir was set to `.' in the root directory and used as-is in subdirs. Thanks for this neat software! Jeremy ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------