usbip-source does not build against linux-headers-2.6.31-17-generic

Bug #508762 reported by Florian Haas
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
usbip (Debian)
New
Undecided
Unassigned
usbip (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Lucid by René Kliment
Nominated for Maverick by René Kliment

Bug Description

Binary package hint: usbip

Description: Ubuntu 9.10
Release: 9.10

usbip-source: 0.1.7-3
linux-headers-generic: 2.6.31.17.30

Trying to build with:
fakeroot m-a -t -u /tmp/usbip a-b usbip

Exits with the following error:
make[3]: Entering directory `/usr/src/linux-headers-2.6.31-17-generic'
  CC [M] /tmp/usbip/usr_src/modules/usbip/src/stub_dev.o
/tmp/usbip/usr_src/modules/usbip/src/stub_dev.c: In function 'stub_probe':
/tmp/usbip/usr_src/modules/usbip/src/stub_dev.c:392: error: 'struct device' has no member named 'bus_id'
make[4]: *** [/tmp/usbip/usr_src/modules/usbip/src/stub_dev.o] Error 1
make[3]: *** [_module_/tmp/usbip/usr_src/modules/usbip/src] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.31-17-generic'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/tmp/usbip/usr_src/modules/usbip/src'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/tmp/usbip/usr_src/modules/usbip'
make: *** [kdist_build] Error 2

Revision history for this message
Florian Haas (fghaas) wrote :

Attaching full build log.

Changed in usbip (Ubuntu):
status: New → Confirmed
Revision history for this message
Florian Haas (fghaas) wrote :

Issue is still present on lucid, building against 2.6.32-23-generic. module-assistant build log is attached.

Revision history for this message
Alessandro Barracane (alebarra) wrote :

this issue is also present in Maverick 10.10 with 2.6.35-22-generic kernel, and in debian squeeze with kernel 2.6.32-5.

the module-assistant log file generated during compilation in ubuntu maverick is attached.

 │ make[3]: ingresso nella directory
 │ «/usr/src/linux-headers-2.6.35-22-generic»
 │ CC [M] /usr/src/modules/usbip/src/stub_dev.o
 │ /usr/src/modules/usbip/src/stub_dev.c: In function 'stub_probe':
 │ /usr/src/modules/usbip/src/stub_dev.c:392: error: 'struct device' has no
 │ member named 'bus_id'
 │ make[4]: *** [/usr/src/modules/usbip/src/stub_dev.o] Error 1
 │ make[3]: *** [_module_/usr/src/modules/usbip/src] Errore 2
 │ make[3]: uscita dalla directory «/usr/src/linux-headers-2.6.35-22-generic»
 │ make[2]: *** [default] Errore 2
 │ make[2]: uscita dalla directory «/usr/src/modules/usbip/src»
 │ make[1]: *** [binary-modules] Errore 2
 │ make[1]: uscita dalla directory «/usr/src/modules/usbip»
 │ make: *** [kdist_build] Errore 2

Revision history for this message
Rosen Vladimirov (vladimirov-rosen) wrote :

struct device - replace bus_id with dev_name(), dev_set_name()
Fix

Revision history for this message
Arthur Lutz (arthur-lutz) wrote :

With the source from Luk I get :

/usr/src/modules/usbip/src/usbip_common.c: In function 'tweak_transfer_flags':
/usr/src/modules/usbip/src/usbip_common.c:639:14: error: 'URB_NO_SETUP_DMA_MAP' undeclared (first use in this function)
/usr/src/modules/usbip/src/usbip_common.c:639:14: note: each undeclared identifier is reported only once for each function it appears in

Revision history for this message
ftoledo (ftoledo) wrote :

anybody is working to port this code to linux 3.x?

Revision history for this message
werner mendizabal (nonameentername) wrote :

I updated the usbip kernel drivers to build for 3.0.0. This works for me on oneiric.

Revision history for this message
malaiwah (michel-belleau) wrote :

This also affects Debian Squeeze. I was trying to make it work on ARM and the last .tar.gz worked all right.

Revision history for this message
Michael Windelen (ubuntu-fam-windelen) wrote :

Some Problem on Ubuntu 12.04 and 12.10

Revision history for this message
Michael Windelen (ubuntu-fam-windelen) wrote :

Sorry, for the typo.

Can't build the module on 14.04 and 14.10.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.