SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Actually, the SlackBuild works and installs properly, but when I try to run:
/etc/rc.d/rc.oss start
I get this:
Code:
Starting OSS...
Relinking OSS kernel modules for ""
This may take few moments - please stand by...
OSS build environment set up for REGPARM kernels
Building module osscore
Failed to compile OSS
make -C /lib/modules/4.4.14-rob2/build M=/usr/lib/oss/build modules
make[1]: Entering directory '/home/rob/trials/linux-4.4.14'
CC [M] /usr/lib/oss/build/osscore.o
/usr/lib/oss/build/osscore.c: In function 'oss_fp_save':
/usr/lib/oss/build/osscore.c:1953:18: error: implicit declaration of function 'read_cr4' [-Werror=implicit-function-declaration]
flags[1] = read_cr4 ();
^
/usr/lib/oss/build/osscore.c:1954:7: error: implicit declaration of function 'write_cr4' [-Werror=implicit-function-declaration]
write_cr4 (flags[1] | 0x600); /* Set OSFXSR & OSXMMEXCEPT */
^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/usr/lib/oss/build/osscore.o' failed
make[2]: *** [/usr/lib/oss/build/osscore.o] Error 1
Makefile:1385: recipe for target '_module_/usr/lib/oss/build' failed
make[1]: *** [_module_/usr/lib/oss/build] Error 2
make[1]: Leaving directory '/home/rob/trials/linux-4.4.14'
Makefile:16: recipe for target 'default' failed
make: *** [default] Error 2
Relinking the OSS kernel modules failed
Done building package for oss.
Built package: oss-4.2.2011-x86_64-1_SBo.tgz
+++++++++++++++++++++++++++++++++++++++++++
SUMMARY LOG
Using the SBo repository for Slackware 14.2
Queue Process: Download and build
oss:
MD5SUM check for oss-v4.2-build2011-src-gpl.tar.bz2 ... OK
Building package oss-4.2.2011-x86_64-1_SBo.tgz ... OK
+++++++++++++++++++++++++++++++++++++++++++
###########################################
Queue process complete!
###########################################
It looks to me like the patch 'oss-v4.2-linux-4.0.patch' has not been applied. Compare that patch to your compilation error and you'll see what I mean. If you have a full log of running the SlackBuild, you will hopefully see whether or not it is successfully applying that patch before compilation starts.
You don't need to build OSSv3 in the kernel to use OSSv4. Just disable ALSA from loading and the module should load during startup via the oss rc script.
Thanks for the suggestions guys. It was half past 'too late' when I was trying this (with bleary eyes) last night. I may have missed some details.
I'm not in front of it now... have to go to work, but I'll have another go tonight.
Quote:
Originally Posted by 55020
It looks to me like the patch 'oss-v4.2-linux-4.0.patch' has not been applied.
Looking at the errors and comparing them to the patch, you might be right. Perhaps the patch didn't apply.
I'll have a look at the SlackBuild log, try a few things and report back later.
For some background: It has been years since I last compiled a custom kernel. It sure has gotten bigger since the last time I did it. I've chopped a lot of stuff out of my config, using the theory that if I don't know what it is then I probably don't need it. My config file is around 80kb and there is probably more stuff that I can chop off. I'm hoping to be able to get rid of ALSA entirely, so that might make it a little smaller.
P.S. It occurred to me this morning that I may have broken the first rule of Fight Club. Sorry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.