Page 1 of 1

Building OSS modules for 3.8.0 Linux Kernel

PostPosted: Sat May 04, 2013 2:34 pm
by seawright
Since upgrading my kernel from 3.5.0 to 3.8.0 I have not been able to build sound card specific kernel modules. Any attempt to build them results in the following error:
Code: Select all
OSS build environment set up for REGPARM kernels

Building module osscore
Building module oss_atiaudio
Compiling module oss_atiaudio failed
make[1]: Entering directory `/usr/lib/oss/build'
make -C /lib/modules/3.8.0-19-generic/build M=/usr/lib/oss/build modules
make[2]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
  CC [M]  /usr/lib/oss/build/oss_atiaudio.o
In file included from /usr/lib/oss/build/module.inc:45:0,
                 from /usr/lib/oss/build/oss_atiaudio.c:23:
/usr/lib/oss/build/pci_wrapper.inc:21:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘osspci_probe’
/usr/lib/oss/build/pci_wrapper.inc:69:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘osspci_remove’
In file included from /usr/lib/oss/build/oss_atiaudio.c:23:0:
/usr/lib/oss/build/module.inc:51:12: error: ‘osspci_probe’ undeclared here (not in a function)
/usr/lib/oss/build/module.inc:52:13: error: ‘osspci_remove’ undeclared here (not in a function)
In file included from /usr/lib/oss/build/oss_atiaudio.c:23:0:
/usr/lib/oss/build/module.inc:33:12: warning: ‘instance’ defined but not used [-Wunused-variable]
In file included from /usr/lib/oss/build/module.inc:45:0,
                 from /usr/lib/oss/build/oss_atiaudio.c:23:
/usr/lib/oss/build/pci_wrapper.inc:17:18: warning: ‘dev_map’ defined but not used [-Wunused-variable]
/usr/lib/oss/build/pci_wrapper.inc:18:12: warning: ‘n_devmap’ defined but not used [-Wunused-variable]
make[3]: *** [/usr/lib/oss/build/oss_atiaudio.o] Error 1
make[2]: *** [_module_/usr/lib/oss/build] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/lib/oss/build'

From the above is anyone able to see what I am doing wrong?

If not could they suggest the best way forward to diagnose this problem?

Re: Building OSS modules for 3.8.0 Linux Kernel

PostPosted: Sat May 04, 2013 11:46 pm
by nuc
Something changed in Linux 3.8, that requires a patch for building OSS. See https://projects.archlinux.org/svntogit ... ckages/oss

Re: Building OSS modules for 3.8.0 Linux Kernel

PostPosted: Sun May 05, 2013 3:07 pm
by Matti
I've had that problem when 3.8 was in development and cesium the moderator of this forum posted a patch and instructions how to use it either when building new oss4 package or applying to the one already installed.

OSS modules won't build Kernel 3.8-rc6

NOTE: The file posted by nuc is exactly the same as patch provided by cesium. Also I'm now using Kernel 3.9 from Ubuntu Mainline Kernel PPA and Open Sound System still works.

Re: Building OSS modules for 3.8.0 Linux Kernel

PostPosted: Mon May 06, 2013 1:10 am
by seawright
Thank you Nuc & Matti. :oops: Egg on my face! Had missed the earlier post.