Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 00:32:21 +0100
From:      Hans Nieser <h.nieser@xs4all.nl>
To:        freebsd-questions@freebsd.org
Subject:   Re: Linuxpluginwrapper
Message-ID:  <43791E85.2050708@xs4all.nl>
In-Reply-To: <437914BD.2060308@nieser.net>
References:  <1132007534.6427.57.camel@dracula> <437914BD.2060308@nieser.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hans Nieser wrote:
> Dev Tugnait wrote:
> 
>> I have built the linuxpluginwrapper port but it  doesn't work anymore.
>> Attaching my libmap.conf
>>
>> Here's what happens when i do a deinstall in that port
>> ===>  Deinstalling for www/linuxpluginwrapper
>> ===>   Deinstalling linuxpluginwrapper-20050910
>> pkg_delete: file '/usr/local/sbin/is_enabled_lpw' doesn't exist
>> pkg_delete: couldn't entirely delete package (perhaps the packing list
>> is
>> incorrectly specified?)
>>
>> Anyone got flash working?
>>
> 
> I haven't been unable to uninstall anything, but I definitely am having
> issues getting flash to work for firefox. I have an up-to-date portstree
> and have all the latest version of ports installed.
> 
> I've simply tried installing linuxpluginwrapper and linux-flashplugin7,
> with the following in my /etc/libmap.conf:
> 
> #######################################################
> # [ALPHA SUPPORT] Flash7 with Mozilla
> [/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so]
> libpthread.so.0                 libpthread.so.2
> libdl.so.2                      pluginwrapper/flash7.so
> libz.so.1                       libz.so.3
> libm.so.6                       libm.so.4
> libc.so.6                       pluginwrapper/flash7.so
> 
> I've been told to link something, but not what needs to be linked to what
> exactly, and I don't really understand much about the whole library thing
> to figure it out for myself...

Thanks to the helpful people in #freebsd-gnome on freenode IRC I got it to 
work doing the following (the diff step was in the pkg-message for 
linuxpluginwrapper, so missing that step was my own fault):

- Install www/linuxpluginwrapper
- Install www/linux-flashplugin7
- Put following in /etc/libmap.conf

   [/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so]
   libpthread.so.0                 libpthread.so.2
   libdl.so.2                      pluginwrapper/flash7.so
   libz.so.1                       libz.so.3
   libm.so.6                       libm.so.4
   libc.so.6                       pluginwrapper/flash7.so

- Apply the patch at http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff 
to /usr/src/libexec/rtld-elf/rtld.c (using "patch < difffile").
- Rebuild rtld-elf:

   cd /usr/src/libexec/rtld-elf/
   make clean cleandir
   make clean cleandir
   make obj
   make depend
   make
   make install

- Link the plugin:

   ln -s /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so 
/usr/X11R6/lib/browser_plugins/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43791E85.2050708>