← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 627022] Re: package nvidia-current 195.36.24-0ubuntu1~10.04 failed to install/upgrade: nvidia-current kernel module failed to build (nv.c:417: error: unknown field ‘ioctl’ specified in initializer)

 

** Description changed:

+ IMPACT:
+ 
+ The NVIDIA driver fails to build on Ubuntu 10.04 LTS if you have
+ upgraded your kernel to >= 2.6.36. The offending kernel change was
+ commit b19dd42faf413b4705d4adb38521e82d73fa4249 in 2.6.36 stable.
+ 
+ 
  TEST CASE:
  
  Starting with a clean Ubuntu 10.04 installation...
-     sudo apt-add-repository ppa:kernel-ppa/ppa && sudo apt-get update
-     sudo apt-get install linux-image-generic-lts-backport-natty linux-headers-generic-lts-backport-natty
-     sudo apt-get install nvidia-current
+     sudo apt-add-repository ppa:kernel-ppa/ppa && sudo apt-get update
+     sudo apt-get install linux-image-generic-lts-backport-natty linux-headers-generic-lts-backport-natty
+     sudo apt-get install nvidia-current
  Installation of nvidia-current will fail for the newer kernel. Now to verify it's the same error at nv.c:417:
-     tail /var/lib/dkms/nvidia-current/*/build/make.log
+     tail /var/lib/dkms/nvidia-current/*/build/make.log
+ ("error: unknown field ‘ioctl’ specified in initializer")
+ 
+ 
+ FIX:
+ 
+ ifdef out the deprecated structure field, which is no longer present in
+ Linux kernels >= 2.6.36. NVIDIA have already implemented a similar fix
+ upstream, apparently in driver version ~260.19.06 onward.
+ 
  
  NOTES:
  
  This seems to be the same bug in both the 96 and 195 series nvidia drivers:
  nv.c:244 (nvidia-96 96.43.17-0ubuntu1) == nv.c:417 (nvidia-current 195.36.24-0ubuntu1~10.04)
+ 
+ 
+ REGRESSION POTENTIAL:
+ 
+ Low. We are only #ifdef'ing out a structure member that no longer
+ exists. Its replacement is already present in both newer and older
+ kernels, and is used (redundantly) by the NVIDIA driver source because
+ the removal of the 'ioctl' field had been planned for a long time.
+ 
+ 
+ ORIGINAL BUG REPORT:
  
  ProblemType: Package
  DistroRelease: Ubuntu 10.04
  Package: nvidia-current 195.36.24-0ubuntu1~10.04
  ProcVersionSignature: Ubuntu 2.6.35-19.25~lucid1-generic 2.6.35.3
  Uname: Linux 2.6.35-19-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Mon Aug 30 15:20:49 2010
  ErrorMessage: nvidia-current kernel module failed to build
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
  Lsusb:
   Bus 002 Device 002: ID 1241:1503 Belkin Keyboard
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: Gigabyte Technology Co., Ltd. M61P-S3
  PackageVersion: 195.36.24-0ubuntu1~10.04
  ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-19-generic root=UUID=854b6439-6806-4a32-ae7b-c2024e888b20 ro quiet splash
  SourcePackage: nvidia-graphics-drivers
  Title: package nvidia-current 195.36.24-0ubuntu1~10.04 failed to install/upgrade: nvidia-current kernel module failed to build
  dmi.bios.date: 06/18/2009
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F7f
  dmi.board.name: M61P-S3
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF7f:bd06/18/2009:svnGigabyteTechnologyCo.,Ltd.:pnM61P-S3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnM61P-S3:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: M61P-S3
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.
  system:
   distro:             Ubuntu
   codename:           lucid
   architecture:       x86_64
   kernel:             2.6.35-19-generic

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in Ubuntu.
https://bugs.launchpad.net/bugs/627022

Title:
  package nvidia-current 195.36.24-0ubuntu1~10.04 failed to
  install/upgrade: nvidia-current kernel module failed to build
  (nv.c:417: error: unknown field ‘ioctl’ specified in initializer)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/627022/+subscriptions


References