From nobody Sun Dec 18 17:44:30 2022 X-Original-To: perl@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZqwH0xpwz1Gmkp for ; Sun, 18 Dec 2022 17:44:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZqwG39D1z4K95 for ; Sun, 18 Dec 2022 17:44:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bmv/AyTd7lAZ+z1xHUvYu1BSOwhiAomCg8MjkZEfz20=; b=fokXnY/oI5riPA5P1gAlix0GzBONN5WH6VvUkO0BOv4BZ6N+agfrpHRdGXsmeeiUP5f22+ Mg7FdI8C1HEGIOmPe+MBl/dcCRPeQ6paB3nDTlrfyjhmlH6TCNic17FonA/wzcIhHwlAfB rnB0Vy/WVJLiVsawjgXSHLwrQgCJ3p61KDzyzXHzDlhi8PKPvPFqToYAmkh2bJ9M51Rc/F Jg4Pvs6IY3UZHhn1ElLxUWL1huNZERwTyA/wrK/KpKGn51i+nbRDPpTMzfk1eMIBT3YGrE ZhD67C14GDVu5UbDc0xiLGyrOsS/2XREkPU9Ekiz0daXHsje1vXOvR+8cRhhkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385470; a=rsa-sha256; cv=none; b=nAcgzXju+fCLIvo57hgB3RCNcmpdL6FC56JvLxDGQFwRP5BHqx2Ppi3w/Xv13+RgeIjUFh nQlZgQ4w9oxrioyHZieRfbL67vqU9IjVHI0KtSjp65UJZT0Y4UsduSNs521JG0wPyH5D60 xl3kg6yyQQGrkv/4zKCKzKX/q4set3u4uhPSKvb6SAYVwPoYvJZfUB7nwMHLb4vrDVlY9I GGGMOXIcKYhmwyzwSbv+4M2akU9qPc+BragmlIctmGta6gO939ZdeSaWvsEMBErZibrfx0 +qVHqyqBMXy8Y7T7G9YbO4/udVnr+rbmEJe6NfRcP5hnrbtSvU3GIc1sick+lg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZqwG1JMqzPwp for ; Sun, 18 Dec 2022 17:44:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BIHiUTm004892 for ; Sun, 18 Dec 2022 17:44:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BIHiUj8004886 for perl@FreeBSD.org; Sun, 18 Dec 2022 17:44:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: [Bug 268232] devel/p5-IO-Tty: fix build with clang 15 Date: Sun, 18 Dec 2022 17:44:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: maintainer of a number of perl-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-perl List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-perl@freebsd.org X-BeenThere: freebsd-perl@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268232 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D0f85c4d7e4ceb4237ff6562a6b97c70= 51db01bf0 commit 0f85c4d7e4ceb4237ff6562a6b97c7051db01bf0 Author: Dimitry Andric AuthorDate: 2022-12-07 17:46:31 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:24:57 +0000 devel/p5-IO-Tty: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that devel/p5-IO-Tty failed to build with clang 15: Tty.xs:190:1: error: static declaration of 'strlcpy' follows non-stat= ic declaration strlcpy(dst, src, siz) ^ /usr/include/string.h:99:9: note: previous declaration is here size_t strlcpy(char * __restrict, const char * __restrict, size_t); ^ This is because strlcpy() and various other functions are not correctly detected at configure time: Looking for _getpty()...... not found. Looking for getpt()........ not found. Looking for grantpt()...... not found. Looking for openpty()...... not found. Looking for posix_openpt(). not found. Looking for ptsname()...... not found. Looking for ptsname_r().... not found. Looking for sigaction().... not found. Looking for strlcpy()...... not found. Looking for ttyname()...... not found. Looking for unlockpt()..... not found. Looking for libutil.h...... FOUND. Looking for pty.h.......... not found. Looking for sys/pty.h...... not found. Looking for sys/ptyio.h.... not found. Looking for sys/stropts.h.. not found. Looking for termio.h....... not found. Looking for termios.h...... FOUND. Looking for util.h......... not found. Makefile.PL contains a C fragment that is used for this detection, but it assigns the incorrect type to the value returned from the tested function. This leads to compilation errors, even if the tested function *is* available. Fix this by using the correct type for the variable containing the return value. PR: 268232 Approved by: portmgr (tcberner) MFH: 2022Q4 devel/p5-IO-Tty/files/patch-Makefile.PL (new) | 11 +++++++++++ 1 file changed, 11 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=