From nobody Tue Jul 04 13:56:34 2023 X-Original-To: freebsd-ports@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 4QwPVF4NBGz4l4hh for ; Tue, 4 Jul 2023 13:56:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QwPVF3zv0z4QjJ; Tue, 4 Jul 2023 13:56:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688479013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3OqSXt0f9kWVTclssSys4XTi87eRwH6jnfIwxexJ+rU=; b=olYlgLxydFPENeD808BteeRasLbT/7PD5eW5wMaTQVLHpvmNKrSzOrXyeclGWbL7c3oKNR xc/KVzcjLURpyX05QVFIUTWyHEXvz7vw57c0MYte5u14peNkxT6i9YTl2mLYLwhDt3MSFE iCojZr2oDABxZzfZJqICI59+kb9j0e+TnJC8K/3mUdq/Ahy/tX8YsfduS9V58byh2g+XB2 gxiaBQpq+eY0+ibgu85TIvfu1NBn3qem+FyM5Bd2mugLywb8Rq0G7azj/QXSCm7DGO3AfP u5MzE6rO7FDMCaj6LHzyG0dzqvQRp300zMUrMbvoDWHdNcfjAxdUriodcWP4bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688479013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3OqSXt0f9kWVTclssSys4XTi87eRwH6jnfIwxexJ+rU=; b=mdmZl8GjrfnENw5y5Zq7kti/I3VUl/sNf8tlfIJile3IoiAbKFYsN+cwglt3ezyBbM6dor vMWAzYhKbrPiPzK6VtEKGaPsPD/A6LjlNxaTahebd05iJ6bGSKjvHz/GX4fdZkteCL5yq9 m4ujI+GELFnOqFwn1SQsmXewFQ5HEzCjz5J4/DiCet878VkrbW7mkSh3V7PKpviUJXylhO 9Bj0wuIr0g40kUdsXAOYjYna/wCugeBRI8C6uep5uA6G1UC8kwt3QBYevPa33dooI1FAyJ mBouo5LOms7PCuA3+WeUE/BI3CXPuxOwMhxIlSxX0E+/burFMcl5ysByOEZP6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688479013; a=rsa-sha256; cv=none; b=BCyg+ecNxkKrYBNrVEyblKmldVMIshYIJMpWp733QjyEEc0t8pYrbdQLONvgFLnhGY/1yP 5Aa4I2W46XwpgUsNihiJclKHHYaT1h0mzsXQd0Y5O64w1V4zFaFftxRrZCr7/JHgnHJBzy rUheUI86lAjby5Ms/FZkVD4Dv+Bp+s7XAys0h7Kj4SoPJWQFViHD6joM5VHUNKBjFK/vTr YFaAeb9TwlqixLKAk+96j4w7xQpxs6XhYHw8lIELO1OBFmcVnxpJ7/apKx2KYnkb3ZV7s5 SVSAxPrNAXWPmIM4LRaqHSBlshKYmCgvh/D3+WCHcyF82VBfdxtb0R3q2CcYbw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QwPVF2LGNzHkg; Tue, 4 Jul 2023 13:56:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B23A34F3E9; Tue, 4 Jul 2023 15:56:51 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_8E89F3A0-5F02-41DA-BB4C-7674DF2F5283"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: glib2 deprecated declarations failing on clang16 From: Dimitry Andric In-Reply-To: Date: Tue, 4 Jul 2023 15:56:34 +0200 Cc: FreeBSD Mailing List Message-Id: References: To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.600.7) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_8E89F3A0-5F02-41DA-BB4C-7674DF2F5283 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 4 Jul 2023, at 14:37, Nuno Teixeira wrote: >=20 > I'm getting build errors from current with www/bluefish about = deprecated glib2 declarations and causing build to fail with clang16: > --- > /usr/local/include/glib-2.0/glib/gmacros.h:1262:37: note: expanded = from macro 'G_DEPRECATED' > #define G_DEPRECATED __attribute__((__deprecated__)) > ^ > mv -f .deps/bluefish.Tpo .deps/bluefish.Po > bftextview2_langmgr.c:2665:2: warning: 'g_thread_create_full' is = deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] > g_thread_create_full(build_bflang2scan_thread, NULL, 0, FALSE, = FALSE, G_THREAD_PRIORITY_LOW, &gerror); > --- >=20 > Any help is welcome on finding out its cause. >=20 > a related issue: https://github.com/PCSX2/pcsx2/issues/3315 >=20 > Build log: = https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pf46bd2c5842= 5_s0631830a7a/logs/bluefish-2.2.14.log The actual error is an incompatible callback function signature: bftextview2_autocomp.c:432:2: error: incompatible function pointer types = passing 'gboolean (GtkLabel *, gchar *, gpointer)' (aka 'int (struct = _GtkLabel *, char *, void *)') to parameter of type 'GCallback' (aka = 'void (*)(void)') [-Wincompatible-function-pointer-types] g_signal_connect(acw->reflabel, "activate-link", = acw_label_active_link_lcb, acw); = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:515:59: note: expanded = from macro 'g_signal_connect' g_signal_connect_data ((instance), (detailed_signal), (c_handler), = (data), NULL, (GConnectFlags) 0) ^~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:411:25: note: passing = argument to parameter 'c_handler' here GCallback c_handler, ^ I have seen these more often with glib-based applications. In some cases it is feasible to fix the callback function to have the correct signature, in other cases you can slap a cast in place. Or, if the affected code is vala-generated (also happens), the big hammer is to suppress the warning(s). -Dimitry --Apple-Mail=_8E89F3A0-5F02-41DA-BB4C-7674DF2F5283 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZKQlEgAKCRCwXqMKLiCW o/dRAKDiLq0mw6scN5AkIf/cRMPZm2fVRACdG9eUAzo073jrPzWLnOXc9WKLdsA= =Se67 -----END PGP SIGNATURE----- --Apple-Mail=_8E89F3A0-5F02-41DA-BB4C-7674DF2F5283--