From bug-octave-request at bevo dot che dot wisc dot edu Wed Oct 18 15:03:21 2000 Subject: Compilation Problems / IRIX 6.5.4m From: "John W. Eaton" To: Jeremy DENISE Cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 18 Oct 2000 15:02:58 -0500 On 18-Oct-2000, Jeremy DENISE wrote: | 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). I think this problem is fixed (in a different way) in the current CVS sources. If it still does not work correctly for you, please submit another bug report. | * doc/interpreter/Makefile.in: | - $(LIBS) is missing in `munge-texi' compilation line (-lstdc++ is | needed) This is not a problem if you use CXX=g++ instead of CXX=gcc. | - ` 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) Would you like to submit a patch to fix this? | * 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. I don't understand why this is a problem. TEXI2DVI is defined with `=' so it should be re-evaluated each time it is used in the context of each sub-Makefile, and each of those should contain a definition for top_srcdir. When I configure in the source tree and run make in the doc/interpreter subdirecotry, I see: makeinfo -I. -I./.. octave.texi TEXINPUTS=".:./..:.:/home/jwe/tex/macros//::"; \ export TEXINPUTS; \ ../../texi2dvi octave.texi and it works. jwe ----------------------------------------------------------------------- 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 -----------------------------------------------------------------------