hugh nicks
February 22nd, 2004, 16:48
I'm trying to get flash up and running with the version of Firefox that I just compiled, and I keep getting the same error over and over:
starlight# make
===> linuxpluginwrapper-20040208_1 depends on shared library: lthread.3 - not found
===> Verifying install for lthread.3 in /usr/ports/devel/linuxthreads
===> Vulnerability check disabled

You can use an experimental patch to reduce the number of
condition variable triggered context switches by defining
WITH_CONDWAIT_PATCH


Some unsafe calls to exit() can be detected by defining
LINUXTHREADS_DETECT_UNSAFE_EXIT, see files/README.FreeBSD
for more info.


Some conflicts with native threads can be avoided by defining
LINUXTHREADS_WRAP_API, see files/README.FreeBSD
for more info.

>>The linuxthreads port needs source code for libgcc
>>Please install FreeBSD source code in /usr/src
*** Error code 1

Stop in /usr/ports/devel/linuxthreads.
*** Error code 1

Stop in /usr/ports/www/linuxpluginwrapper.
starlight#

It's bothering me because I guess I don't know enough about linux compat to get this working. I tried googling for an explination about lthread.3, but to no avail. I *think* I have set up the linux compat properly, but don't know how to test it. This was the first app I tried. Where it says to install the source code in /usr/src for Freebsd is also confusing. Does that mean the source for libgcc? Do I need to make something additional in the ports? Here are the pkg's I have:

XFree86-clients-4.3.0_6 XFree86-4 client programs and related files
XFree86-documents-4.3.0 XFree86-4 documentation
XFree86-font100dpi-4.3.0 XFree86-4 bitmap 100 dpi fonts
XFree86-font75dpi-4.3.0 XFree86-4 bitmap 75 dpi fonts
XFree86-fontDefaultBitmaps-4.3.0 XFree86-4 default bitmap fonts
XFree86-fontEncodings-4.3.0 XFree86-4 font encoding files
XFree86-fontScalable-4.3.0 XFree86-4 scalable fonts
XFree86-libraries-4.3.0_6 XFree86-4 libraries and headers
XFree86-manuals-4.3.0 XFree86-4 man pages
Xft-2.1.2_1 A client-sided font API for X applications
aalib-1.4.r5_1 An ascii art library
atk-1.4.1_2 A GNOME accessibility toolkit (ATK)
autoconf-2.13.000227_5 Automatically configure source code on many Un*x platforms
automake-1.4.5_9 GNU Standards-compliant Makefile generator (legacy version
bison-1.75_2 A parser generator from FSF, (mostly) compatible with Yacc
boxtools-0.65.0 Style tools for the blackbox family of window managers
compat4x-i386-5.0.20030328 A convenience package to install the compat4x libraries
cvsup-16.1h General network file distribution system optimized for CVS
djbfft-0.76 An extremely fast library for floating-point convolution
dri-4.3.0,1 OpenGL hardware acceleration drivers for XFree86
eterm-0.9.2_1 X11 terminal emulator based on rxvt/xterm
expat-1.95.6_1 XML 1.0 parser written in C
ezm3-1.1_1 Easier, more portable Modula-3 distribution for building CV
firefox-0.8_4 Web browser based on the browser portion of Mozilla
fluxbox-0.1.14_2 A small and fast window manager based on BlackBox
fontconfig-2.2.90_4 An XML-based font configuration API for X Windows
freetype-1.3.1_3 A free and portable TrueType font rendering engine
freetype2-2.1.5_2 A free and portable TrueType font rendering engine
gettext-0.13.1 GNU gettext package
glib-1.2.10_10 Some useful routines of C programming (previous stable vers
glib-2.2.3_1 Some useful routines of C programming (current stable versi
gmake-3.80_2 GNU version of 'make' utility
gtk-1.2.10_11 Gimp Toolkit for X11 GUI (previous stable version)
gtk-2.2.4_2 Gimp Toolkit for X11 GUI (current stable version)
imake-1.0 Imake and other utilities from XFree86
imake-4.3.0_2 Imake and other utilities from XFree86
imlib2-1.1.0 The next generation graphic library for enlightenment packa
intltool-0.30_1 Xml internationalization support for GNOME, and others
jpeg-6b_1 IJG's jpeg compression utilities
lcms-1.09_1,1 Light Color Management System -- a color management library
libIDL-0.8.3_1 A library for creating trees of CORBA Interface Definition
liba52-0.7.4_1 A free library for decoding ATSC A/52 streams, aka AC-3
libast-0.5 A library of assorted spiffy things
libdvdcss-1.2.8_1 Portable abstraction library for DVD decryption
libdvdread-0.9.4 This is needed by ogle, which is a DVD player that supports
libiconv-1.9.1_3 A character set conversion library
libid3tag-0.15.0b_1 ID3 tags library (part of MAD project)
libltdl-1.5.2 System independent dlopen wrapper
libmad-0.15.0b Libmad library (part of MAD project)
libmikmod-3.1.10_2 MikMod Sound Library
libmng-1.0.5_1 Multiple-image Network Graphics (MNG) reference library
libogg-1.1,3 Ogg bitstream library
libtool-1.3.5_2 Generic shared library support script (version 1.3)
libtool-1.4.3_3 Generic shared library support script (version 1.4)
libungif-4.1.0b1_1 Tools and library routines for working with GIF images
libvorbis-1.0.1,3 Audio compression codec library
libxml-1.8.17_2 Xml parser library for GNOME
linux_base-8-8.0_4 Base set of packages needed in Linux mode (only for i386)
m4-1.4_1 GNU m4
mad-0.15.0b The "meta-port" for the MAD sound playback system
madplay-0.15.0b_2 Madplay MP3 player (part of MAD project)
man2html-3.0.1_1 Convert nroff(1) man pages to HTML
mozilla-thunderbird-0.4_1 Mozilla Thunderbird is standalone mail and news that stands
nasm-0.98.38_1,1 General-purpose multi-platform x86 assembler
nspr-4.4.1_1 A platform-neutral API for system level and libc like funct
p5-XML-Parser-2.34 Perl extension interface to James Clark's XML parser, expat
pango-1.2.5_1 An open-source framework for the layout and rendering of i1
pcre-4.5 Perl Compatible Regular Expressions library
perl-5.6.1_15 Practical Extraction and Report Language
pkgconfig-0.15.0_1 A utility used to retrieve information about installed libr
png-1.2.5_3 Library for manipulating PNG images
popt-1.6.4_2 A getopt(3) like library with a number of enhancements, fro
portupgrade-20040208 FreeBSD ports/packages administration and management tool s
rpm-3.0.6_9 The Red Hat Package Manager
ruby-1.6.8.2003.10.15 An object-oriented interpreted scripting language
ruby-shim-ruby18-1.8.1.p3 A set of Ruby modules to provide Ruby 1.8 functionalities
sdl-1.2.5_3,1 Cross-platform multi-media development API (developm. vers.
svgalib-1.4.3_2 A low level console graphics library
tiff-3.6.1_1 Tools and library routines for working with TIFF images
unzip-5.50_2 List, test and extract compressed files in a ZIP archive
wrapper-1.0_3 Wrapper for XFree86-4 server
xmms-1.2.9_1 X Multimedia System --- An audio player with a Winamp GUI
zip-2.3_1 Create/update ZIP files compatible with pkzip



Sorry for the long post, but I just wanted to provide as much info as possible. I'm running 5.2.1 RC2 btw.

Thanks,
-hn

socomm
February 22nd, 2004, 19:06
Make sure that you have installed the linux emulation layer, /usr/ports/emulators/linux_base. Then install /usr/ports/www/linux-flashplugin6, and add the following to your /etc/libmap.conf.

[code:1:899785142e]
# Flash6 with Mozilla/Firebird/Galeon/Epiphany
[/usr/local/lib/linux-flashplugin6/libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc++-libc6.2-2.so.3 liblstdc++.so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so
[/code:1:899785142e]

Best of luck.

PS: Make sure that your ports tree is upto date.

KrUsTy!
February 22nd, 2004, 19:27
I have the regular linux_base installed, (which used to be linux_base-7), and the linux wrapper installed and works just great. Probably best to remove the linux_base-8 and go with the regular linux_base for now. Not sure that the linux_base-8 port is ready for these apps yet.

I pretty much installed it like soccomm said.

{K}

hugh nicks
February 22nd, 2004, 20:27
nothing. i did just what you guys said. uninstalled linux_base -8. installed the normal one. base 7.1_7 to be exact. linux-flashplugin-6.0 as well. i didn't have a libmap.conf file in my etc, so i created one and copied the text in. rebooted. could that be the problem? was i supposed to generate a libmap file somehow?

thanks again,

-hn

socomm
February 22nd, 2004, 20:35
I don't think rebooting would do much of a difference. My libmap.conf is hand rolled and looks like this :

[code:1:0dc28d0e6a]
# /etc/libmap.conf for FreeBSD 5.x
# $Id: libmap.conf-FreeBSD5.x,v 1.2 2003/12/18 18:00:00 nork Exp $


# Flash6 with Opera is not avilable.

# Flash6 with Konqueror (temporary setting)
[/opt/mozilla/plugins/libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc++-libc6.2-2.so.3 liblstdc++.so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so

# Flash6 with Mozilla/Firebird/Galeon/Epiphany
[/usr/local/lib/linux-flashplugin6/libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc++-libc6.2-2.so.3 liblstdc++.so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so


# Acrobat with Opera
#[/usr/X11R6/lib/browser_plugins/nppdf.so]
#libc.so.6 pluginwrapper/acrobat.so

# Acrobat with Konqueror (temporary setting)
#[/opt/mozilla/plugins/nppdf.so]
#libc.so.6 pluginwrapper/acrobat.so

# Acrobat with Mozilla/Firebird/Galeon/Epiphany
#[/usr/local/Acrobat5/Browsers/intellinux/nppdf.so]
#libc.so.6 pluginwrapper/acrobat.so

# Java3D
[/usr/local/jdk1.4.2/jre/lib/i386/libJ3D.so]
libdl.so.2 pluginwrapper/java3d.so
libm.so.6 libm.so.2
libnsl.so.1 pluginwrapper/java3d.so
libpthread.so.0 pluginwrapper/java3d.so
libc.so.6 pluginwrapper/java3d.so

[/usr/local/jdk1.4.2/jre/lib/i386/libj3daudio.so]
libm.so.6 libm.so.2
libnsl.so.1 pluginwrapper/java3d_snd.so
libpthread.so.0 pluginwrapper/java3d_snd.so
libc.so.6 pluginwrapper/java3d_snd.so

[/usr/local/jdk1.4.2/jre/lib/i386/libJ3DUtils.so]
libpthread.so.0 pluginwrapper/java3d.so
libc.so.6 pluginwrapper/java3d.so
[/code:1:0dc28d0e6a]

As far as linux-emu goes I haven't installed anything fancy, the stock linux_base will do. What exactly is the error you get when you run firefox? Does firefox pick up any plugins at all? As far as I recall the /usr/ports/www/linuxpluginwrapper is what you may need.

Just some thoughts.

hugh nicks
February 22nd, 2004, 20:48
socomm said: don't think rebooting would do much of a difference

i know, i always do it out of frustration, even though i know you don't need to for *nix. it's kinda of my version of serenity now. :) (plus, it keeps me from putting my foot through the monitor)

as far as an error message, if i go to space.com for instance, the main page will load with the message but tell me that i don't have flash, and to go an d/l the plugin. same with the vw.com page.

as for the linuxpluginrapper:
starlight# cd /usr/ports/www/linuxpluginwrapper/
starlight# make
===> linuxpluginwrapper-20040208_1 depends on shared library: lthread.3 - not found
===> Verifying install for lthread.3 in /usr/ports/devel/linuxthreads
===> Vulnerability check disabled

You can use an experimental patch to reduce the number of
condition variable triggered context switches by defining
WITH_CONDWAIT_PATCH


Some unsafe calls to exit() can be detected by defining
LINUXTHREADS_DETECT_UNSAFE_EXIT, see files/README.FreeBSD
for more info.


Some conflicts with native threads can be avoided by defining
LINUXTHREADS_WRAP_API, see files/README.FreeBSD
for more info.

>>The linuxthreads port needs source code for libgcc
>>Please install FreeBSD source code in /usr/src
*** Error code 1

Stop in /usr/ports/devel/linuxthreads.
*** Error code 1

Stop in /usr/ports/www/linuxpluginwrapper.
starlight#

george is gettin' upset......

thanks for all your help.
-hn :twisted:


*i just noticed something at the FreeBSD site. According to the handbook:
Linux binary compatibility is not turned on by default. The easiest way to enable this functionality is to load the linux KLD object (``Kernel LoaDable object''). You can load this module by simply typing linux at the command prompt.

If you would like Linux compatibility to always be enabled, then you should add the following line to /etc/rc.conf:

linux_enable="YES"


which is fine because my etc.rc.conf looks like this:
# -- sysinstall generated deltas -- # Fri Feb 20 00:32:16 2004
# Created: Fri Feb 20 00:32:16 2004
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="192.168.2.1"
hostname="starlight"
ifconfig_sis0="inet 192.168.2.111 netmask 255.255.255.0"
usbd_enable="YES"
linux_enable="YES"
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.

but if i type "linux" at a command prompt, i get: "command not found"
wtf did i do wrong?

-hn

socomm
February 22nd, 2004, 22:14
>>The linuxthreads port needs source code for libgcc
>>Please install FreeBSD source code in /usr/src
*** Error code 1


Have you installed system sources under /usr/src?

hugh nicks
February 22nd, 2004, 22:19
i hope this is what you mean. sorry, i just don't know for sure :oops:
starlight# pwd
/usr/src/sys
starlight# ls -l
total 114
-rw-r--r-- 1 root wheel 341 Jun 26 2003 Makefile
drwxr-xr-x 12 root wheel 512 Feb 20 00:22 alpha
drwxr-xr-x 10 root wheel 512 Feb 20 00:22 amd64
drwxr-xr-x 4 root wheel 512 Feb 20 00:22 arm
drwxr-xr-x 14 root wheel 512 Feb 20 00:22 boot
drwxr-xr-x 3 root wheel 512 Feb 20 00:22 cam
drwxr-xr-x 2 root wheel 512 Feb 20 00:22 coda
drwxr-xr-x 8 root wheel 512 Feb 20 00:22 compat
drwxr-xr-x 2 root wheel 1024 Feb 20 00:22 conf
drwxr-xr-x 6 root wheel 512 Feb 20 00:22 contrib
drwxr-xr-x 8 root wheel 512 Feb 20 00:22 crypto
drwxr-xr-x 2 root wheel 1024 Feb 20 00:22 ddb
drwxr-xr-x 141 root wheel 2048 Feb 20 00:23 dev
drwxr-xr-x 19 root wheel 512 Feb 20 00:23 fs
drwxr-xr-x 3 root wheel 1024 Feb 20 00:23 geom
drwxr-xr-x 4 root wheel 512 Feb 20 00:23 gnu
drwxr-xr-x 13 root wheel 512 Feb 20 00:23 i386
drwxr-xr-x 9 root wheel 512 Feb 20 00:23 i4b
drwxr-xr-x 11 root wheel 512 Feb 20 00:23 ia64
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 isa
drwxr-xr-x 3 root wheel 512 Feb 20 00:23 isofs
drwxr-xr-x 2 root wheel 3584 Feb 20 00:23 kern
drwxr-xr-x 4 root wheel 1024 Feb 20 00:23 libkern
drwxr-xr-x 245 root wheel 4096 Feb 20 00:23 modules
drwxr-xr-x 2 root wheel 2048 Feb 20 00:23 net
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 net80211
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 netatalk
drwxr-xr-x 6 root wheel 1024 Feb 20 00:23 netatm
drwxr-xr-x 4 root wheel 2048 Feb 20 00:23 netgraph
drwxr-xr-x 2 root wheel 1536 Feb 20 00:23 netinet
drwxr-xr-x 2 root wheel 1536 Feb 20 00:23 netinet6
drwxr-xr-x 2 root wheel 1024 Feb 20 00:23 netipsec
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 netipx
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 netkey
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 netnatm
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 netncp
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 netsmb
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 nfs
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 nfs4client
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 nfsclient
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 nfsserver
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 opencrypto
drwxr-xr-x 7 root wheel 512 Feb 20 00:23 pc98
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 pccard
drwxr-xr-x 2 root wheel 1536 Feb 20 00:23 pci
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 posix4
drwxr-xr-x 9 root wheel 512 Feb 20 00:23 powerpc
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 rpc
drwxr-xr-x 14 root wheel 512 Feb 20 00:23 security
drwxr-xr-x 13 root wheel 512 Feb 20 00:23 sparc64
drwxr-xr-x 2 root wheel 4096 Feb 20 00:23 sys
drwxr-xr-x 2 root wheel 512 Feb 20 00:23 tools
drwxr-xr-x 4 root wheel 512 Feb 20 00:23 ufs
drwxr-xr-x 2 root wheel 1024 Feb 20 00:23 vm

socomm
February 23rd, 2004, 12:46
Looks about right.

Try setting some of following variables to yes.

[code:1:57cb2e3083]
You can use an experimental patch to reduce the number of
condition variable triggered context switches by defining
WITH_CONDWAIT_PATCH


Some unsafe calls to exit() can be detected by defining
LINUXTHREADS_DETECT_UNSAFE_EXIT, see files/README.FreeBSD
for more info.


Some conflicts with native threads can be avoided by defining
LINUXTHREADS_WRAP_API, see files/README.FreeBSD
for more info.
[/code:1:57cb2e3083]

I really can't help much other than that :).

Good luck.

hugh nicks
February 24th, 2004, 15:16
Thanks socomm, I will try those out. But I'm not sure where to add/enable them properly. I tried putting them in the Make file, but then it complained of a 'missing operator'. I am unfamiliar with how/where to do this. I also tried building mozilla 1.6, and loaded the flash player as per instructions, and it would totally lock up the browser on a flash page. At least with firefox, it would constantly look like it was trying to resolve, and I could at least browse to another page. I did see a post on another board about 1.6 crashing at some sites, and they mentioned workarounds, but it wasn't really about my problem.

I think it might be more of what you suggested, in that I have not enabled something that I should of. thanks again for your help.

-hn

socomm
February 24th, 2004, 16:31
To enable/disable defines simple run `make OPTION_I_LIKE=YES' or `make DISABLE_OPTION=YES', I'm not certain if that will help you out, but give it a shot.

Oh and btw you shouldn't have to modify your mozilla binary, libmap.conf should automatically load flash/java for you.

hugh nicks
February 24th, 2004, 17:06
(This isn't meant for you socomm, you've done enough to help :D ) I'm just posting cause it's still relevant.

starlight# make WITH_CONDWAIT_PATCH=YES LINUXTHREADS_WRAP_API=YES LINUXTHREADS_DETECT_UNSAFE_EXIT=YES
===> linuxpluginwrapper-20040208_1 depends on shared library: lthread.5 - not found
===> Verifying install for lthread.5 in /usr/ports/devel/linuxthreads
===> Vulnerability check disabled
>>The linuxthreads port needs source code for libgcc
>>Please install FreeBSD source code in /usr/src
*** Error code 1

Stop in /usr/ports/devel/linuxthreads.
*** Error code 1

Stop in /usr/ports/www/linuxpluginwrapper.
starlight#

maybe something broke or didn't get installed when i first set this up. It just doesn't make sense, because i never had problems setting this up with firebird 0.7 and flash. it was only when i set up RC2, fluxbox, and firefox. the saga continues....

-hn

hugh nicks
February 25th, 2004, 01:21
1. Back-up important files.
2. Re-install RC2, but this time following the freeBSD handbook word for word
3. Set up linux base, fluxbox, xmms, and a few other things through the post-install options.
4. Made Firebird 0.7
5. Followed steps in this thread.
6. Rejoiced.

thanks everyone for help.
-hn

molotov
March 24th, 2004, 16:35
Not to dig up old topics, but I was just doing this on a 5.2 machine, and the was getting some errors on loading the plugin, looked around and I found to use this:
[code:1:3752e0c189]
# Flash6
[/usr/local/lib/linux-flashplugin6/libflashplayer.so]
libpthread.so.0 pluginwrapper/flash6.so
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc++-libc6.2-2.so.3 libstdc++.so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so
[/code:1:3752e0c189]

Hope this helps anyone trying it out