[Bug 270900] emulators/virtualbox-ose USB passthrough fails with Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 Sep 2023 22:34:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270900

--- Comment #5 from groenveld@acm.org ---
Here's the vbox.log snippet with debug enabled.

00:00:19.593390 usbProxyConstruct: Failed to open '/dev/ugen0.2',
rc=VERR_INVALID_PARAMETER
00:00:19.594118 
00:00:19.594121 !!Assertion Failed!!
00:00:19.594122 Expression: <NULL>
00:00:19.594125 Location  :
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.46/src/VBox/VMM/VMMR3/PDMUsb.cpp(717)
int pdmR3UsbCreateDevice(PVM, PPDMUSBHUB, PPDMUSB, int, PCRTUUID, PCFGMNODE *,
VUSBSPEED, const char *)
00:00:19.594190 Stack     :
00:00:19.594191 00000008221982e7
00:00:19.594193 
00:00:19.594275 Failed to construct 'USBProxy'/0! VERR_INVALID_PARAMETER (-2) -
Invalid parameter.


In order to build emulators/virtualbox-ose I needed to rebuild devel/gsoap with
debug enabled.
A quick kludge:
git diff
diff --git a/devel/gsoap/Makefile b/devel/gsoap/Makefile
index 253374b56909..9b2eaf9c601b 100644
--- a/devel/gsoap/Makefile
+++ b/devel/gsoap/Makefile
@@ -26,7 +26,7 @@ PORTSCOUT=    limit:^2\.8\.[0-9][0-9][0-9]$

 WRKSRC=                ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}

-OPTIONS_DEFINE=                        IPV6
+OPTIONS_DEFINE=                        IPV6 
 OPTIONS_DEFAULT=               IPV6 OPENSSL
 OPTIONS_RADIO=                 SSL
 OPTIONS_RADIO_SSL=             GNUTLS OPENSSL
@@ -35,7 +35,7 @@ GNUTLS_LIB_DEPENDS=           libgcrypt.so:security/libgcrypt
\
                                libgpg-error.so:security/libgpg-error
 GNUTLS_CONFIGURE_ON=           --enable-gnutls
 GNUTLS_LDFLAGS=                        -L${LOCALBASE}/lib
-IPV6_CONFIGURE_ENABLE=         ipv6
+IPV6_CONFIGURE_ENABLE=         ipv6 debug
 OPENSSL_CONFIGURE_ENABLE=      ssl

 post-patch:

John
groenveld@acm.org

-- 
You are receiving this mail because:
You are on the CC list for the bug.