On Mon, Mar 23, 2026 at 01:00:20AM -0600, Benoit Lecocq wrote:
> CVSROOT: /cvs
> Module name: ports
> Changes by: [email protected] 2026/03/23 01:00:20
> Modified files:
> devel/p5-IO-Tty: Makefile distinfo
> Log message:
> Update to p5-IO-Tty-1.21.
This update includes a "fix" that breaks compilation on any GCC,
base or ports. It only works on clang.
cc -c -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -DNO_LOCALE_NUMERIC
-DNO_LOCALE_COLLATE -DNO_LOCALE_MONETARY -DNO_LOCALE_TIME -DNO_LOCALE_MESSAGES
-DLIBC_HANDLES_MISMATCHED_CTYPE -fno-strict-aliasing
-fno-delete-null-pointer-checks -pipe -fstack-protector-strong
-I/usr/local/include -O2 -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -DPIC
-fpic "-I/usr/libdata/perl5/amd64-openbsd/CORE" -DHAVE_GRANTPT -DHAVE_OPENPTY
-DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_TERMIOS_H
-DHAVE_TTYNAME -DHAVE_UNLOCKPT -DHAVE_UTIL_H
-DUTIL_H_ABS_PATH=\"/usr/include/util.h\" Tty.c
Tty.xs:190:1: error: static declaration of 'strlcpy' follows non-static
declaration
190 | strlcpy(char *dst, const char *src, size_t siz)
| ^~~~~~~
In file included from /usr/libdata/perl5/amd64-openbsd/CORE/perl.h:1697,
from Tty.xs:2:
/usr/include/string.h:125:10: note: previous declaration of 'strlcpy' with type
'size_t(char * restrict, const char * restrict, size_t)' {aka 'long unsigned
int(char * restrict, const char * restrict, long unsigned int)'}
125 | size_t strlcpy(char *__restrict, const char *__restrict, size_t)
| ^~~~~~~
*** Error 1 in /usr/ports/pobj/p5-IO-Tty-1.21/IO-Tty-1.21 (Makefile:352 'Tty.o')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3063
'/usr/ports/pobj/p5-IO-Tty-1.21/.build_done': @cd /usr/ports/pobj/p5-IO-Tty-...)
*** Error 2 in /usr/ports/devel/p5-IO-Tty
(/usr/ports/infrastructure/mk/bsd.port.mk:2706 'all': @lock=p5-IO-Tty-1.21;
export _LOCKS_HELD=" ...)
--Kurt