DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default Firefox3 + Flash 7

Hi I have followed the guide on FreeBSD handbook to try to install flash for firefox3.

This is the error I get when I try to nspluginwrapper it:
Code:
[disappearedng@ /usr/home/disappearedng]$ nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory

Auto-install plugins from /home/disappearedng/.mozilla/plugins
Looking for plugins in /home/disappearedng/.mozilla/plugins
Any idea what went wrong?
Reply With Quote
  #2   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

The shared library is part of /usr/ports/devel/glib20. Do you have it installed (pkg_info should show it as glib-2.16.5)?

Code:
# ls -al /usr/local/lib/libgobject-2.0.*
-rw-r--r--  1 root  wheel  370162 Aug 16 02:08 /usr/local/lib/libgobject-2.0.a
-rwxr-xr-x  1 root  wheel     984 Aug 16 02:08 /usr/local/lib/libgobject-2.0.la
lrwxr-xr-x  1 root  wheel      19 Aug 16 02:08 /usr/local/lib/libgobject-2.0.so -> libgobject-2.0.so.0
-rwxr-xr-x  1 root  wheel  251326 Aug 16 02:08 /usr/local/lib/libgobject-2.0.so.0
lrwxr-xr-x  1 root  wheel      19 Aug 26 13:18 /usr/local/lib/libgobject-2.0.so.400 -> libgobject-2.0.so.0

Reply With Quote
  #3   (View Single Post)  
Old 12th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Code:
-rw-r--r--  1 root  wheel  370162 Jul  5 18:13 /usr/local/lib/libgobject-2.0.a
-rwxr-xr-x  1 root  wheel     994 Jul  5 18:13 /usr/local/lib/libgobject-2.0.la
lrwxr-xr-x  1 root  wheel      19 Jul  5 18:13 /usr/local/lib/libgobject-2.0.so -> libgobject-2.0.so.0
-rwxr-xr-x  1 root  wheel  251326 Jul  5 18:13 /usr/local/lib/libgobject-2.0.so.0
Don't really know
Reply With Quote
  #4   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

According to ldd, npviewer.bin expects libgobject in /usr/lib, not in /usr/local/lib. First try 'ldconfig /usr/local/lib' to make sure that that particular library path is properly 'hinted'. If that fails, try symlinking /usr/lib/libgobject-2.0.so.0 to /usr/local/lib/libgobject-2.0.so.0 (though I'm afraid you'll have to do that for a lot of libraries). Reinstalling glib20 and nspluginwrapper may be another option.
Reply With Quote
  #5   (View Single Post)  
Old 12th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

OK I went to /usr/ports/devel/glib20 and deinstalled it using make deinstall

then i went on and reinstalled it using make install

funny thing is ,
Code:
-rw-r--r--  1 root  wheel  370162 Sep 12 12:28 /usr/local/lib/libgobject-2.0.a
-rwxr-xr-x  1 root  wheel     994 Sep 12 12:28 /usr/local/lib/libgobject-2.0.la
lrwxr-xr-x  1 root  wheel      19 Sep 12 12:28 /usr/local/lib/libgobject-2.0.so -> libgobject-2.0.so.0
-rwxr-xr-x  1 root  wheel  251326 Sep 12 12:28 /usr/local/lib/libgobject-2.0.so.0
Still the same.

and
Code:
[disappearedng@ /usr/lib]$ sudo nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/X11R6/lib/firefox/plugins
Looking for plugins in /usr/X11R6/lib/firefox/plugins
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory
Auto-install plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins
Hm.. Any ideas? Reinstalling glib20 does not restore the missing file.
Reply With Quote
  #6   (View Single Post)  
Old 12th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Code:
[disappearedng@ /usr/lib]$ pkg_info | grep glib
dbus-glib-0.76      GLib bindings for the D-BUS messaging system
glib-2.16.5         Some useful routines of C programming (current stable versi
glib-java-0.4.2_2   Java wrapper GLib 2
glibmm-2.14.1,1     C++ interfaces for glib2
taglib-1.5          Library for manipulating ID3 tags and Ogg comments
And just to confirm
Reply With Quote
  #7   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

It isn't missing, it's just elsewhere along the path of libraries. Did you do the ldconfig thing?
Reply With Quote
  #8   (View Single Post)  
Old 12th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Code:
[disappearedng@ /usr/ports/www/nspluginwrapper]$ ls /usr/lib/libgobject-2.0.so.0 
ls: /usr/lib/libgobject-2.0.so.0: No such file or directory
The other way,
Code:
[disappearedng@ /usr/lib]$ sudo ln -s /usr/local/lib/libgobject-2.0.so.0
now
Code:
[disappearedng@ /usr/lib]$ sudo nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/X11R6/lib/firefox/plugins
Looking for plugins in /usr/X11R6/lib/firefox/plugins
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: error while loading shared libraries: /usr/lib/libgobject-2.0.so.0: ELF file OS ABI invalid
Auto-install plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins
same error
What gives

Last edited by disappearedng; 12th September 2008 at 04:41 PM.
Reply With Quote
  #9   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

What is the output of 'file /usr/local/lib/libgobject-2.0.so.0'? The error seems to suggest a binary/library/OS mix-up.

Mine is:
/usr/local/lib/libgobject-2.0.so.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped

And:

file /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin ->

/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

Do you have Linux emulation enabled (see kldstat) ?

Last edited by DutchDaemon; 12th September 2008 at 04:47 PM.
Reply With Quote
Old 12th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Code:
[disappearedng@ /usr/home/disappearedng]$ file /usr/local/lib/libgobject-2.0.so.0
/usr/local/lib/libgobject-2.0.so.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped
[disappearedng@ /usr/home/disappearedng]$ file /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

[disappearedng@ /usr/home/disappearedng]$ kldstat 
Id Refs Address    Size     Name
 1   17 0xc0400000 4793b8   kernel
 2    1 0xc087a000 8b20     if_sis.ko
 3    1 0xc0883000 6f88     snd_ich.ko
 4    2 0xc088a000 4a5ac    sound.ko
 5    1 0xc5131000 22000    linux.ko
 6    1 0xc5182000 1d000    nfsserver.ko
 7    1 0xc5404000 6000     i915.ko
 8    1 0xc540f000 f000     drm.ko
I don't really understand what I am doing lol

Is this good enough?
Is there something wrong with my linux compatibility layer?
Reply With Quote
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

You seem to have the exact same setting as I have. The only thing you could try is to recompile nspluginwrapper. Other than that, I have no idea. (this is where other forum members step in to point out something obvious ..)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash 10 Oko NetBSD Package System (pkgsrc) 14 9th June 2009 02:23 PM
firefox3 with mplayer-plugin? Any possibility to make them work together.? daemonFromHeaven FreeBSD Ports and Packages 4 16th September 2008 09:47 AM
firefox3 will not compile map7 FreeBSD Ports and Packages 8 14th July 2008 11:23 PM
Firefox3 & Java DarkEnergy FreeBSD General 3 5th July 2008 11:17 PM
Flash syrushcw FreeBSD Ports and Packages 1 16th May 2008 02:24 PM


All times are GMT. The time now is 10:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick