bugGNU Octave - Bugs: bug #58542, mexGetNaN not defined correctly in...


bug #58542: mexGetNaN not defined correctly in /usr/include/octave-4.2.2/octave/mex.h

Submitted by:  None
Submitted on:  Thu 11 Jun 2020 01:12:17 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Claude Marinier Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  6.0.90
Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 12 Jun 2020 10:56:11 AM UTC, comment #1: 

Thanks for the report and the fix.
Octave 4.2.2 is no longer in development. Re-targeting to the current stable branch which is Octave 6.0.90.

This looks like a typo to me. See also the Mathworks documentation:

Fixed on the stable branch which will eventually be released as Octave 6.1:

Closing as fixed.

Markus Mützel <mmuetzel>
Project Member
Thu 11 Jun 2020 01:12:17 PM UTC, original submission:  

When using mexGetNaN, the compiler complains.

In file included from fillmissing.c:24:0:
fillmissing.c: In function ‘mexFunction’:
/usr/include/octave-4.2.2/octave/mex.h:83:19: warning: implicit declaration of function ‘mxGetNan’; did you mean ‘mxGetNaN’? [-Wimplicit-function-declaration]
 #define mexGetNaN mxGetNan
fillmissing.c:148:22: note: in expansion of macro ‘mexGetNaN’
             vro[0] = mexGetNaN(); /* initial value */

Replacing the line with the following fixes the problem.

 #define mexGetNaN mxGetNaN



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #49240:  fillmissing.c added by None (8KiB - text/x-csrc)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-12 mmuetzel CategoryOctave Function => Interpreter
        StatusNone => Fixed
        Open/ClosedOpen => Closed
        Release4.2.2 => 6.0.90
        Operating SystemGNU/Linux => Any
    2020-06-11 None Attached File- => Added fillmissing.c, #49240

    Back to the top

    Powered by Savane 3.6