[MacPorts] #65709: opensc fails on Rosetta: In function 'pcsc_to_opensc_error': error: 'SCARD_E_NO_READERS_AVAILABLE' undeclared

MacPorts noreply at macports.org
Mon Aug 22 10:41:24 UTC 2022


#65709: opensc fails on Rosetta: In function 'pcsc_to_opensc_error': error:
'SCARD_E_NO_READERS_AVAILABLE' undeclared
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, rosetta, snowleopard
      Port:  opensc        |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 And with `gcc12` it fails on:
 {{{
 In file included from /usr/include/string.h:148,
                  from sm-iso.c:29:
 In function 'prefix_buf',
     inlined from 'format_data' at sm-iso.c:234:7:
 sm-iso.c:194:17: error: pointer may be used after 'realloc' [-Werror=use-
 after-free]
   194 |                 memcpy(p + 1, buf, buflen);
       |                 ^~~~~~
 sm-iso.c:186:13: note: call to 'realloc' here
   186 |         p = realloc(*cat, buflen + 1);
       |             ^~~~~~~~~~~~~~~~~~~~~~~~~
   CCLD     libsm.la
 cc1: all warnings being treated as errors
 make[3]: *** [sm-iso.lo] Error 1
 }}}

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


More information about the macports-tickets mailing list