Comment 0 for bug 2011684

Revision history for this message
Andrea Righi (arighi) wrote :

[Impact]

Trying to install oss4-dkms with the latest 6.2 kernel shows the following build error:

/var/lib/dkms/oss4/4.2-build2020/build/drivers/osscore_symbols.inc:4:14: warning: initialization of ‘unsigned int’ from ‘char *’ makes integer from pointer without a cast [-
Wint-conversion]
    4 | {0x46ca35f6, "oss_register_chrdev"},
      | ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/oss4/4.2-build2020/build/drivers/osscore_symbols.inc:4:14: note: (near initialization for ‘____versions[0].crc’)
/var/lib/dkms/oss4/4.2-build2020/build/drivers/osscore_symbols.inc:4:14: error: initializer element is not computable at load time

[Test case]

$ sudo apt install oss4-dkms

[Fix]

The latest 6.2 kernel includes a SAUCE patch to support a variable-length for the max size of symbol names. This seems to conflict with osscore_symbols.inc that defines a bunch of symbols in the old static size way.

Looking at the code it seems pointless to define these symbols (and their modversion) manually, we can just let the kernel determine the right mod versioning during the regular build.

[Regression potential]

We may experience regressions / user-space incompatibilities with recent kernels >= 6.2 that are using oss4 (assuming anyone is still using the oss4 sound system).

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: oss4-dkms 4.2-build2020-1
ProcVersionSignature: User Name 6.2.0-17.17-generic 6.2.6
Uname: Linux 6.2.0-17-generic x86_64
NonfreeKernelModules: osscore
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CloudBuildName: server
CloudSerial: 20230301
Date: Wed Mar 15 08:39:07 2023
SourcePackage: oss4
UpgradeStatus: No upgrade log present (probably fresh install)