** Description changed:

  Audacity fails to build on Ubuntu 16.04 with g++ 5.3.1:
  
  In file included from /usr/include/wx-3.0/wx/gdicmn.h:23:0,
-                  from /usr/include/wx-3.0/wx/utils.h:26,
-                  from BlockFile.cpp:51:
+                  from /usr/include/wx-3.0/wx/utils.h:26,
+                  from BlockFile.cpp:51:
  BlockFile.cpp: In function ‘void ComputeMinMax256(float*, float*, float*, 
int*)’:
  /usr/include/wx-3.0/wx/math.h:91:31: error: ‘isnan’ was not declared in this 
scope
-      #define wxIsNaN(x) isnan(x)
-                                ^
+      #define wxIsNaN(x) isnan(x)
+                                ^
  BlockFile.cpp:325:11: note: in expansion of macro ‘wxIsNaN’
-        if (wxIsNaN(summary256[3*i+2]))
-            ^
+        if (wxIsNaN(summary256[3*i+2]))
+            ^
  /usr/include/wx-3.0/wx/math.h:91:31: note: suggested alternative:
-      #define wxIsNaN(x) isnan(x)
-                                ^
+      #define wxIsNaN(x) isnan(x)
+                                ^
  BlockFile.cpp:325:11: note: in expansion of macro ‘wxIsNaN’
-        if (wxIsNaN(summary256[3*i+2]))
-            ^
+        if (wxIsNaN(summary256[3*i+2]))
+            ^
  In file included from /usr/include/wx-3.0/wx/math.h:58:0,
-                  from /usr/include/wx-3.0/wx/gdicmn.h:23,
-                  from /usr/include/wx-3.0/wx/utils.h:26,
-                  from BlockFile.cpp:51:
+                  from /usr/include/wx-3.0/wx/gdicmn.h:23,
+                  from /usr/include/wx-3.0/wx/utils.h:26,
+                  from BlockFile.cpp:51:
  /usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’
-      isnan(_Tp __x)
-      ^
+      isnan(_Tp __x)
+      ^
  make[3]: *** [audacity-BlockFile.o] Error 1
  
  isnan() is not defined, but std::isnan() is defined. Thus use
  std::isnan() for all C++11 compilers, since isnan() is part of C++11.
+ The fix was accepted upstream:
+ https://github.com/wxWidgets/wxWidgets/pull/283

** Description changed:

- Audacity fails to build on Ubuntu 16.04 with g++ 5.3.1:
+ Audacity (git master) fails to build on Ubuntu 16.04 with g++ 5.3.1:
  
  In file included from /usr/include/wx-3.0/wx/gdicmn.h:23:0,
                   from /usr/include/wx-3.0/wx/utils.h:26,
                   from BlockFile.cpp:51:
  BlockFile.cpp: In function ‘void ComputeMinMax256(float*, float*, float*, 
int*)’:
  /usr/include/wx-3.0/wx/math.h:91:31: error: ‘isnan’ was not declared in this 
scope
       #define wxIsNaN(x) isnan(x)
                                 ^
  BlockFile.cpp:325:11: note: in expansion of macro ‘wxIsNaN’
         if (wxIsNaN(summary256[3*i+2]))
             ^
  /usr/include/wx-3.0/wx/math.h:91:31: note: suggested alternative:
       #define wxIsNaN(x) isnan(x)
                                 ^
  BlockFile.cpp:325:11: note: in expansion of macro ‘wxIsNaN’
         if (wxIsNaN(summary256[3*i+2]))
             ^
  In file included from /usr/include/wx-3.0/wx/math.h:58:0,
                   from /usr/include/wx-3.0/wx/gdicmn.h:23,
                   from /usr/include/wx-3.0/wx/utils.h:26,
                   from BlockFile.cpp:51:
  /usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’
       isnan(_Tp __x)
       ^
  make[3]: *** [audacity-BlockFile.o] Error 1
  
  isnan() is not defined, but std::isnan() is defined. Thus use
  std::isnan() for all C++11 compilers, since isnan() is part of C++11.
  The fix was accepted upstream:
  https://github.com/wxWidgets/wxWidgets/pull/283

** Bug watch added: Debian Bug tracker #824264
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824264

** Also affects: wxwidgets3.0 (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824264
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1581807

Title:
  Define wxIsNaN() as std::isnan() in C++11 mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wxwidgets3.0/+bug/1581807/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to