On stable/13: --- rsa.o --- /usr/src/usr.sbin/pkg/rsa.c:164:37: error: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 164 | ret = rsa_verify_data(ctx, sha256, strlen(sha256), sigfile, key, keylen, | ^ /usr/src/usr.sbin/pkg/rsa.c:164:37: note: include the header <string.h> or explicitly provide a declaration for 'strlen' 1 error generated.
Created attachment 256654 [details] Patch for usr.sbin/pkg/rsa.c adding include of string.h
Hmm, sorry about that. I wonder where I'm getting pollution from...
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b8770ce1dfed52fcb7249cdf3cf4d4d16357b9fd commit b8770ce1dfed52fcb7249cdf3cf4d4d16357b9fd Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2025-01-12 20:08:41 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2025-01-12 20:11:22 +0000 pkg: include missing <string.h> My local environment seems to be seeing some pollution; we need <string.h> for strlen. PR: 284021 Fixes: 2e065d74a5b0e ("pkg: add a pkgsign_verify_data [...]") MFC after: immediately (trivial build fix) usr.sbin/pkg/rsa.c | 1 + 1 file changed, 1 insertion(+)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=18790167dcacafeb7da9049fed8c66c2d07111d9 commit 18790167dcacafeb7da9049fed8c66c2d07111d9 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2025-01-12 20:08:41 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2025-01-12 20:12:12 +0000 pkg: include missing <string.h> My local environment seems to be seeing some pollution; we need <string.h> for strlen. PR: 284021 Fixes: 2e065d74a5b0e ("pkg: add a pkgsign_verify_data [...]") (cherry picked from commit b8770ce1dfed52fcb7249cdf3cf4d4d16357b9fd) usr.sbin/pkg/rsa.c | 1 + 1 file changed, 1 insertion(+)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c6bf965f5d1d7cf32f26ecd5df0f8a5f5baebb0f commit c6bf965f5d1d7cf32f26ecd5df0f8a5f5baebb0f Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2025-01-12 20:08:41 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2025-01-12 20:12:18 +0000 pkg: include missing <string.h> My local environment seems to be seeing some pollution; we need <string.h> for strlen. PR: 284021 Fixes: 2e065d74a5b0e ("pkg: add a pkgsign_verify_data [...]") (cherry picked from commit b8770ce1dfed52fcb7249cdf3cf4d4d16357b9fd) usr.sbin/pkg/rsa.c | 1 + 1 file changed, 1 insertion(+)
Thanks!