Patch for 4.2.2008 for 3.12

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

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

Re: Patch for 4.2.2008 for 3.12

Postby igorzwx » Wed Feb 05, 2014 12:48 am

cesium wrote:Igorzwx, I may be barely available, but do not try to 'inform' on what is tolerated or not. Tone down a bit.


Thanks for deleting that post. It was indeed "inappropriate information", a kind of "overtone".

Perhaps, you may summarize this thread into a kind of "howto". It may prevent many "endless discussions".

There is also a strange problem with "supported soundcard" (Audiotrak Prodigy HD2) _http://www.opensound.com/forum/viewtopic.php?f=3&t=5590
It may deserve your attention.

kpater69
New Member
Posts: 2
Joined: Mon Dec 08, 2014 8:30 pm
Sound Card: ALC889
OS: kubuntu 14.04LTS

Re: Patch for 4.2.2008 for 3.12

Postby kpater69 » Mon Dec 08, 2014 8:49 pm

Hi,

I try to get rid of ALSA and install OSS4, so I installed oss4* packages using adept and applied [manually] patch. However my OSS4 sources version number is 4.2.2007. I suppose it doesn't much matter.

Code: Select all

# m-a a-i oss4

I get this:

Code: Select all

cd core && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order Module.symvers limits.h && rm -rf .tmp_versions && cd ..
cd drivers && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order osscore_symbols.inc && rm -rf .tmp_versions && cd ..
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Wejście do katalogu `/usr/src/modules/oss4'
cd core && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order Module.symvers limits.h && rm -rf .tmp_versions && cd ..
cd drivers && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order osscore_symbols.inc && rm -rf .tmp_versions && cd ..
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/3.13.0-37-generic/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/3.13.0-37-generic/g ;s/#KVERS#/3.13.0-37-generic/g ; s/_KVERS_/3.13.0-37-generic/g ; s/##KDREV##/3.13.0-37.64/g ; s/#KDREV#/3.13.0-37.64/g ; s/_KDREV_/3.13.0-37.64/g  ' < $templ > ${templ%.modules.in}; \
  done
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_installdirs lib/modules/3.13.0-37-generic/kernel/oss4
# This is Bad(tm) but necessary since linux-headers >= 2.6.29
test ! -e /lib/modules/3.13.0-37-generic/build/include/linux/limits.h || \
       cp /lib/modules/3.13.0-37-generic/build/include/linux/limits.h /usr/src/modules/oss4/core
test ! -e /lib/modules/3.13.0-37-generic/source/include/linux/limits.h || \
       cp /lib/modules/3.13.0-37-generic/source/include/linux/limits.h /usr/src/modules/oss4/core
# Build the modules
/usr/bin/make -C /usr/src/linux-headers-3.13.0-37-generic M=/usr/src/modules/oss4/core modules
make[2]: Wejście do katalogu `/usr/src/linux-headers-3.13.0-37-generic'
  CC [M]  /usr/src/modules/oss4/core/oss_core.o
/usr/src/modules/oss4/core/oss_core.c: In function ‘init_proc_fs’:
/usr/src/modules/oss4/core/oss_core.c:287:8: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
        create_proc_entry ("opensound", 0700 | S_IFDIR, NULL)) == NULL)
        ^
/usr/src/modules/oss4/core/oss_core.c:286:22: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ((oss_proc_root =
                      ^
/usr/src/modules/oss4/core/oss_core.c:293:26: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ((oss_proc_devfiles =
                          ^
/usr/src/modules/oss4/core/oss_core.c:300:20: error: dereferencing pointer to incomplete type
   oss_proc_devfiles->proc_fops = &oss_proc_operations;
                    ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘oss_get_uid’:
/usr/src/modules/oss4/core/oss_core.c:440:3: error: incompatible types when returning type ‘kuid_t’ but ‘int’ was expected
   return current->cred->uid;
   ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘alloc_fop’:
/usr/src/modules/oss4/core/oss_core.c:937:6: error: ‘struct file_operations’ has no member named ‘readdir’
   fop->readdir = NULL;  /* tmp_readdir; */
      ^
/usr/src/modules/oss4/core/oss_core.c:945:14: warning: assignment from incompatible pointer type [enabled by default]
   fop->fsync = oss_no_fsync;
              ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘oss_pci_read_devpath’:
/usr/src/modules/oss4/core/oss_core.c:1619:3: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
   return dev_name(&dip->pcidev->dev);
   ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘oss_get_uid’:
/usr/src/modules/oss4/core/oss_core.c:444:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/modules/oss4/core/oss_core.o] Błąd 1
make[2]: *** [_module_/usr/src/modules/oss4/core] Błąd 2
make[2]: Opuszczenie katalogu `/usr/src/linux-headers-3.13.0-37-generic'
make[1]: *** [binary-modules] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/modules/oss4'
make: *** [kdist_build] Błąd 2



kernel 3.13.0-37-generic, kubuntu 14.04LTS, OSS4 v. 4.2.2007-2.1
oss-core.c was patched [manually]

Please could anyone help?

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

Re: Patch for 4.2.2008 for 3.12

Postby igorzwx » Mon Dec 08, 2014 10:24 pm

kpater69 wrote:Hi,

I try to get rid of ALSA and install OSS4, so I installed oss4* packages using adept and applied [manually] patch. However my OSS4 sources version number is 4.2.2007. I suppose it doesn't much matter.

Code: Select all

# m-a a-i oss4

I get this:

Code: Select all

cd core && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order Module.symvers limits.h && rm -rf .tmp_versions && cd ..
cd drivers && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order osscore_symbols.inc && rm -rf .tmp_versions && cd ..
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Wejście do katalogu `/usr/src/modules/oss4'
cd core && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order Module.symvers limits.h && rm -rf .tmp_versions && cd ..
cd drivers && rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order osscore_symbols.inc && rm -rf .tmp_versions && cd ..
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/3.13.0-37-generic/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/3.13.0-37-generic/g ;s/#KVERS#/3.13.0-37-generic/g ; s/_KVERS_/3.13.0-37-generic/g ; s/##KDREV##/3.13.0-37.64/g ; s/#KDREV#/3.13.0-37.64/g ; s/_KDREV_/3.13.0-37.64/g  ' < $templ > ${templ%.modules.in}; \
  done
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_installdirs lib/modules/3.13.0-37-generic/kernel/oss4
# This is Bad(tm) but necessary since linux-headers >= 2.6.29
test ! -e /lib/modules/3.13.0-37-generic/build/include/linux/limits.h || \
       cp /lib/modules/3.13.0-37-generic/build/include/linux/limits.h /usr/src/modules/oss4/core
test ! -e /lib/modules/3.13.0-37-generic/source/include/linux/limits.h || \
       cp /lib/modules/3.13.0-37-generic/source/include/linux/limits.h /usr/src/modules/oss4/core
# Build the modules
/usr/bin/make -C /usr/src/linux-headers-3.13.0-37-generic M=/usr/src/modules/oss4/core modules
make[2]: Wejście do katalogu `/usr/src/linux-headers-3.13.0-37-generic'
  CC [M]  /usr/src/modules/oss4/core/oss_core.o
/usr/src/modules/oss4/core/oss_core.c: In function ‘init_proc_fs’:
/usr/src/modules/oss4/core/oss_core.c:287:8: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
        create_proc_entry ("opensound", 0700 | S_IFDIR, NULL)) == NULL)
        ^
/usr/src/modules/oss4/core/oss_core.c:286:22: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ((oss_proc_root =
                      ^
/usr/src/modules/oss4/core/oss_core.c:293:26: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ((oss_proc_devfiles =
                          ^
/usr/src/modules/oss4/core/oss_core.c:300:20: error: dereferencing pointer to incomplete type
   oss_proc_devfiles->proc_fops = &oss_proc_operations;
                    ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘oss_get_uid’:
/usr/src/modules/oss4/core/oss_core.c:440:3: error: incompatible types when returning type ‘kuid_t’ but ‘int’ was expected
   return current->cred->uid;
   ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘alloc_fop’:
/usr/src/modules/oss4/core/oss_core.c:937:6: error: ‘struct file_operations’ has no member named ‘readdir’
   fop->readdir = NULL;  /* tmp_readdir; */
      ^
/usr/src/modules/oss4/core/oss_core.c:945:14: warning: assignment from incompatible pointer type [enabled by default]
   fop->fsync = oss_no_fsync;
              ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘oss_pci_read_devpath’:
/usr/src/modules/oss4/core/oss_core.c:1619:3: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
   return dev_name(&dip->pcidev->dev);
   ^
/usr/src/modules/oss4/core/oss_core.c: In function ‘oss_get_uid’:
/usr/src/modules/oss4/core/oss_core.c:444:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/modules/oss4/core/oss_core.o] Błąd 1
make[2]: *** [_module_/usr/src/modules/oss4/core] Błąd 2
make[2]: Opuszczenie katalogu `/usr/src/linux-headers-3.13.0-37-generic'
make[1]: *** [binary-modules] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/modules/oss4'
make: *** [kdist_build] Błąd 2



kernel 3.13.0-37-generic, kubuntu 14.04LTS, OSS4 v. 4.2.2007-2.1
oss-core.c was patched [manually]

Please could anyone help?


kpater69 wrote:I installed oss4* packages using adept


1. It seems that you installed the wrong packages from Ubuntu repositories.
In this case, you should delete them completely ("purge" with dpkg).
See:

Code: Select all

$ man dpkg


2. If you do not know how to install OSS4, you may start a new thread with a title like this: "How to install OSS4 on Kubuntu 14.04LTS?"

kpater69
New Member
Posts: 2
Joined: Mon Dec 08, 2014 8:30 pm
Sound Card: ALC889
OS: kubuntu 14.04LTS

Re: Patch for 4.2.2008 for 3.12

Postby kpater69 » Tue Dec 09, 2014 6:36 pm

igorzwx wrote:2. If you do not know how to install OSS4, you may start a new thread with a title like this: "How to install OSS4 on Kubuntu 14.04LTS?"

You are quite right!

Problem solved, however I did not compiled sources.
1. I installed downloaded .deb package from 4Front Technologies.
2. Blacklisted soundcore in /etc/modprobe.d/blacklist.conf
3. Meanwhile had to rebuild as root: # dpkg --configue -a
4. modeprobe oss_hdaudio
5. osstest gave sound
And first of all I read and made some additions from https://wiki.archlinux.org/index.php/Op ... em#Install

Thanks for motivation ;-)

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

Re: Patch for 4.2.2008 for 3.12

Postby igorzwx » Tue Dec 09, 2014 7:26 pm

kpater69 wrote:1. I installed downloaded .deb package from 4Front Technologies.


Its licence may expire soon. You may better compile it from git.

______________
kpater69 wrote:2. Blacklisted soundcore in /etc/modprobe.d/blacklist.conf


ALSA modules might already be deleted by OSS4. You may not need to blacklist them.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 5 guests