firefox & flash9 patches

Tijl Coosemans tijl at ulyssis.org
Thu Oct 2 13:58:10 UTC 2008


On Thursday 02 October 2008 15:03:38 Vladimir Grebenschikov wrote:
> On Thu, 2008-10-02 at 14:46 +0200, Tijl Coosemans wrote:
>> On Thursday 02 October 2008 08:04:23 Vladimir Grebenschikov wrote:
>>> On Wed, 2008-10-01 at 18:52 +0200, Tijl Coosemans wrote:
>>> 
>>> Do you have working sound with your flashsupport patch and flash9 ?
>>> 
>>> I've tried both - your pre-build library and to build library myself
>>> with your patch - same effect, I have a lot of "ALSA" complains on
>>> output and no actual sound:
>>> (I am trying on 8-CURRENT)
>>> 
>>> ...
>>> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
>>> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
>>> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device
>>> ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
>>> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device
>>> ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device
>>> ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
>>> ALSA lib pcm_hw.c:1305:(_snd_pcm_hw_open) Invalid value for card
>>> ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
>>> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
>>> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
>>> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device
>>> ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
>>> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device
>>> ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device
>>> ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
>>> ALSA lib pcm_hw.c:1305:(_snd_pcm_hw_open) Invalid value for card
>>> ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
>>> ...
>>> 
>>> Any hints will be very appreciated.
>> 
>> I have sound in both linux-firefox and native firefox 2. The
>> libflashsupport installed by the linux-flashplugin9 port already makes
>> sound work for me.
>> 
>> I have the following linux packages installed:
>> 
>> linux-atk-1.9.1     Accessibility Toolkit, Linux/i386 binary
>> linux-cairo-1.0.2   Linux cairo binary
>> linux-expat-1.95.8  Linux/i386 binary port of Expat XML-parsing library
>> linux-firefox-2.0.0.17 Web browser based on the browser portion of Mozilla
>> linux-flashplugin-9.0r124_1 Adobe Flash Player NPAPI Plugin
>> linux-fontconfig-2.2.3_7 Linux/i386 binary of Fontconfig
>> linux-glib2-2.6.6   Version 2.X Linux/i386 binary port of GLib
>> linux-gtk2-2.6.10   GTK+ library, version 2.X, Linux binary
>> linux-hicolor-icon-theme-0.5_1 A high-color icon theme shell from the FreeDesktop project
>> linux-jpeg-6b.34    RPM of the JPEG lib
>> linux-openssl-0.9.7f SSL and crypto library (Linux Version)
>> linux-pango-1.10.2  Linux pango binary
>> linux-png-1.2.8_2   RPM of the PNG lib
>> linux-tiff-3.7.1    TIFF library, Linux/i386 binary
>> linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries
>> linux_base-fc-4_13  Base set of packages needed in Linux mode (for i386/amd64)
>> 
>> Kernel with Dmitry's linprocfs patch and linprocfs mounted on
>> /compat/linux/proc
>> 
>> sysctl compat.linux
>> compat.linux.oss_version: 198144
>> compat.linux.osrelease: 2.4.2
>> compat.linux.osname: Linux
>> 
>> That's it for linux-firefox.
> 
> Hm, in my case it even does not starts with osrelease=2.4.2
> $ linux-firefox
> FATAL: kernel too old
> $
> 
>> For native firefox, you need to install nspluginwrapper and run
>> "nspluginwrapper -v -a -i" as root.
> 
> Same diagnostic from flashplugin9 under ff3, looks like it is due to
> glibc from fedora8
> 
> looks like either flashpayer9 or flashsupport or some linux library
> provides additional ALSA->pcm compatibility.

There's no need for an ALSA->OSS layer. The flashsupport lib has direct
access to the sound buffer.

You need to make sure the flash plugin can load the support lib
though, because it fails silently. Can it find all lib dependencies
for instance? What does ldd say:

% /compat/linux/bin/sh /usr/bin/ldd /usr/lib/libflashsupport.so
        libssl.so.5 => /lib/libssl.so.5 (0x20020000)
        libpthread.so.0 => /lib/obsolete/linuxthreads/libpthread.so.0 (0x20059000)
        libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x200ac000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x201cb000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x201e2000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x20254000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x20257000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x2027c000)
        libcrypto.so.5 => /lib/libcrypto.so.5 (0x2028e000)
        libdl.so.2 => /lib/libdl.so.2 (0x203a5000)
        libz.so.1 => /usr/lib/libz.so.1 (0x203a9000)
        /lib/ld-linux.so.2 (0x00000000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x203bc000)


More information about the freebsd-emulation mailing list