[MacPorts] #59007: mariadb-10.2: error: use of undeclared identifier 'finite'; did you mean 'isfinite'?

MacPorts noreply at macports.org
Wed Sep 11 11:25:40 UTC 2019


#59007: mariadb-10.2: error: use of undeclared identifier 'finite'; did you mean
'isfinite'?
---------------------------+-----------------------
  Reporter:  iEFdev        |      Owner:  michaelld
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.5.4
Resolution:                |   Keywords:
      Port:  mariadb-10.2  |
---------------------------+-----------------------

Comment (by iEFdev):

 Ended up removing the 2 lines instead. If it's useful - here's a patch.

 {{{
 #!diff
 diff -Naurb ../mariadb-10.2.25.orig/include/my_global.h
 ./include/my_global.h
 --- ../mariadb-10.2.25.orig/include/my_global.h 2019-06-14
 20:29:41.000000000 +0200
 +++ ./include/my_global.h       2019-09-11 12:32:03.000000000 +0200
 @@ -813,8 +813,6 @@

  #ifndef isfinite
  #ifdef HAVE_FINITE
 -#define isfinite(x) finite(x)
 -#else
  #define finite(x) (1.0 / fabs(x) > 0.0)
  #endif /* HAVE_FINITE */
  #elif (__cplusplus >= 201103L)

 }}}


 //<offtopic>//Except that I had to use `--skip-version-check` when running
 `mysql_upgrade`, so it still shows 10.1.41-MariaDB//</offtopic>// - it
 seems like it installed fine now.

-- 
Ticket URL: <https://trac.macports.org/ticket/59007#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list