Kernel build system installs modules in the wrong place

Bug #910611 reported by Phil Pemberton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Oneiric kernels seem to have an issue with the version numbering on the kernel build system not being set correctly:

$ uname -a
Linux cheetah 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

$ head /lib/modules/3.0.0-14-generic/build/Makefile
VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 9
EXTRAVERSION =
NAME = Sneaky Weasel

What this means is that if you use Module-Assistant to build a driver (e.g. vloopback) or install WebcamStudio (http://www.ws4gl.org/) then the module will be installed in the wrong place -- specifically, the kernel's build system will install the modules in /lib/modules/3.0.9, when they should be installed in /lib/modules/3.0.0-14-generic.

This happens with the r8168 (Realtek Ethernet) driver, WebcamStudio, and several other modules.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-14-generic 3.0.0-14.23
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: XFi [Creative X-Fi], device 0: ctxfi [Front/WaveIn]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: philpem 2273 F.... pulseaudio
                      philpem 2280 F.... xfce4-volumed
 /dev/snd/pcmC0D0c: philpem 2273 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'XFi'/'Creative X-Fi 20K2 SB0880'
   Mixer name : '20K2'
   Components : ''
   Controls : 29
   Simple ctrls : 10
Date: Sun Jan 1 18:34:00 2012
HibernationDevice: RESUME=UUID=dbc4d840-7fcc-47f8-9b23-3039abb4055e
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. Z68AP-D3
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-14-generic root=UUID=9eb32ed4-f0a3-4e50-9b8a-95b8f5be1b64 ro nomodeset splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-14-generic N/A
 linux-backports-modules-3.0.0-14-generic N/A
 linux-firmware 1.60
RfKill:
 14: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/12/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6
dmi.board.name: Z68AP-D3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6:bd10/12/2011:svnGigabyteTechnologyCo.,Ltd.:pnZ68AP-D3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnZ68AP-D3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: Z68AP-D3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Phil Pemberton (philpem) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Sam_ (and-sam) wrote :

Not the case on later kernel e.g. 3.2.0-5 to -7.
$ head /lib/modules/3.2.0-7-generic/build/Makefile
VERSION = 3
PATCHLEVEL = 2
SUBLEVEL = 0
EXTRAVERSION = -rc7
NAME = Saber-toothed Squirrel

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.