[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] usrp compilation

From: Ramakrishnan Muthukrishnan
Subject: [Discuss-gnuradio] usrp compilation
Date: 25 Dec 2003 23:01:42 +0530
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I downloaded the USRP sources from the CVS.

When I compiled it, I noticed that compiler gives errors
for usr/include/linux/usbdevice_fs.h

__user etc are defined in linux/compiler.h, so that file
needs to be included before including linux/usbdevice_fs.h
The problem went away after doing this. 

Now, it again gave an error: 

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../../host/lib 
-I../../firmware/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT fusb.lo 
-MD -MP -MF .deps/fusb.Tpo -c fusb.cc  -fPIC -DPIC -o .libs/fusb.o
fusb.cc: In function `usbdevfs_urb* alloc_urb(fusb_ephandle*, int, int, bool,
   unsigned char*)':
fusb.cc:90: error: `USBDEVFS_URB_QUEUE_BULK' undeclared (first use this
fusb.cc:90: error: (Each undeclared identifier is reported only once for each
   function it appears in.)

The problem is that USBDEVFS_URB_QUEUE_BULK is depricated and
is not used in newer kernels (2.6.x) anymore. Please see


(The author says this particular constant is UHCI-specific and is removed

Debian ships kernel-headers of 2.5.x (i.e 2.6) in the unstable,
and hence I cannot compile usrp.

    Ramakrishnan                   http://www.hackGNU.org/
    Use Free Software -- Help stamp out Software Hoarding!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]