From nobody Wed Dec 07 17:53:52 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 4NS4f934fXz4jQ4x for ; Wed, 7 Dec 2022 17:53:53 +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 4NS4f91J3Qz4J11 for ; Wed, 7 Dec 2022 17:53:53 +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=1670435633; 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; bh=XuOZxS6LGVZqPpXiQTwToFYy7ClpUsHWSSbP0khs2Zg=; b=UYWYGzV2lq7AahIhYrLgefQHvxvZ7473dWzc274bl0i4MFMsLuJNxUGmkcRVucfq/1Mo2u CM7lVAWM5qIadOBML6bssm5WL0B1n/z8WmBqaoOS2EkbFlmxgjyd96+gymoiHngI0ghM9h J7Oa1UD9JoFBEEyonQau4a4A9L+g82JUCyW2jqtL3EaDXXZ99H59x/+hFv02BsyA/qRrg2 K9UfdRtTttO5oM4Ewjd0ZKKTqnCxovNIOzL7UuiP9SxADFISsnruW4g84/CtBPI+kHPpnG mjcdR3wZntuKOpPxYboO+6eUfEXS/ce47Ju4HYgPn216028iHbxoxFYY0XbqtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670435633; a=rsa-sha256; cv=none; b=HC2lduxrprUY/4TQHaNIDILJHT8vVQFIU6Yd0Hg3Ca4oQl6C3aByYhJYyp1VkMPqCyPmkP bwiFpW/RspMyYNIQ74t9KBa4UqpXZvjMQLMGFql9yGIKaHo8yCKvajQuceFN0hYxfR5jHU oNOUAIAlulBMWBNgpKqiqeO/SfnZpEI8hSGJBg97O++k3OEk8rJuplmRagzaQRfnD0Pyso gltYYGmMB1iHNq5WYj+o0MzTb/v6gTTMl5X16E+9VgD8P5N/84LoXkB5SnOWCsfQXmsIjJ eahBB7fs0A9gTE5M3ENDCiGfjvxTS1xIzDRhIso2TIQjjbQIj4X696sm3X++MQ== 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 4NS4f90MMnzQvc for ; Wed, 7 Dec 2022 17:53:53 +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 2B7Hrqq1015136 for ; Wed, 7 Dec 2022 17:53:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B7HrqTN015135 for perl@FreeBSD.org; Wed, 7 Dec 2022 17:53:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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: Wed, 07 Dec 2022 17:53:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: dim@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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 Bug ID: 268232 Summary: devel/p5-IO-Tty: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: perl@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(perl@FreeBSD.org) Assignee: perl@FreeBSD.org 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-static 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. --=20 You are receiving this mail because: You are the assignee for the bug.=