Building OSS modules for 3.8.0 Linux Kernel

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

Building OSS modules for 3.8.0 Linux Kernel

Postby seawright » Sat May 04, 2013 2:34 pm

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?
regards
Clive
seawright
 
Posts: 77
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Re: Building OSS modules for 3.8.0 Linux Kernel

Postby nuc » Sat May 04, 2013 11:46 pm

Something changed in Linux 3.8, that requires a patch for building OSS. See https://projects.archlinux.org/svntogit ... ckages/oss
nuc
 
Posts: 32
Joined: Fri Aug 03, 2012 10:20 am

Re: Building OSS modules for 3.8.0 Linux Kernel

Postby Matti » Sun May 05, 2013 3:07 pm

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.
Matti
 
Posts: 29
Joined: Sun May 29, 2011 12:34 pm

Re: Building OSS modules for 3.8.0 Linux Kernel

Postby seawright » Mon May 06, 2013 1:10 am

Thank you Nuc & Matti. :oops: Egg on my face! Had missed the earlier post.
regards
Clive
seawright
 
Posts: 77
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK


Return to Linux

Who is online

Users browsing this forum: Bing [Bot] and 7 guests