From owner-freebsd-current@FreeBSD.ORG Tue Feb 11 12:59:05 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1FFA1EC4 for ; Tue, 11 Feb 2014 12:59:05 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id CCF911E13 for ; Tue, 11 Feb 2014 12:59:04 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 8A065100210; Tue, 11 Feb 2014 13:58:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id E4A30161517; Tue, 11 Feb 2014 13:59:50 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EfPXdL540eGd; Tue, 11 Feb 2014 13:59:50 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 1E997161516; Tue, 11 Feb 2014 13:59:50 +0100 (CET) Message-ID: <52FA1EC8.80902@bitfrost.no> Date: Tue, 11 Feb 2014 13:59:52 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Joe Nosay , freebsd-current Subject: Re: usb_compat_linux.h errors References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 12:59:05 -0000 On 02/11/14 02:05, Joe Nosay wrote: > Referencing at https://forums.freebsd.org/viewtopic.php?f=39&t=44691#p249459 > > I'm wondering if the problem is in my system or not. Hi, > 1 warning generated. > /usr/local/bin/clang -I. -I. -I./../Programs -I../Programs -I./.. -I.. -DHAVE_CONFIG_H -g -O2 -std=gnu99 -Wall -fPIC -c ./usb_freebsd.c > In file included from ./usb_freebsd.c:34: > ./usb_bsd.h:38:21: error: use of undeclared identifier 'USB_SET_TIMEOUT' > if (ioctl(file, USB_SET_TIMEOUT, &arg) == -1) { > ^ > ./usb_bsd.h:49:19: error: use of undeclared identifier 'USB_SET_SHORT_XFER' > if (ioctl(file, USB_SET_SHORT_XFER, &arg) != -1) return 1; > ^ > ./usb_bsd.h:75:25: error: use of undeclared identifier 'USB_SET_CONFIG' > if (ioctl(devx->file, USB_SET_CONFIG, &arg) != -1) return 1; > ^ > ./usb_bsd.h:113:28: error: variable has incomplete type 'struct > usb_alt_interface' > struct usb_alt_interface arg; > ^ > ./usb_bsd.h:113:10: note: forward declaration of 'struct usb_alt_interface' > struct usb_alt_interface arg; > ^ This code is for the old user-space USB API. You need to configure for libusb. --HPS