[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
> lo-mappers.cc
> lo-mappers.cc: In function `double xfinite(double)':
> lo-mappers.cc:153: 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/lo-mappers.cc.diff
Tue Nov 2 12:17:35 1999 Mumit Khan <address@hidden>
* lo-mappers.cc (ieeefp.h): Include conditionally.
--- lo-mappers.cc.~1 Tue Nov 2 12:17:00 1999
+++ lo-mappers.cc Tue Nov 2 12:17:12 1999
@@ -27,6 +27,10 @@ Software Foundation, 59 Temple Place - S
#include <cfloat>
#include <cmath>
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+
#include "lo-error.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
Note that you'll also need a fix from JWE for src/sysdep.cc (search for
`tputs' in bug-octave mailing list for that patch).
Regards,
Mumit
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------