package ipheth-dkms doesn't build on 2.6.35: usb_buffer_alloc() and usb_buffer_free() have been renamed

Bug #605740 reported by Boden Matthews
130
This bug affects 15 people
Affects Status Importance Assigned to Milestone
ipheth (Debian)
Fix Released
Unknown
ipheth (Ubuntu)
Fix Released
High
Unassigned

Bug Description

This just showed up while trying to install ipheth to my laptop so I could use my iPhone's tethering.

ProblemType: Package
DistroRelease: Ubuntu 10.10
Package: ipheth-dkms 1.0-1
ProcVersionSignature: Ubuntu 2.6.35-7.12-generic 2.6.35-rc4
Uname: Linux 2.6.35-7-generic i686
Architecture: i386
Date: Thu Jul 15 15:09:07 2010
ErrorMessage: ipheth kernel module failed to build
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
PackageVersion: 1.0-1
SourcePackage: ipheth
Title: package ipheth-dkms 1.0-1 failed to install/upgrade: ipheth kernel module failed to build

Related branches

Revision history for this message
Boden Matthews (boden-matthews) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

This is caused by the following change in the kernel
  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=997ea58eb92f9970b8af7aae48800d0ef43b9423
USB: rename usb_buffer_alloc() and usb_buffer_free() users

Marking as triaged/high

Changed in ipheth (Ubuntu):
importance: Undecided → High
status: New → Triaged
summary: - package ipheth-dkms 1.0-1 failed to install/upgrade: ipheth kernel
- module failed to build
+ package ipheth-dkms doesn't build on 2.6.35: usb_buffer_alloc() and
+ usb_buffer_free() have been renamed
Revision history for this message
nicobrainless (nicoseb) wrote :

Any temporary workaround for this yet?

Revision history for this message
Tim Potter (tpot) wrote :

I've uploaded a PPA as a workaround until a new package is released. The fix was pretty simple - the usb_buffer_{alloc,free} calls were just wrappers around other calls that have been removed.

The PPA and this comment were uploaded using the new ipheth driver so I guess it works. (-:

https://launchpad.net/~tpot/+archive/ipheth

Revision history for this message
nicobrainless (nicoseb) wrote :

:) Thank you!
I did not try tethering with it yet, but the module is compiled!

Revision history for this message
buranbr (buranbr) wrote :

Have tried the version on this PPA and it is compiling and thetering

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

Forwarded to debian, since this is the only change it might be possible to sync with them if they integrate the patch. Attached is a ubuntu debdiff if it turns out to be needed.

ipheth (1.0-1ubuntu1) maverick; urgency=low

  * drop-usb-buffer-alloc-kernel-fix.patch:
    - Rename calls to usb_buffer_free and usb_buffer_alloc to
    usb_free_coherent and usb_alloc_coherent for >= 2.6.35 kernels

Test-Build: https://edge.launchpad.net/~sevenmachines/+archive/release+1

tags: added: patch-forwarded-debian
Changed in ipheth (Ubuntu):
assignee: nobody → SevenMachines (sevenmachines)
tags: added: patch-forwarded-upstream
removed: patch-forwarded-debian
tags: added: patch-forwarded-debian
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

Debdiff that actually closes bug

Changed in ipheth (Ubuntu):
status: Triaged → In Progress
assignee: SevenMachines (sevenmachines) → nobody
Changed in ipheth (Ubuntu):
status: In Progress → Confirmed
Changed in ipheth (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ipheth - 1.0-1ubuntu1

---------------
ipheth (1.0-1ubuntu1) maverick; urgency=low

  * drop-usb-buffer-alloc-kernel-fix.patch: (LP: #605740)
    - Rename calls to usb_buffer_free and usb_buffer_alloc to
    usb_free_coherent and usb_alloc_coherent for >= 2.6.35 kernels
 -- Niall Creech <email address hidden> Fri, 17 Sep 2010 21:25:41 +0200

Changed in ipheth (Ubuntu):
status: Fix Committed → Fix Released
Changed in ipheth (Debian):
status: Unknown → Fix Released
Revision history for this message
Michal (michal-ciza) wrote :

For those who are looking for working ipheth-driver under Ubuntu 10.10 with iPhone 4. I have found this:
https://launchpad.net/~tpot/+archive/ipheth

but in 10.10 it is not possible to compile due to some bugs. So I have fixed the original ipheth.c file which is now possible to compile.

See attached ipheth.c

I hope it will help to bring working ipheth driver in next updates of Ubuntu also for iPhone 4.

M

Revision history for this message
Stefano Rivera (stefanor) wrote :

Michal: Tim has reported that issue in Bug #645680

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.