Opened 14 months ago
Closed 14 months ago
#68154 closed defect (fixed)
opensc @0.23.0: error: implicit declaration of function 'strnlen' is invalid in C99
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | snowleopard | Cc: | |
Port: | opensc |
Description
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.
Change History (6)
comment:1 Changed 14 months ago by mascguy (Christopher Nielsen)
Owner: | set to mascguy |
---|---|
Status: | new → assigned |
comment:2 Changed 14 months ago by mascguy (Christopher Nielsen)
comment:3 Changed 14 months ago by mascguy (Christopher Nielsen)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 follow-up: 5 Changed 14 months ago by jmroot (Joshua Root)
It doesn't look like this is actually fixed: https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/171680/steps/install-port/logs/stdio
openpgp-tool-helpers.c:200:24: warning: implicit declaration of function 'strnlen' is invalid in C99 [-Wimplicit-function-declaration] size_t used_length = strnlen(src, length) >> 1; ^
This file needs to #include "common/compat_strnlen.h"
.
comment:5 Changed 14 months ago by mascguy (Christopher Nielsen)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Replying to jmroot:
It doesn't look like this is actually fixed: https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/171680/steps/install-port/logs/stdio
openpgp-tool-helpers.c:200:24: warning: implicit declaration of function 'strnlen' is invalid in C99 [-Wimplicit-function-declaration] size_t used_length = strnlen(src, length) >> 1; ^This file needs to
#include "common/compat_strnlen.h"
.
Ah, yep, should have looked more closely.
Thanks for the catch, will take care of this along with your other feedback. (The latter related to use of _DARWIN_C_LEVEL
, etc.)
comment:6 Changed 14 months ago by Christopher Nielsen <mascguy@…>
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
Fixed via commit: