Skip to content

Install from source fails due to outdated macros OV_ISNUMERIC etc #18

@HHCBakker

Description

@HHCBakker

I'm installing the control package 4.1.2 on a MacStudio from Octave 10.2, itself installed using MacPorts (Installing from Homebrew no longer produces a fully compatible version of Octave).

The Macports installation method requires the pkg install command to install pkgs from source. During this installation there are 16 errors relating to the macro OV_ISNUMERIC and its ken. These were removed in Octave 10 and are redefined in the configure file depending on the version of Octave. These macro definitions end up in confdefs.h and later in oct-alt-includes.h. However, those files aren’t necessarily included in the .cc files that use OV_ISNUMERIC, OV_ISREAL, etc. So the macros appear undefined to the compiler.

The solution would be to either include this at the top of all cc files
#include "oct-alt-includes.h"
or to replace the macros in the cc files themselves.

I did the latter and the install now proceeds without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions