[MacPorts] #55297: gdb @7.12.1: error: use of undeclared identifier 'min'; did you mean 'fmin'? (was: gdb-7.12.1 fails to build under macOS 10.13.1)

MacPorts noreply at macports.org
Sun Nov 12 11:49:24 UTC 2017


#55297: gdb @7.12.1: error: use of undeclared identifier 'min'; did you mean
'fmin'?
----------------------+------------------------
  Reporter:  murrayE  |      Owner:
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.4.2
Resolution:           |   Keywords:  highsierra
      Port:  gdb      |
----------------------+------------------------
Changes (by ryandesign):

 * keywords:  build => highsierra
 * port:  gdb-7.12.1 => gdb


Comment:

 The relevant errors in the log are:

 {{{
 :info:build doublest.c:258:19: error: use of undeclared identifier 'min';
 did you mean 'fmin'?
 }}}
 {{{
 :info:build doublest.c:568:19: error: use of undeclared identifier 'min';
 did you mean 'fmin'?
 }}}
 {{{
 :info:build doublest.c:912:25: error: use of undeclared identifier 'min';
 did you mean 'fmin'?
 }}}

 clang has gotten more strict about this kind of thing in recent versions.
 There are other tickets about other ports. I don't remember what the fix
 is.

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


More information about the macports-tickets mailing list