I am trying to install optim package. There are compile errors regarding isnan() which is actually a macro on the Mac OS X. I have tried to include math.h directly as well as lo-ieee.h from the file __bfgsmin.cc
I have already forced the compile to use the 32 bit compiler, with
the -m32 added to the compiler flags in the file
Octave.app/Contents/Resources/bin/mkoctfile-3.2.3
This is on Snow Leopard, 10.6.2 with XCode 3.2.1. Octave is 3.2.3 and optim is 1.0.12.
Any pointers?
The build error follows.
thanks kd
octave-3.2.3:11> pkg install -verbose Downloads/optim-1.0.12.tar.gz mkoctfile: stripping disabled on this platform mkoctfile: stripping disabled on this platform __bfgsmin.cc: In function ‘int __newtonstep(double&, double&, std::string, octave_value_list, ColumnVector, ColumnVector, int, int)’:
__bfgsmin.cc:244: error: ‘isnan’ was not declared in this scope make: *** [__bfgsmin.oct] Error 1 mkdir (/var/folders/CJ/CJ0Jg2V7FyGqU2oNzhNwX++++TI/-Tmp-/oct-ogXf3w) untar (Downloads/optim-1.0.12.tar.gz, /var/folders/CJ/CJ0Jg2V7FyGqU2oNzhNwX++++TI/-Tmp-/oct-ogXf3w)
'make' returned the following error: mkoctfile -s leval.cc mkoctfile -s __bfgsmin.cc error: called from `pkg>configure_make' in file /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m near line 1253, column 2
error: called from: error: /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m at line 714, column 5 error: /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m at line 287, column 7