[MacPorts] #68154: opensc @0.23.0: error: implicit declaration of function 'strnlen' is invalid in C99

MacPorts noreply at macports.org
Tue Sep 12 15:32:58 UTC 2023


#68154: opensc @0.23.0: error: implicit declaration of function 'strnlen' is
invalid in C99
-------------------------+--------------------
 Reporter:  ryandesign   |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.8.1
 Keywords:  snowleopard  |       Port:  opensc
-------------------------+--------------------
 https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/170734/steps
 /install-port/logs/stdio

 {{{
 openpgp-tool-helpers.c:200:24: error: implicit declaration of function
 'strnlen' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                 size_t used_length = strnlen(src, length) >> 1;
                                      ^
 }}}

 Using legacysupport might help.

-- 
Ticket URL: <https://trac.macports.org/ticket/68154>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list