[SOLVED]oss_envy24: Unknown symbol oss_timing_printf (err 0)

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

[SOLVED]oss_envy24: Unknown symbol oss_timing_printf (err 0)

Postby dflt » Mon Jun 18, 2012 10:23 am

Hello,
I've got this error in dmesg:

oss_envy24: Unknown symbol oss_timing_printf (err 0)

As you may suspect module isn't loading.

What to do with it?

I'm using arch.

ossinfo:
Code: Select all
Version info: OSS 4.2 (b 2006/201206181011) (0x00040100) OSS_HG
Hg revision: changeset: 948:233e1cedf15a, tag: tip, date: Thu Mar 01 21:05:56 2012 +0200, summary: Fixes for FreeBSD
Platform: Linux/x86_64 3.4.2-2-ARCH #1 SMP PREEMPT Mon Jun 11 22:27:17 CEST 2012 (vagoo)


uname -a:
Code: Select all
Linux home 3.4.2-2-ARCH #1 SMP PREEMPT Mon Jun 11 22:27:17 CEST 2012 x86_64 GNU/Linux


I've tried striping out oss_timing_printf in source code but:
Code: Select all
grep oss_timing_printf /usr/lib/oss/* -R

doesnt show anything.

Alsa sucks, please help.
Last edited by dflt on Mon Jun 18, 2012 11:02 am, edited 1 time in total.
dflt
New Member
 
Posts: 5
Joined: Sun Sep 12, 2010 11:07 pm

Re: oss_envy24: Unknown symbol oss_timing_printf (err 0)

Postby dflt » Mon Jun 18, 2012 11:02 am

Ok, I've managed to "fix" it (more like dirty hack it).

For other people with the same problem I've prepared minihowto:
1. download tar ball with of oss-hg from http://aur.archlinux.org/packages.php?ID=24719

# wget http://aur.archlinux.org/packages/os/os ... -hg.tar.gz

2. unpack etc.
# tar zxvf oss*gz
# cd oss-hg

4. makepkg so we have sources without a hassel:
# makepkg --asroot

4. coping orginal file
# cd oss
# cp kernel/drv/oss_envy24/oss_envy24.c oss_envy24.c.new

5. commenting lines in oss_envy24.c.new:
Code: Select all
258 //#ifdef DO_TIMINGS
259 //      oss_timing_printf ("Envy24: Copy out %d, %d",
260 //                 dmap_get_qhead (dmap) * dmap->fragment_size, nbytes);
261 //#endif


(yeah I know I could comment only two lines of oss_timing... but I dont trust the empty #ifndef)

6. generating patch
# diff -u kernel/drv/oss_envy24/oss_envy24.c oss_envy24.c.new > ../oss_envy24.c.patch

7. editing PKGBUILD to use our patch
# vim ../PKGBUILD

8. adding line for example between

export NO_WARNING_CHECKS=yes

and

msg "Building libflashsupport.so."

so the result is for example:

Code: Select all
44   export NO_WARNING_CHECKS=yes
45
46   msg "Patching envy24..."
47   echo $(pwd)
48   echo ${startdir}
49   patch -p0 < $startdir/oss_envy24.c.patch
50
51   # Compile libflashsupport.so only in packaging time, so we avoid
52   # conflicts with other packages and ease package management.
53   msg "Building libflashsupport.so."


9. building & Installing
# cd ..
# makepkg --asroot
# pacman -U *xz

It is possible that I've made somewhere error so please inform me. What else... I know it's not most elegant way to do it etc. but it works and I dont have time to improved it. ;-)
dflt
New Member
 
Posts: 5
Joined: Sun Sep 12, 2010 11:07 pm


Return to Linux

Who is online

Users browsing this forum: Google [Bot] and 1 guest