From owner-freebsd-mobile@FreeBSD.ORG Fri Aug 31 18:56:22 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CD6916A41A for ; Fri, 31 Aug 2007 18:56:22 +0000 (UTC) (envelope-from peter.schuller@infidyne.com) Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by mx1.freebsd.org (Postfix) with ESMTP id 4A8B913C45A for ; Fri, 31 Aug 2007 18:56:22 +0000 (UTC) (envelope-from peter.schuller@infidyne.com) Received: from prometheus.scode.org (85.229.22.84) by proxy1.bredband.net (7.3.127) id 46D6D3CB0006D095 for freebsd-mobile@freebsd.org; Fri, 31 Aug 2007 20:55:57 +0200 Received: from localhost (localhost [127.0.0.1]) by prometheus.scode.org (Postfix) with ESMTP id B3DDD1CC7B for ; Fri, 31 Aug 2007 20:56:12 +0200 (CEST) From: Peter Schuller To: freebsd-mobile@freebsd.org Date: Fri, 31 Aug 2007 20:56:11 +0200 User-Agent: KMail/1.9.7 References: <200708311820.08340.peter.schuller@infidyne.com> In-Reply-To: <200708311820.08340.peter.schuller@infidyne.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708312056.12233.peter.schuller@infidyne.com> Subject: Re: Option HSDPA USB dongle and mode switching X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2007 18:56:22 -0000 > % gcc -L/usr/local/lib -lusb -lusbpp -I/usr/local/include -o ttt > icon_switch.c prometheus:/tmp(1) > > /var/tmp//ccCnzzjn.o(.text+0x26e): In function `main': > : undefined reference to `usb_get_driver_np' > > /var/tmp//ccCnzzjn.o(.text+0x2a7): In function `main': > : undefined reference to `usb_detach_kernel_driver_np' > > Would anyone know of a way to make such USB dongles work, other than > properly looking into this stuff and making the necessary code changes? Simply eliminating the driver attach/detach attemps makes the tool compile and run, though it complains that it cannot find the device (even though the product/vendor matches the config file). I guess it's not visible to the API when the driver is attached or some such. -- / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org