From owner-freebsd-questions@FreeBSD.ORG Wed Oct 29 14:29:55 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 353C7106567D for ; Wed, 29 Oct 2008 14:29:55 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from QMTA06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by mx1.freebsd.org (Postfix) with ESMTP id CBF008FC1C for ; Wed, 29 Oct 2008 14:29:54 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from OMTA06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA06.westchester.pa.mail.comcast.net with comcast id YaKA1a00616LCl056eDSf4; Wed, 29 Oct 2008 14:13:26 +0000 Received: from [192.168.2.164] ([206.210.89.202]) by OMTA06.westchester.pa.mail.comcast.net with comcast id YeDf1a00D4Mx3R23SeDjMo; Wed, 29 Oct 2008 14:13:52 +0000 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=pQs5aej7AAAA:8 a=MiUiSR_eWE5scMVP6bsA:9 a=kEE60Z-Hcf5gTnl_ZwUA:7 a=GwMtUbjiLX6p7QeAlj_gK3-Em1wA:4 a=3I_whO4B8K8A:10 Message-ID: <49086F1A.2090500@comcast.net> Date: Wed, 29 Oct 2008 10:11:38 -0400 From: Steve Polyack User-Agent: Thunderbird 2.0.0.17 (X11/20081006) MIME-Version: 1.0 To: Mikhail Teterin , questions@FreeBSD.org, freebsd-emulation@FreeBSD.org References: <200810280859.24048@aldan> <20081028181731.GA30591@saturn.kn-bremen.de> In-Reply-To: <20081028181731.GA30591@saturn.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: flash9 checklist X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 14:29:55 -0000 Juergen Lock wrote: > > Preliminary checklist for getting flash9 to work in native firefox: > (flash10 needs more ports work, I shall post about that seperately on > -emulation...) If you have additions to this please post a followup to > this thread, keeping the Cc: (I'm not on -questions...) > > 1. You need RELENG_7 from at least Mon Oct 20 11:15:57 2008 UTC > (the relevant MFC commits are: > http://svn.freebsd.org/viewvc/base?view=revision&revision=183819 > http://svn.freebsd.org/viewvc/base?view=revision&revision=184075 > - a recent HEAD should also work of course.) There are linprocfs patches > for RELENG_6 too (merging the former commit), but the latter commit can't > be merged to 6 (and 7.0) since they lack the cpuset bits, so flash9 > probably won't work on SMP there. (Although if you have SMP you probably > should be running 7 anyway. :) Oh and if you do have SMP you also need to > use the ULE scheduler, the cpuset syscalls are not supported with 4BSD. > linprocfs patches for 6: > http://people.freebsd.org/~nox/linprocfs-6.3.patch > http://people.freebsd.org/~nox/linprocfs-6.4.patch > > 2. Your portstree needs to be from at least Sun Oct 19 17:37:28 2008 UTC > (the last www/linux-flashplugin9 commit is: > http://lists.freebsd.org/pipermail/cvs-ports/2008-October/158404.html > ) > > 3. Make sure linprocfs is mounted to /compat/linux/proc . > > 4. Make sure www/nspluginwrapper, www/linux-flashplugin9 and dependencies > are installed and up to date(!). (the default emulators/linux_base-fc4 > should work, if you want to use a later one don't forget to set > compat.linux.osrelease=2.6.16 in sysctl.conf and OVERRIDE_LINUX_BASE_PORT > to whichever version you use in make.conf. Note however that on 6, only > the default compat.linux.osrelease=2.4.2 really works.) > > 5. If the plugin doesnt show up in firefox' about:plugins, run > nspluginwrapper -i /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so > and restart firefox. > > 6. And remember there's a security advisory for the current version of > flash9, > http://www.FreeBSD.org/ports/portaudit/78f456fd-9c87-11dd-a55e-00163e000016.html > (if you use portaudit you need to `make -DDISABLE_VULNERABILITIES ...' > to be able to install the port), and fc4 seems to be eol'd too, so you > probably want to install something like the noscript firefox extension, > https://addons.mozilla.org/en-US/firefox/addon/722 > and only allow plugins (and scripts, tho thats a different problem) on > sites you trust... > > And finally, if you still get crashes after following the above even > on pages that are reported to work now (like youtube) you probably want > to run `ktrace -di firefox...' and look at the output using linux_kdump > (thats the devel/linux_kdump port, you want to use a package), paying > specific attention to the lines above `PSIG SIGSEGV' (or whichever > signal you got), maybe there are still shlibs missing that the plugin > needs (NAMI ...something.so...), and if this is the case tell us about > it so the appropriate dependencies can be added to the relevant ports. > If you can't figure it out I guess it doesn't hurt to post the last > few 100 lines of the dump up to the relevant PSIG on -emulation... > > You may also want to check linked shlibs like this: > /compat/linux/bin/sh /compat/linux/usr/bin/ldd /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so > and > /compat/linux/bin/sh /compat/linux/usr/bin/ldd /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin > (if you see `not found' in there you know something is wrong) - although > that doesn't show libs that may be dlopen()d at runtime. > > Thanks for this. I was able to get linux-flashplugin9 working in native Firefox 3.0.3 on FreeBSD 7-STABLE i386. The only additional thing I had to do was copy /usr/X11R6/lib/browser_plugins/npwrapper.libflashplayer.so into ~/.mozilla/plugins/ for Firefox to recognize the plugin. After that Youtube, google video, and google maps (incl. street view) work fine, but slow. A friend of mine with a very similar setup was not so lucky and still has problems with flash9 locking up FF.