From nobody Thu Jan 05 17:50:32 2023 X-Original-To: ports-bugs@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 4NnvBy0x6mz2lVwS for ; Thu, 5 Jan 2023 17:50:34 +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 4NnvBx73SKz4Jxr for ; Thu, 5 Jan 2023 17:50:33 +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=1672941034; 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=VZi4TKpnUpcm/GnBbtBSNLpXUe/05sIosSyTymQ0zJg=; b=EE6IzovW8EXrBZ7ez3l6v221NlkQatqyf50kuW+f9oTMJmsE5qyw8p1djDRL6t093tsvXj x4Tbz+Jm2xKwqAPyNtakuq+0iNpFns/hUbyS9iVgoeLGcaR5avPzZ4TmMJq31HNaUfTFLg ea0Tuce9cTJ9jd5ZIGTCNBfpZRSXsAPB1dhw7I1BMIO0XQKerP+aFbEW6GoIxDjzZSPxVa USdLLYi+frchrsjBH+76qzB34lgSGe6PhJX36ys3BfnR2ma7wQ4z6qzAJ69KhMdKzI81XA Se80MaBYslrXSqlpJnTn8mOURg0DKmBVmSNSu7tInupC2MCibuzWu1jd9DE+ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672941034; a=rsa-sha256; cv=none; b=oq1z3bDvFJi8qPs1TEAkC52IOxBJvWb7DAJPoXaXptGGZ0b0/wHCjEFnPSzFhwG6RckUN9 +UUDuMraWPgkQGuNla4+Dx8KXts6JWnOm0tvKcVPfs/9M4MePzpXDfikAt9JuM8ZYHIqT3 awkQ3qdggKOesFmvMbLvkDm3xxr84pp4imLGWGOvZWLwXEWcp2GnMfnmjAntwXCNOLOU2b gOM55LFGkPzKpUtY9NbDp7ySSw3dH1weuLTIuH0YDWmq3m85mx6U/AgMzJZ0Zz7/B1wVQd 3XamTBi30m6qIexcqTdrxc0dE8wcOYf7slNN752Tyqi6HLz6Njs8MA8yL/IuIg== 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 4NnvBx69PDz10Kh for ; Thu, 5 Jan 2023 17:50:33 +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 305HoX4E052440 for ; Thu, 5 Jan 2023 17:50:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 305HoXjx052439 for ports-bugs@FreeBSD.org; Thu, 5 Jan 2023 17:50:33 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: ports-bugs@FreeBSD.org Subject: [Bug 268771] graphics/sane-backends: fix build with clang 15 Date: Thu, 05 Jan 2023 17:50:32 +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: ports-bugs@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 cc 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268771 Bug ID: 268771 Summary: graphics/sane-backends: 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: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: vvd@unislabs.com Flags: maintainer-feedback?(vvd@unislabs.com) CC: vvd@unislabs.com During an exp-run for llvm 15 (see bug 265425), it turned out that graphics/sane-backends failed to build with clang 15: jpegtopdf.c:204:5: error: incompatible pointer to integer conversion assigning to 'long' from 'char *(int, int)' [-Wint-conversion] tz =3D timezone; ^ ~~~~~~~~ scanimage.c:1248:42: warning: call to undeclared function 'basename'; ISO= C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] png_set_iCCP(*png_ptr, *info_ptr, basename(icc_profile), PNG_COMPRESSION_TYPE_BASE, icc_buffer, icc_size); ^ scanimage.c:1248:42: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'png_const_charp' (aka 'const char *') [-Wint-conversion] png_set_iCCP(*png_ptr, *info_ptr, basename(icc_profile), PNG_COMPRESSION_TYPE_BASE, icc_buffer, icc_size); ^~~~~~~~~~~~~~~~~~~~~ The jpegtopdf error is because 'timezone' as a global external variable does not exist on FreeBSD: it is a glibc-ism. Use struct tm's tm_gmtoff field instead, which also has its sign reversed from the glibc global. The scanimage error is because basename(3) is used without including . With glibc, basename() is declared in both string.h and libgen.h, where the former gives you the GNU specific variant, and the latt= er the POSIX variant. --=20 You are receiving this mail because: You are the assignee for the bug.=