From nobody Tue Jun 20 19:28:15 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 4QlxW40kQkz4fyDy for ; Tue, 20 Jun 2023 19:28:16 +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 4QlxW36hmbz3wcQ for ; Tue, 20 Jun 2023 19:28:15 +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=1687289295; 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=XALZAin0XgJw4UGhAcVG71MszDehvI2qfx7ED5hDdzk=; b=BXblePpdalOy6GYm2+bsWVrKKD/2H7SZDWjDnMIaq3NY9Am79RiwXHj5F/ycpIaOfDsszt Xe3uhEr+IMCfBFCMqp++/n7TdZXCTi6sTl+53GONZBRkUPbYpW4RfGGavR4LMmAQtK0YPT ZugZnyWVSaimPdtGJXjBHbee96qvU6ZOqtbc5KnWy4Bk+gSNXHKn2XNzUi+lQMpDwU4JWP 5jtZx6RhSyijrIpImJUJkVk+Fr+H2CEi6EQ4zNE1P1+DTWtWkDpFn6l/eN/H7KW1yGMacr apTOXWrZ4k9CrSoPb3vMwHhy8A3alZtfclRpoZvc+Gm+rpE4UV295XuIFOwmgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687289295; a=rsa-sha256; cv=none; b=ivEMSJh8LIB+SJQdz8Cj8Gia0j7qTOAEmlY9gcFbUhaCKDtdzptZ0f6E55O3QyRouxjJrk rwGx4cO/+JXzwSBNgvokElprRykf8+DtdLdUb6IstuLtIrPb1iHKG7Xcp1seM9I+vUO/lg LxXbW8SXogK/cxHMT6mejvJXn5GfUdCEWdP/gFJ0TKz6KBJBa3MKy+lYVLcGfe+uZ5dVU3 W1c8/WCNEzEFtOILNNX49aMmrobPYnNXaaF1NNOlj/gb+2gB3xWuZOf4diLpwPW50o+tL4 bcDarGPne8XilyFRKMhCCgizm4uETolaPxqdPil/+xsRSD5SIQSWqqnqGXC0vw== 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 4QlxW35gRrz1BNF for ; Tue, 20 Jun 2023 19:28:15 +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 35KJSF40078262 for ; Tue, 20 Jun 2023 19:28:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35KJSF7I078261 for ports-bugs@FreeBSD.org; Tue, 20 Jun 2023 19:28:15 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 272103] net-im/libpurple: fix build with clang 16 Date: Tue, 20 Jun 2023 19:28:15 +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: marcus@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: 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=3D272103 Bug ID: 272103 Summary: net-im/libpurple: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: marcus@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(marcus@FreeBSD.org) Assignee: marcus@FreeBSD.org Clang 16 has a new error about incompatible function types, which shows up when net-im/libpurple: auth_cyrus.c:376:23: error: incompatible function pointer types assigning= to 'int (*)(void)' from 'int (void *, int, const char **, const char **)' [-Wincompatible-function-pointer-types] js->sasl_cb[id].proc =3D jabber_sasl_cb_realm; ^ ~~~~~~~~~~~~~~~~~~~~ auth_cyrus.c:381:23: error: incompatible function pointer types assigning= to 'int (*)(void)' from 'int (void *, int, const char **, unsigned int *)' [-Wincompatible-function-pointer-types] js->sasl_cb[id].proc =3D jabber_sasl_cb_simple; ^ ~~~~~~~~~~~~~~~~~~~~~ auth_cyrus.c:386:23: error: incompatible function pointer types assigning= to 'int (*)(void)' from 'int (void *, int, const char **, unsigned int *)' [-Wincompatible-function-pointer-types] js->sasl_cb[id].proc =3D jabber_sasl_cb_simple; ^ ~~~~~~~~~~~~~~~~~~~~~ auth_cyrus.c:393:24: error: incompatible function pointer types assigning= to 'int (*)(void)' from 'int (sasl_conn_t *, void *, int, sasl_secret_t **)' (= aka 'int (struct sasl_conn *, void *, int, struct sasl_secret **)') [-Wincompatible-function-pointer-types] js->sasl_cb[id].proc =3D jabber_sasl_cb_secret; ^ ~~~~~~~~~~~~~~~~~~~~~ auth_cyrus.c:399:23: error: incompatible function pointer types assigning= to 'int (*)(void)' from 'int (void *, int, const char *)' [-Wincompatible-function-pointer-types] js->sasl_cb[id].proc =3D jabber_sasl_cb_log; ^ ~~~~~~~~~~~~~~~~~~ This is because the sasl headers declare the callback functions as int(*)(void), even when the actual arguments actually different. Cast the values assigned to the .proc fields to fix the warnings. --=20 You are receiving this mail because: You are the assignee for the bug.=