LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-25-2016, 09:08 AM   #1
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
OSS SlackBuild not working properly


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
Any ideas?
 
Old 08-25-2016, 09:21 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Did you actually use this and downloaded the patches as well? https://slackbuilds.org/repository/14.2/audio/oss/
 
Old 08-25-2016, 09:27 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448

Original Poster
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
OSS SlackBuild not working properly

Yes, I downloaded the whole kit from SB.o
 
Old 08-25-2016, 09:28 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Care to share the compilation log?
 
Old 08-25-2016, 09:29 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448

Original Poster
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
OSS SlackBuild not working properly

Does OSS have to be enabled in the kernel? It seems to be looking for something in the kernel source tree...
 
Old 08-25-2016, 09:29 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Code:
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!
###########################################
 
Old 08-25-2016, 09:32 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
I think you made a custom kernel: /lib/modules/4.4.14-rob2
 
Old 08-25-2016, 04:22 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448

Original Poster
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
OSS SlackBuild not working properly

Yes I did Willy, you're right.

What kernel options need to be enabled for the modules in the Slackbuild to compile properly?
 
Old 08-25-2016, 04:36 PM   #9
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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.
 
Old 08-25-2016, 05:32 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 08-25-2016, 06:39 PM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448

Original Poster
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
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.
 
Old 08-26-2016, 02:45 AM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You can disable each driver, but you need the soundcore available for OSSv4.
 
Old 08-26-2016, 08:48 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448

Original Poster
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Thanks fellas.

It looks like the patch didn't apply properly.

All fixed now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Microphone not working with oss linuxmandrake Linux - Hardware 0 11-08-2005 11:06 AM
Alsa-oss not working Iskendar Linux - Software 2 06-16-2005 05:57 AM
Issue with snd-pcm-oss and snd-mixer-oss; OSS load failed EnigmaX Slackware 3 07-26-2004 03:26 PM
OSS always stops working SpeedDingo Linux - Software 1 05-16-2004 08:54 PM
OSS not working after update Kakashi Linux - Software 0 04-17-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration