On Thursday 05 May 2005 13:43, Michael Nottebrock wrote:
> [EMAIL PROTECTED] wrote:
> > Hello all
> > I am not able to install kdebase3 on a FreeBSD 4.9.
> > The make install stops after the following messages:
> >
> > usbdevices.cpp:263: `struct usb_device_info' has no member named
> > `udi_speed' usbdevices.cpp:264: `USB_SPEED_LOW' undeclared (first use
> > this function)
>
> You'll need at least FreeBSD 4.10-RELEASE, if I read the code right.
> Perhaps Markus (cc'd) can whip up a patch to compensate for the missing
> defines.

The offending field that causes the error was renamed from udi_lowspeed to 
udi_speed before 4.10 as part of preperations for USB2. Unfortunately there 
was no __FreeBSD_version bump for that. The closest I can get is about 4 
weeks.

Please try the attached patch and report back if it works (place it in the 
files directory and retry building kdebase3 if in doubt).

Markus

-- 
Markus Brueffer � �| GPG-Key: http://people.FreeBSD.org/~markus/markus.asc
[EMAIL PROTECTED] | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4
[EMAIL PROTECTED] | FreeBSD: The Power to Serve!
--- kcontrol/usbview/usbdevices.cpp.orig	Thu May  5 17:21:17 2005
+++ kcontrol/usbview/usbdevices.cpp	Thu May  5 17:43:04 2005
@@ -26,6 +26,7 @@
 
 #ifdef Q_OS_FREEBSD
 #include <sys/ioctl.h>
+#include <sys/param.h>
 #endif
 
 QPtrList<USBDevice> USBDevice::_devices;
@@ -260,11 +261,15 @@
 	_channels     = di.udi_nports;
 	
 	// determine the speed
+#if __FreeBSD_version > 490102
 	switch (di.udi_speed) {
 		case USB_SPEED_LOW:  _speed = 1.5;   break;
 		case USB_SPEED_FULL: _speed = 12.0;  break;
 		case USB_SPEED_HIGH: _speed = 480.0; break;
 	}
+#else
+	_speed = di.udi_lowspeed ? 1.5 : 12.0;
+#endif
 
 	// Get all attached devicenodes
 	for ( int i = 0; i < USB_MAX_DEVNAMES; ++i )

Attachment: pgpHrTiCJ0Riq.pgp
Description: PGP signature

_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd

Reply via email to