* [gentoo-user] plugin-containers missing libraries @ 2015-05-26 23:54 Adam Carter 2015-05-27 0:37 ` [gentoo-user] " Holger Hoffstätte 0 siblings, 1 reply; 14+ messages in thread From: Adam Carter @ 2015-05-26 23:54 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 826 bytes --] Is this working looking into? The programs generally work ok, so this is more for interests sake. # ldd /usr/lib64/firefox/plugin-container | grep not libmozalloc.so => not found libxul.so => not found # ldd /usr/lib64/thunderbird/plugin-container | grep not libxul.so => not found # find /usr/lib64/ -name libmozalloc.so /usr/lib64/firefox/libmozalloc.so /usr/lib64/thunderbird/libmozalloc.so # find /usr/lib64/ -name libxul.so /usr/lib64/firefox/libxul.so /usr/lib64/thunderbird/libxul.so # ldconfig -p | egrep '(firefox|thunderbird)' So the libraries are there but not in the list of directories searched. I could do something like # echo "/usr/lib64/firefox" > /etc/ld.so.conf.d/06firefox.conf && env-update but then thunderbird may get firefox's version of libxul which may be incompatible, right? Thanks [-- Attachment #2: Type: text/html, Size: 1007 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: plugin-containers missing libraries 2015-05-26 23:54 [gentoo-user] plugin-containers missing libraries Adam Carter @ 2015-05-27 0:37 ` Holger Hoffstätte 2015-05-27 0:46 ` Adam Carter 0 siblings, 1 reply; 14+ messages in thread From: Holger Hoffstätte @ 2015-05-27 0:37 UTC (permalink / raw To: gentoo-user On Wed, 27 May 2015 09:54:33 +1000, Adam Carter wrote: > Is this working looking into? The programs generally work ok, so this is > more for interests sake. > > # ldd /usr/lib64/firefox/plugin-container | grep not > libmozalloc.so => not found > libxul.so => not found This is normal, look at e.g. /usr/bin/firefox-bin to see why it works as expected. > So the libraries are there but not in the list of directories searched. I > could do something like > # echo "/usr/lib64/firefox" > /etc/ld.so.conf.d/06firefox.conf && env-update > > but then thunderbird may get firefox's version of libxul which may be > incompatible, right? Yes. Don't do that. -h ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 0:37 ` [gentoo-user] " Holger Hoffstätte @ 2015-05-27 0:46 ` Adam Carter 2015-05-27 5:24 ` Franz Fellner 0 siblings, 1 reply; 14+ messages in thread From: Adam Carter @ 2015-05-27 0:46 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 1055 bytes --] On Wed, May 27, 2015 at 10:37 AM, Holger Hoffstätte < holger.hoffstaette@googlemail.com> wrote: > On Wed, 27 May 2015 09:54:33 +1000, Adam Carter wrote: > > > Is this working looking into? The programs generally work ok, so this is > > more for interests sake. > > > > # ldd /usr/lib64/firefox/plugin-container | grep not > > libmozalloc.so => not found > > libxul.so => not found > > This is normal, look at e.g. /usr/bin/firefox-bin to see why it works > as expected. > $ ls -l /usr/bin/firefox* lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> /usr/lib64/firefox/firefox* $ ls -l /usr/lib64/firefox/firefox* -rwxr-xr-x 1 root root 441096 May 9 19:13 /usr/lib64/firefox/firefox* -rwxr-xr-x 1 root root 441096 May 9 19:13 /usr/lib64/firefox/firefox-bin* $ md5sum /usr/lib64/firefox/firefox* 61f2c178ef765770824c45c6ea9fa5e1 /usr/lib64/firefox/firefox 61f2c178ef765770824c45c6ea9fa5e1 /usr/lib64/firefox/firefox-bin Is that what you expect me to see? I dont think I understand what you're saying. [-- Attachment #2: Type: text/html, Size: 1564 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 0:46 ` Adam Carter @ 2015-05-27 5:24 ` Franz Fellner 2015-05-27 5:54 ` Adam Carter 0 siblings, 1 reply; 14+ messages in thread From: Franz Fellner @ 2015-05-27 5:24 UTC (permalink / raw To: gentoo-user; +Cc: gentoo-user@lists.gentoo.org "Look at" usually means "Read the file" - look at the content ;) Adam Carter wrote: > On Wed, May 27, 2015 at 10:37 AM, Holger Hoffstätte < > holger.hoffstaette@googlemail.com> wrote: > > > On Wed, 27 May 2015 09:54:33 +1000, Adam Carter wrote: > > > > > Is this working looking into? The programs generally work ok, so this is > > > more for interests sake. > > > > > > # ldd /usr/lib64/firefox/plugin-container | grep not > > > libmozalloc.so => not found > > > libxul.so => not found > > > > This is normal, look at e.g. /usr/bin/firefox-bin to see why it works > > as expected. > > > > $ ls -l /usr/bin/firefox* > lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> > /usr/lib64/firefox/firefox* > > $ ls -l /usr/lib64/firefox/firefox* > -rwxr-xr-x 1 root root 441096 May 9 19:13 /usr/lib64/firefox/firefox* > -rwxr-xr-x 1 root root 441096 May 9 19:13 /usr/lib64/firefox/firefox-bin* > > $ md5sum /usr/lib64/firefox/firefox* > 61f2c178ef765770824c45c6ea9fa5e1 /usr/lib64/firefox/firefox > 61f2c178ef765770824c45c6ea9fa5e1 /usr/lib64/firefox/firefox-bin > > Is that what you expect me to see? I dont think I understand what you're > saying. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 5:24 ` Franz Fellner @ 2015-05-27 5:54 ` Adam Carter 2015-05-27 6:03 ` Franz Fellner 0 siblings, 1 reply; 14+ messages in thread From: Adam Carter @ 2015-05-27 5:54 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 291 bytes --] On Wed, May 27, 2015 at 3:24 PM, Franz Fellner <alpine.art.de@gmail.com> wrote: > "Look at" usually means "Read the file" - look at the content ;) > Lets pretend for one minute that i'm a dumbass. In what way would I read a binary executable, and how is that relevant to plugin-container? [-- Attachment #2: Type: text/html, Size: 658 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 5:54 ` Adam Carter @ 2015-05-27 6:03 ` Franz Fellner 2015-05-27 6:20 ` Adam Carter 0 siblings, 1 reply; 14+ messages in thread From: Franz Fellner @ 2015-05-27 6:03 UTC (permalink / raw To: gentoo-user; +Cc: gentoo-user@lists.gentoo.org Adam Carter wrote: > On Wed, May 27, 2015 at 3:24 PM, Franz Fellner <alpine.art.de@gmail.com> > wrote: > > > "Look at" usually means "Read the file" - look at the content ;) > > > > Lets pretend for one minute that i'm a dumbass. In what way would I read a > binary executable, and how is that relevant to plugin-container? Just have a look and don't pretend it's a binary file ;) $ cat /usr/bin/firefox-bin #!/bin/sh unset LD_PRELOAD LD_LIBRARY_PATH="/opt/firefox/" GTK_PATH=/usr/lib/gtk-2.0/ exec /opt/firefox/firefox "$@" ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 6:03 ` Franz Fellner @ 2015-05-27 6:20 ` Adam Carter 2015-05-27 10:32 ` Neil Bothwick 2015-05-27 22:23 ` Fernando Rodriguez 0 siblings, 2 replies; 14+ messages in thread From: Adam Carter @ 2015-05-27 6:20 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 1126 bytes --] On Wed, May 27, 2015 at 4:03 PM, Franz Fellner <alpine.art.de@gmail.com> wrote: > Adam Carter wrote: > > On Wed, May 27, 2015 at 3:24 PM, Franz Fellner <alpine.art.de@gmail.com> > > wrote: > > > > > "Look at" usually means "Read the file" - look at the content ;) > > > > > > > Lets pretend for one minute that i'm a dumbass. In what way would I read > a > > binary executable, and how is that relevant to plugin-container? > > Just have a look and don't pretend it's a binary file ;) > > $ cat /usr/bin/firefox-bin > #!/bin/sh > unset LD_PRELOAD > LD_LIBRARY_PATH="/opt/firefox/" > GTK_PATH=/usr/lib/gtk-2.0/ > exec /opt/firefox/firefox "$@" > > There's no firefox-bin in /usr/bin on my system, there's just # ls -l /usr/bin/firefox* lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> /usr/lib64/firefox/firefox And in that directory, again no shell script; # file /usr/lib64/firefox/firefox-bin /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped System is ~amd64 for firefox/thunderbird [-- Attachment #2: Type: text/html, Size: 1867 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 6:20 ` Adam Carter @ 2015-05-27 10:32 ` Neil Bothwick 2015-05-28 8:02 ` Adam Carter 2015-05-27 22:23 ` Fernando Rodriguez 1 sibling, 1 reply; 14+ messages in thread From: Neil Bothwick @ 2015-05-27 10:32 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 770 bytes --] On Wed, 27 May 2015 16:20:52 +1000, Adam Carter wrote: > There's no firefox-bin in /usr/bin on my system, there's just > # ls -l /usr/bin/firefox* > lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> > /usr/lib64/firefox/firefox > > And in that directory, again no shell script; > # file /usr/lib64/firefox/firefox-bin > /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, > version 1 (SYSV), dynamically linked, > interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped > > System is ~amd64 for firefox/thunderbird It might help if you said which firefox and thunderbird packages you have installed. -- Neil Bothwick Why do they lock gas station bathrooms? Are they afraid someone will clean them? [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 10:32 ` Neil Bothwick @ 2015-05-28 8:02 ` Adam Carter 2015-05-28 8:06 ` Neil Bothwick 0 siblings, 1 reply; 14+ messages in thread From: Adam Carter @ 2015-05-28 8:02 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 670 bytes --] > > > There's no firefox-bin in /usr/bin on my system, there's just > > # ls -l /usr/bin/firefox* > > lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> > > /usr/lib64/firefox/firefox > > > > And in that directory, again no shell script; > > # file /usr/lib64/firefox/firefox-bin > > /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, > > version 1 (SYSV), dynamically linked, > > interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped > > > > System is ~amd64 for firefox/thunderbird > > It might help if you said which firefox and thunderbird packages you have > installed. > The non -bin ones (is that what you were asking?) [-- Attachment #2: Type: text/html, Size: 1018 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-28 8:02 ` Adam Carter @ 2015-05-28 8:06 ` Neil Bothwick 0 siblings, 0 replies; 14+ messages in thread From: Neil Bothwick @ 2015-05-28 8:06 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 466 bytes --] On Thu, 28 May 2015 18:02:24 +1000, Adam Carter wrote: > > It might help if you said which firefox and thunderbird packages you > > have installed. > The non -bin ones (is that what you were asking?) Exactly, all the confusion over whether the firefox executable is a script or not come down to this, as does the location of libraries as they are bundled with the -bin package. -- Neil Bothwick Capt'n! The spellchecker kinna take this abuse! [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 6:20 ` Adam Carter 2015-05-27 10:32 ` Neil Bothwick @ 2015-05-27 22:23 ` Fernando Rodriguez 2015-05-28 8:01 ` Adam Carter 1 sibling, 1 reply; 14+ messages in thread From: Fernando Rodriguez @ 2015-05-27 22:23 UTC (permalink / raw To: gentoo-user On Wednesday, May 27, 2015 04:20:52 PM Adam Carter wrote: > On Wed, May 27, 2015 at 4:03 PM, Franz Fellner <alpine.art.de@gmail.com> > > wrote: > > Adam Carter wrote: > > > On Wed, May 27, 2015 at 3:24 PM, Franz Fellner <alpine.art.de@gmail.com> > > > > > > wrote: > > > > "Look at" usually means "Read the file" - look at the content ;) > > > > > > Lets pretend for one minute that i'm a dumbass. In what way would I read > > > > a > > > > > binary executable, and how is that relevant to plugin-container? > > > > Just have a look and don't pretend it's a binary file ;) > > > > $ cat /usr/bin/firefox-bin > > #!/bin/sh > > unset LD_PRELOAD > > LD_LIBRARY_PATH="/opt/firefox/" > > GTK_PATH=/usr/lib/gtk-2.0/ > > exec /opt/firefox/firefox "$@" > > There's no firefox-bin in /usr/bin on my system, there's just > # ls -l /usr/bin/firefox* > lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> > /usr/lib64/firefox/firefox > > And in that directory, again no shell script; > # file /usr/lib64/firefox/firefox-bin > /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, version > 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for > GNU/Linux 2.6.32, stripped > > System is ~amd64 for firefox/thunderbird I'm also using ~amd64 firefox (37.0.2) and mine is also a binary. Anyways, what this means is that the library is not loaded by the loader but by firefox at runtime so it's nothing to worry about. I guess some versions or build use a script to preload the library. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-27 22:23 ` Fernando Rodriguez @ 2015-05-28 8:01 ` Adam Carter 2015-05-28 18:21 ` Fernando Rodriguez 0 siblings, 1 reply; 14+ messages in thread From: Adam Carter @ 2015-05-28 8:01 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 923 bytes --] > > There's no firefox-bin in /usr/bin on my system, there's just > > # ls -l /usr/bin/firefox* > > lrwxrwxrwx 1 root root 26 May 9 19:13 /usr/bin/firefox -> > > /usr/lib64/firefox/firefox > > > > And in that directory, again no shell script; > > # file /usr/lib64/firefox/firefox-bin > > /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, > version > > 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, > for > > GNU/Linux 2.6.32, stripped > > > > System is ~amd64 for firefox/thunderbird > > I'm also using ~amd64 firefox (37.0.2) and mine is also a binary. Anyways, > what > this means is that the library is not loaded by the loader but by firefox > at > runtime so it's nothing to worry about. I guess some versions or build use > a > script to preload the library. > How do you tell that the library is loaded by firefox? How would it know to load libraries for other binaries? [-- Attachment #2: Type: text/html, Size: 1310 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-28 8:01 ` Adam Carter @ 2015-05-28 18:21 ` Fernando Rodriguez 2015-05-29 11:32 ` Adam Carter 0 siblings, 1 reply; 14+ messages in thread From: Fernando Rodriguez @ 2015-05-28 18:21 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1108 bytes --] On Thursday, May 28, 2015 6:01:22 PM Adam Carter wrote: > How do you tell that the library is loaded by firefox? Load a page with a plugin then run htop, you may see a few plugin-container child processes for firefox, note it's pid and then run (as root): cat /proc/<pid>/maps | grep libxul.so You'll see something like this: 7ff264f9b000-7ff269e4b000 r-xp 00000000 08:06 8736977 /usr/lib64/firefox/libxul.so 7ff269e4b000-7ff26a04a000 ---p 04eb0000 08:06 8736977 /usr/lib64/firefox/libxul.so 7ff26a04a000-7ff26a4ef000 r--p 04eaf000 08:06 8736977 /usr/lib64/firefox/libxul.so 7ff26a4ef000-7ff26a56e000 rw-p 05354000 08:06 8736977 /usr/lib64/firefox/libxul.so f > How would it know to load libraries for other binaries? When firefox starts the plugin-container process it may just set the LD_LIBRARY_PATH environment variable for it, just like the script from the binary packages do, or it may do something more complicated. You'll have to look at the code to find out. -- Fernando Rodriguez [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: plugin-containers missing libraries 2015-05-28 18:21 ` Fernando Rodriguez @ 2015-05-29 11:32 ` Adam Carter 0 siblings, 0 replies; 14+ messages in thread From: Adam Carter @ 2015-05-29 11:32 UTC (permalink / raw To: gentoo-user@lists.gentoo.org [-- Attachment #1: Type: text/plain, Size: 613 bytes --] On Fri, May 29, 2015 at 4:21 AM, Fernando Rodriguez < frodriguez.developer@outlook.com> wrote: > On Thursday, May 28, 2015 6:01:22 PM Adam Carter wrote: > > How do you tell that the library is loaded by firefox? > > Load a page with a plugin then run htop, you may see a few plugin-container > child processes for firefox, note it's pid and then run (as root): > > cat /proc/<pid>/maps | grep libxul.so > > You'll see something like this: > 7ff264f9b000-7ff269e4b000 r-xp 00000000 08:06 8736977 > /usr/lib64/firefox/libxul.so > Thanks for that. Using that method I can see that the libraries are indeed loaded. [-- Attachment #2: Type: text/html, Size: 1025 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-05-29 11:32 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-05-26 23:54 [gentoo-user] plugin-containers missing libraries Adam Carter 2015-05-27 0:37 ` [gentoo-user] " Holger Hoffstätte 2015-05-27 0:46 ` Adam Carter 2015-05-27 5:24 ` Franz Fellner 2015-05-27 5:54 ` Adam Carter 2015-05-27 6:03 ` Franz Fellner 2015-05-27 6:20 ` Adam Carter 2015-05-27 10:32 ` Neil Bothwick 2015-05-28 8:02 ` Adam Carter 2015-05-28 8:06 ` Neil Bothwick 2015-05-27 22:23 ` Fernando Rodriguez 2015-05-28 8:01 ` Adam Carter 2015-05-28 18:21 ` Fernando Rodriguez 2015-05-29 11:32 ` Adam Carter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox