[MacPorts] #68333: libfido2 @1.13.0: error: use of undeclared identifier 'id'

MacPorts noreply at macports.org
Sun Oct 15 23:14:14 UTC 2023


#68333: libfido2 @1.13.0: error: use of undeclared identifier 'id'
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  trodemaster
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  snowleopard lion mountainlion
      Port:  libfido2    |  mavericks yosemite elcapitan
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:9 jasperweiss]:
 > Replying to [comment:1 ryandesign]:
 > > Since it builds fine on macOS 10.12 (clang 900) and later and is
 failing on OS X 10.11 (clang 800) and earlier, maybe earlier clangs had
 some bug that's being exposed here. Try using a newer MacPorts clang
 compiler. If that works, maybe we'll just have to blacklist Apple clang <
 900.
 >
 > I just ran into this (I think). You mentioned it should be working on
 MacOS 10.12 and later but I'm on 10.14 and it's failing. I do have mp-
 clang-17 selected for clang but I'm not sure if it's really using that.
 How do I check? (I have clang_select installed too, in case that matters).
 >
 > I'm getting an error related to an undeclared identifier
 'kIOMainPortDefault' rather than 'id', is this a different issue?
 > {{{
 > :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:384:35:
 > error: use of undeclared identifier 'kIOMainPortDefault'
 > :info:build                 return
 (IORegistryEntryFromPath(kIOMainPortDefault, path));
 > :info:build Exit code: 2
 > }}}

 Well, if it is on a system where my patch is not applied, it cannot
 possibly be the same issue :)
 If we are to believe buildbots (which are supposed to use standard
 Macports set-up), all systems 10.12 up were good at the time of last port
 update: https://ports.macports.org/port/libfido2/details

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


More information about the macports-tickets mailing list