oss4 not compilable on gentoo

OSS specific Linux discussion (x86/amd64)

Moderators: dev, hannu, cesium

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 2:28 pm

ossuserr wrote:tar.bz file from your site lacks install.sh file.


It is not true. It is not missing.

The tar.bz2 package has the install.sh script:

Code: Select all

 .../oss-linux-v4.2-2011-i386/usr/lib/oss/build/install.sh
 .../oss-linux-v4.2-2011-amd64/usr/lib/oss/build/install.sh


Do you have your drivers in /usr/lib/oss/etc/devices.list ?

Code: Select all

$ cat /usr/lib/oss/etc/devices.list | grep "CMedia CM8738/CM8768"
oss_cmpci   pci13f6,111   CMedia CM8738/CM8768


Code: Select all

$ cat /usr/lib/oss/etc/devices.list | grep "Creative Sound Blaster Audigy/Audigy2"
oss_sblive   pci1102,4   Creative Sound Blaster Audigy/Audigy2


Your "installed_drivers" file should look like this:

Code: Select all

$ cat /usr/lib/oss/etc/installed_drivers
oss_cmpci #CMedia CM8738/CM8768
oss_sblive #Creative Sound Blaster Audigy/Audigy2
oss_usb #Generic USB audio/MIDI device (BETA)


You may try to create it manually.

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 2:58 pm

Untarred 64bit from your site and copied files to appropriate folders. then
sh /usr/lib/oss/build/install.sh

OSS build environment set up for REGPARM kernels

Building module osscore
Failed to compile OSS
make -C /lib/modules/4.0.5-gentoo/build M=/usr/lib64/oss/build modules
make[1]: Entering directory '/usr/src/linux-4.0.5-gentoo'
CC [M] /usr/lib64/oss/build/osscore.o
/usr/lib64/oss/build/osscore.c: In function ‘oss_fp_save’:
/usr/lib64/oss/build/osscore.c:1953:7: error: implicit declaration of function ‘read_cr4’ [-Werror=implicit-function-declaration]
flags[1] = read_cr4 ();
^
/usr/lib64/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/lib64/oss/build/osscore.o' failed
make[2]: *** [/usr/lib64/oss/build/osscore.o] Error 1
Makefile:1390: recipe for target '_module_/usr/lib64/oss/build' failed
make[1]: *** [_module_/usr/lib64/oss/build] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0.5-gentoo'
Makefile:16: recipe for target 'default' failed
make: *** [default] Error 2

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 3:16 pm

Manually created that file and gave soundon command. It told /etc/installed_driver is missing. I copied that file to /etc/installed_drivers. I gave soundon again but i got error
soundon
cat: /version.dat: No such file or directory
Relinking OSS kernel modules for ""
This may take few moments - please stand by...
/usr/sbin/soundon: line 89: cd: /build: No such file or directory
cat: /var/log/relink.log: No such file or directory

Relinking the OSS kernel modules failed

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 3:19 pm

ossuserr wrote:Untarred 64bit from your site and copied files to appropriate folders. then

Code: Select all

sh /usr/lib/oss/build/install.sh
OSS build environment set up for REGPARM kernels
Building module osscore
Failed to compile OSS


This package is not likely to be patched for new kernels.

You may try git:

Get the source code using GIT:

Code: Select all

git clone git://opensound.git.sourceforge.net/gitroot/opensound/opensound

_http://www.opensound.com


It can be patched (if it is needed).

You may also want to read the manual _http://www.opensound.com/wiki/index.php/Building_OSSv4_from_source

NOTE: Before re-installing OSS4, you have to remove the old folder /usr/lib/oss/

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 3:21 pm

yes i have drivers strings in /usr/lib/oss/etc/devices.list

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 3:35 pm

ossuserr wrote:yes i have drivers strings in /usr/lib/oss/etc/devices.list


To create the "installed_drivers" file, you may try this command:

Code: Select all

$ sudo echo "oss_cmpci #CMedia CM8738/CM8768
oss_sblive #Creative Sound Blaster Audigy/Audigy2
oss_usb #Generic USB audio/MIDI device (BETA)" > /usr/lib/oss/etc/installed_drivers


Check the result:

Code: Select all

$ cat /usr/lib/oss/etc/installed_drivers


If it looks like this:

Code: Select all

$ cat /usr/lib/oss/etc/installed_drivers
oss_cmpci #CMedia CM8738/CM8768
oss_sblive #Creative Sound Blaster Audigy/Audigy2
oss_usb #Generic USB audio/MIDI device (BETA)


you may run "soundon":

Code: Select all

$ sudo soundon

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 3:39 pm

ossuserr wrote:Manually created that file and gave soundon command. It told /etc/installed_driver is missing. I copied that file to /etc/installed_drivers. I gave soundon again but i got error

Code: Select all

# soundon
cat: /version.dat: No such file or directory
Relinking OSS kernel modules for ""
This may take few moments - please stand by...
/usr/sbin/soundon: line 89: cd: /build: No such file or directory
cat: /var/log/relink.log: No such file or directory
Relinking the OSS kernel modules failed



You may try to compile OSS4 from git (see above).

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 4:21 pm

Compilation from github is also failing due to recipe for target ossdevlinks.o failed. Where is that patch for 4.0.5 kernel?

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 4:26 pm

ossuserr wrote:Compilation from github is also failing due to recipe for target ossdevlinks.o failed. Where is that patch for 4.0.5 kernel?

You may find some patches here:
_http://www.opensound.com/forum/viewtopic.php?f=3&t=5800

and here:
_https://github.com/funtoo/funtoo-overlay/tree/master/media-sound/oss

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 4:40 pm

Applied some patch now i can configure but when i issue make build i get:
for n in oss_sblive;do (echo $n && cd $n && make ARCH=x86_64) || eval 'exit 1'; done
oss_sblive
make[3]: Entering directory '/home/user/oss/kernel/drv/oss_sblive'
cc -c -D_KERNEL -O3 -fno-common -mcmodel=kernel -mno-red-zone -fno-asynchronous-unwind-tables -ffreestanding -fno-stack-protector -Wall -DOSS_LITTLE_ENDIAN -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/Linux -I../../../kernel/nonfree/include -I../../.. oss_sblive.c -o ./oss_sblive.o
oss_sblive.c:1:0: error: code model kernel does not support PIC mode

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 5:01 pm


ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 5:07 pm

how do i apply that gcc patch?

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 5:29 pm

ossuserr wrote:how do i apply that gcc patch?


If you do not know what "patch" is → _https://en.wikipedia.org/wiki/Diff_utility

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: oss4 not compilable on gentoo

Postby ossuserr » Thu Aug 20, 2015 5:59 pm

i know what's patch, tell me how to apply that specific patch because it asks for some paths to files.

igorzwx
Known Member
Posts: 1262
Joined: Sun Jun 28, 2009 9:31 pm

Re: oss4 not compilable on gentoo

Postby igorzwx » Thu Aug 20, 2015 7:02 pm

ossuserr wrote:i know what's patch, tell me how to apply that specific patch because it asks for some paths to files.


1. If you know what patch is, you may try to apply it manually through the help of a text editor of your choice.

2. If you do not know what patch is, you may try to read this: _https://en.wikipedia.org/wiki/Diff_utility

os_linux.h is inside the folder /kernel/OS/Linux/ (source code of OSS4)

You can open it with a text editor and correct something, according to the "patch".

However, if you do not have the newest compiler, you may not need this patch.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 129 guests