From nobody Thu Jun 06 13:52:00 2024 X-Original-To: usb@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 4Vw5Nd0QQFz5MXd1 for ; Thu, 06 Jun 2024 13:52:01 +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 4Vw5Nc4kFmz4250 for ; Thu, 6 Jun 2024 13:52:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717681920; a=rsa-sha256; cv=none; b=e8tt0VGNPs5IFO4O+glVcVQnjXkPhStgKNIxUQElG3OjNamlf83qRrvEvsd/7Ko13/G90O AJVOieKxtvtv6Fp4ungY93X4xEf4OJs3dwIl8sQwC9Rq1YsamwoiAaTe8OseHGmMPT5Zbi TokIZpI0GJK3VNJlxtbR2OemSHa8qXa6jPlVUFl9R9d2A5bFIz32/HlUPfflRb/B4Gd9QD D1KDKHV7HO0ONvBJ5+lhvoLRDmds2SIJriDSg5foQoIG+zo01zX0NXDtgssjAvINzcHGtu Jtbt70C31UVgK1wDLOgDzLvWBibkdltuT/mFUr4CM9d8K0twOr1Q2euicz7JbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717681920; 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=muqbUtLFD4PUDzGeRo94EC8Y0W8G73hWAqrq3NPTsqY=; b=xhJDmalTPGJBrl3qn36cFTGPgL1six0MfjnPNqVey9MxJpaIsS2vWK+MHeDxoBfUJxCEy+ /L/6znn7MjaGaV0udseEKan090Dl6mYg5SWfdNtE0hi7G2IpPoQKvWst25wMcyXKMbu4Ko swypAzA7ls5JeBA747PP2EVMZcDA0q0ZrmsXk9/JGu0ybqOaTrobpy7Cvv3OVn9TRUZ6N9 jERfvSrvxO/hy565Mo8WVAw8X4MTx+qvoZ9heFYilbwestjeT52vBnLt+UBUgbXwK9uutO UaiDluKcnSIbnQiQBT612MZKtqwrsDogZzJdEsxiGbX8Hkdcvu0D6X3Z0GpaKQ== 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 4Vw5Nc4Lk7zpNM for ; Thu, 6 Jun 2024 13:52:00 +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 456Dq0lm054265 for ; Thu, 6 Jun 2024 13:52:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 456Dq0PG054261 for usb@FreeBSD.org; Thu, 6 Jun 2024 13:52:00 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: usb@FreeBSD.org Subject: [Bug 279556] libux_hotplug_callback_handle type incompatibility between FreeBSD and libusb Date: Thu, 06 Jun 2024 13:52:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279556 Bug ID: 279556 Summary: libux_hotplug_callback_handle type incompatibility between FreeBSD and libusb Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: emaste@freebsd.org See PR277799 for background. libusb_hotplug_callback_handle_struct has a different type between FreeBSD and libusb FreeBSD: lib/libusb/libusb.h:typedef struct libusb_hotplug_callback_handle_struct *libusb_hotplug_callback_handle; libusb: libusb/libusb.h:typedef int libusb_hotplug_callback_handle; which caused a build failure: ../keepassxc-2.7.7/src/gui/osutils/nixutils/DeviceListenerLibUsb.cpp:71:21: error: no matching function for call to 'libusb_hotplug_register_callback' 71 | const int ret =3D libusb_hotplug_register_callback( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libusb.h:597:5: note: candidate function not viable: no known conversion from 'int *' to 'libusb_hotplug_callback_handle *' (aka 'libusb_hotplug_callback_handle_struct **') for 9th argument 597 | int libusb_hotplug_register_callback(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_dat= a, libusb_hotplug_callback_handle *handle); | ^=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --=20 You are receiving this mail because: You are the assignee for the bug.=