From nobody Tue Jul 04 14:00:12 2023 X-Original-To: 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 4QwPZ70LFlz4l6pn for ; Tue, 4 Jul 2023 14:00:15 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4QwPZ66JN9z3DBw for ; Tue, 4 Jul 2023 14:00:14 +0000 (UTC) (envelope-from danilo@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688479214; 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=+CZS80rV2gIc9El148ubEFYY4JFUcNwXNAc9JrEIIUE=; b=l6FfUypqhCCxhaAXaf8zio65LQ+G+Qo5QIEefrwrHGOL4PNOtBL8G3+bvkKyjLwqmQLBZ4 ckt4XE1bqGXWINXLSdDAjj7nfBeV4w7mgesGbKJn2+Um4sGVap/QqqYV/qrsdAEXYKVlVL lioIbn4LB8cByXDoa8lCASCUdS1d6W4/anorH79VbCh5VwyV4ZmkWOcZdaCZzKQA0/ivQU bVpXhy2nWL3DQQmj9TyLUf05uQPAcOptQ5jjZfO5csJ2EAOiaWfq3knJw6IGKrcNEp+PAs rSRtJffwTjDjpKEK+y0WpcZeRNcHDgpgHNM1m68tzImG2qPQXhFdrfCBjS/kCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688479214; 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=+CZS80rV2gIc9El148ubEFYY4JFUcNwXNAc9JrEIIUE=; b=D8U/NHMMVCAM7Xv6WME4S3bxsn/kMfuVoSmWz8uVpEqTh4w9QiPjyxvhZ8upBWmWfH0rLr kAgu+ixlIyFeffBNc9UdN1cv2GnAuhnKg8UzBWvztsw8lh4EH1ph9DpoQPQJpI9acyze4S UtFbaKa9FSzj9vzERK0OXwkvNPePiIa8YZGVWOwrAcVd18RIlvOD/G1MmH3eRRadUmLM+Q S/2AGIraGfyJa4hQg7egGfTwRioqS5TcghkR3hUD5FK0AE27OBnQQk66LzI7WnlOrLFoBJ QB4Oo/z9IKaHO2bITlGSKIpI4vx3gZvWYyUap0bX40HAd5xKOxbr1aXCuT9Vdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688479214; a=rsa-sha256; cv=none; b=wcjcTnLZaV1Ya40DcweuGexC173lS0YbzoDfu9Qx2GzgpjgQjRrHdU7LKR2XKzo6NB5jvW 260ymnAZYQ/JyjzL/K+W0yU/fU39UyRm4JgEbBYwBdzG7W4AwDQO5XbBFGpPRCJVi9jKV6 HgXO0W7EP2dQooRGVij9XES82/FZyrdgFrlrp+bOm+JahhUFvsyFjSvyjQymS5gG1t/Rl0 TecoLKE2pin8ZYy/fBwqKmhtxGqWFz4M2yiDLtIoU15SERHIOyr6wj6Sx0GL28SueF5vzv bp8wagfmmEb1M870fh9zAVmHfaHN9XKF/S3pGfNsdSNZBmviWe4a4zO1SJIcWg== Received: from [192.168.5.122] (unknown [37.228.206.65]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: danilo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QwPZ63XkpzHmm for ; Tue, 4 Jul 2023 14:00:14 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Message-ID: Date: Tue, 4 Jul 2023 15:00:12 +0100 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: glib2 deprecated declarations failing on clang16 To: ports@freebsd.org References: Content-Language: en-US From: Danilo Egea Gondolfo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N On 04/07/2023 14:56, Dimitry Andric wrote: > On 4 Jul 2023, at 14:37, Nuno Teixeira wrote: >> 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); >> --- >> >> Any help is welcome on finding out its cause. >> >> a related issue: https://github.com/PCSX2/pcsx2/issues/3315 >> >> Build log: https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pf46bd2c58425_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 > Not a glib expert here, but you can try this https://pastebin.com/ty8hLjVU