[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave-2.0.14 Compile problem on Solaris

From: Mumit Khan
Subject: Re: octave-2.0.14 Compile problem on Solaris
Date: Tue, 2 Nov 1999 12:22:20 -0600 (CST)

On Tue, 2 Nov 1999, Gary Armstrong wrote:

> This is my first attempt at compiling octave in my environment.(long
> way of saying newbie) I'm recieving the following error:
> make[2]: Entering directory 
> `/home/sysadmin/solaris.251/gnu/noBS/octave-2.0.14/liboctave'
> c++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob 
> -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates 
> -g -O2 -Wall
> In function `double xfinite(double)':
> implicit declaration of function `int finite(...)'
> make[2]: *** [lo-mappers.o] Error 1
> make[2]: Leaving directory 
> `/home/sysadmin/solaris.251/gnu/noBS/octave-2.0.14/liboctave'
> make[1]: *** [liboctave] Error 2
> make[1]: Leaving directory `/home/sysadmin/solaris.251/gnu/noBS/octave-2.0.14'
> make: *** [all] Error 2

gcc-2.95 is a lot more strict than previous versions and that causes a few
minor problems. The problem here is that finite() prototype is not visible
to the compiler, and that is illegal C++.

Workaround for now: Use -fpermissive for now (add that to XTRA_CXXFLAGS
in <build_root>/Makeconf).

Solution: Apply the following patch:
  $ cd <octave-2.0.14>/liboctave
  $ patch -p0 -s < /tmp/

Tue Nov  2 12:17:35 1999  Mumit Khan  <address@hidden>

        * (ieeefp.h): Include conditionally.

---    Tue Nov  2 12:17:00 1999
+++       Tue Nov  2 12:17:12 1999
@@ -27,6 +27,10 @@ Software Foundation, 59 Temple Place - S
 #include <cfloat>
 #include <cmath>
+#include <ieeefp.h>
 #include "lo-error.h"
 #include "lo-ieee.h"
 #include "lo-mappers.h"

Note that you'll also need a fix from JWE for src/ (search for
`tputs' in bug-octave mailing list for that patch).


Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see
Instructions for unsubscribing:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]