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 4NS4f91h3lz4jQ8X 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 4NS4f86bd4z4J3P for ; Wed, 7 Dec 2022 17:53:52 +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=1670435632; 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=TsgUXV70idVVPir2yw2CR42TfMaYJmcuAvaS38KguLE=; b=R/GXc0R/WyI8d8qwNp/PmuvpN4lR7sYykluFDzpJoIEsVNiiSaRzaYHVOhXM8qfq7G/5tJ Zxcv40eb2euXo5Oc+OfLMIUCRy762jYUzpsABDZj1pB5qUKmCDxyRsP+gfhSY9leKXeFT5 8BGTdfalLmdaIAwa8atiHjhNQMVDeAWsUNiOwEwUFaMLQmLnhV8cwgSuacTa+j+RYfRYpY 4Gecf/eCi5HlZMtDmw+bLs2ihk/gNsfvkvwsCNOT1GT17g8nYwZsG/dpK5fpf51TkQ3jmT GvOCbTrfph44c6jSB3ZuCKWB6022zZSWhAYK+pSPpQ9F1iVmQWHb9z5nor82Qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670435632; a=rsa-sha256; cv=none; b=ImFUT9cY3irs9/owlVTu3cgQMimkAKOWlyNgR2MPltckU3NAHF6EMBzO2VIUVKXI3sVvsv bRPul3m286TOEV43eY2p0J0oY4IAsTMp5qzrvfePdmVPw+ENAzshEJtfGu8asZNdieTRrN CKer7aBKlL2EsBEESLk1CESHWDBtKS0tHoCv1laZ3pE+l+QvpuEeZ+ZRDiWI+OLgqYag5f oPIqXIYQVJW5IQsTrMlj2Oy8oBheZQ3XKzBSsUmqVjAN6jq//anGhKjgoPl01Ji4PsmSnN 7zeLbssDsiTltB53/rZ9aC9pI8IgezS8TPscdgL8M4jlWgjqh49Gwc7nxR+qRw== 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 4NS4f85gTQzQJ9 for ; Wed, 7 Dec 2022 17:53:52 +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 2B7Hrqf7015128 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 2B7HrqBS015127 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: maintainer-feedback requested: [Bug 268232] devel/p5-IO-Tty: fix build with clang 15 Date: Wed, 07 Dec 2022 17:53:52 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked freebsd-perl (Nobody) for maintainer-feedback: Bug 268232: devel/p5-IO-Tty: fix build with clang 15 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268232 --- Description --- 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.