You are not logged in.

#1 2008-09-09 23:37:52

SnapShot
Member
Registered: 2008-08-26
Posts: 43

[SOLVED] Arch64, Opera and plugins library problem

I have Arch64 with Opera 64-bit as default browser. I have succesfully installed 32-bit flashplugin and it works nicely. The only problem is that fonts cannot be read from the flash player context menu and Open File dialog opened from flash player. The problem is that flashplugin tries to load 64-bit GTK from /usr/lib/gtk-2.0/2.10.0/ and it fails. 32-bit version is installed and it's located in /opt/lib32/usr/lib/gtk-2.0/2.10.0/.

Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so: wrong ELF class: ELFCLASS64
Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so: wrong ELF class: ELFCLASS64

Also I have library loading problem with totem-plugin. It cannot find libxul.so and libxpcom.so, but both library files are located in /usr/lib/xulrunner-1.9.0.1/. The plugin loads fine if I create links to both files in /usr/lib/. But that doesn't seem like right solution to me.

$ ldd libtotem-mully-plugin.so 
    .....
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f94e19d9000)
    libtotem-plparser-mini.so.10 => /usr/lib/libtotem-plparser-mini.so.10 (0x00007f94e17d6000)
    libxul.so => not found
    libxpcom.so => not found
    libplds4.so => /usr/lib/libplds4.so (0x00007f94e15d2000)
    .....

What would be a most elegant way of solving these two library loading problems?

I think that symbolic links and moving files are not the most elegant way to solve the problem. Maybe some environment variable or some configuration setting would solve the problem (LDPATH comes to mind, but it seems that it doesn't work).

EDIT: I wasn't sure in which section to post this question, so feel free to move it if necessary.

Last edited by SnapShot (2008-09-12 02:50:01)

Offline

#2 2008-09-10 02:42:56

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: [SOLVED] Arch64, Opera and plugins library problem

you may have installed the wrong theme package installed. You probably have the i686 packages installed.


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#3 2008-09-10 20:53:37

SnapShot
Member
Registered: 2008-08-26
Posts: 43

Re: [SOLVED] Arch64, Opera and plugins library problem

The GTK engine and theme packages are all correct x86_64 architecture. The problem is that flashplugin tries to load GTK libraries from /usr/lib/gtk-2.0/2.10.0/ where x86_64 libaries are installed. flashplugin is 32-bit and it should load 32-bit GTK libraries (lib32-*) from /opt/lib32/usr/lib/gtk-2.0/2.10.0/.

Anyone has some other idea, how to make flash plugin to load correct 32-bit libraries?

Offline

#4 2008-09-10 21:00:33

lmsguerr
Member
From: Loulé-Algarve-Portugal
Registered: 2008-05-20
Posts: 49

Re: [SOLVED] Arch64, Opera and plugins library problem

For me... i'd just had to point the directory of the plugin. Opera said's that it doesn't need a nswrapper:

AllFather wrote:

Opera 9.50

Opera 9.50 comes with a 32 bit wrapper so nothing like nsplugin is needed. Simply install the dependencies listed above and then do the following.
install opera
download flash tar.gz from http://www.adobe.com/shockwave/download … kwaveFlash
unpack flash with tar -zxvf <install*flash>
as root: cp libflashplayer.so /usr/lib/opera/plugins


Linux /  4.18.5-ARCH / x86_64 / Intel I5-4460s /  Intel® HD Graphics 4600  / MSI B85-G43 Gaming

Offline

#5 2008-09-10 23:14:07

SnapShot
Member
Registered: 2008-08-26
Posts: 43

Re: [SOLVED] Arch64, Opera and plugins library problem

lmsguerr wrote:

For me... i'd just had to point the directory of the plugin. Opera said's that it doesn't need a nswrapper:

That's fine the flash plugin works, but if you are on Arch64 try to click with the right mouse button on some flash animation and you will se that the flash menu is unreadable, because it fails to load GTK engines which it uses to render the menu and open file dialog. I can't use flash uploaders on some sites because I can't browse for a file with the open dialog and unreadable fonts.

BTW, has someone an idea for the other problem, that totem plugin fails to load libxul.so from xulrunner path?

Last edited by SnapShot (2008-09-10 23:14:56)

Offline

#6 2008-09-12 02:48:43

SnapShot
Member
Registered: 2008-08-26
Posts: 43

Re: [SOLVED] Arch64, Opera and plugins library problem

I have solved my problem and I will post my solution because it can be usefull to others.

First the problem with flashplugin and GTK library path. Opera uses operapluginwrapper scirpt to detect if the plugin is 32-bit or 64-bit and after detection it uses operapluiginwrapper-ia32-linux for 32-bit or operapluginwrapper-native for 64-bit plugins. operapluiginwrapper-ia32-linux loads the 32-bit flashplugin in my case which requires GTK, but it incorectly tries to load it form /usr/lib/gtk-2.0/ where 64-bit version of GTK resides.

The solution is to set the GTK_PATH environment variable to point to /opt/lib32/usr/lib/gtk-2.0/ where 32-bit version resides. But if you set it globaly it will result in problems with other 64-bit applications. So the correct solution is to add following lines on the bottom of the operapluginwrapper script above the exec line:

case "$wrapper" in
    *ia32*)
        export GTK_PATH="/opt/lib32/usr/lib/gtk-2.0"
        export PANGO_RC_FILE="/opt/lib32/config/pango/pangorc"
        ;;
esac

In this way the 32-bit paths will be active only for operapluginwrapper-ia32-linux process.

I have solved the other problem with totem-plugin requesting libxul.so and libxpcom.so, but the solution idoesn't matter because, although totem-plugin loads coreclty it doesn't work in opera. I have installed mplayer-plugin which works as it should. Also gecko-mediaplayer works correctly with opera, I have tested them both. Install one of the two plugins that work, and you will be fine.

Offline

#7 2008-09-12 11:31:41

lmsguerr
Member
From: Loulé-Algarve-Portugal
Registered: 2008-05-20
Posts: 49

Re: [SOLVED] Arch64, Opera and plugins library problem

That's great! Thanks for your work Snapshot. Now you report this to opera so they can fix it in the next version!
By the way, do you have Java in opera with icetea?!

Last edited by lmsguerr (2008-09-12 11:33:14)


Linux /  4.18.5-ARCH / x86_64 / Intel I5-4460s /  Intel® HD Graphics 4600  / MSI B85-G43 Gaming

Offline

#8 2008-09-12 14:10:01

SnapShot
Member
Registered: 2008-08-26
Posts: 43

Re: [SOLVED] Arch64, Opera and plugins library problem

It wouldn't be possible for opera to fix this generally for every distribution in their official release, becuase every Linux distribution has different path wehere it stores 32-bit libraries on 64-bit system. Arch stores 32-bit libraries in /opt/lib32/usr/lib/, some other distribution stores them in /lib32/, the next one stores them in /usr/lib32/ etc. So there isn't general fix for that. The fix is distribution dependant, so maybe operapluginwrapper can be modified in the Arch pakage with the path to 32-bit libraries if 32-bit plugin is to be run.

I have tried to enable Java with Opera but with no success until now. Opera doesn't use browser plugins for Java, it uses Java runtime directly, so I have also tried to run Sun's 64-bit JRE directly, but without success. Also I have shortly tried to run Openjdk6, but no luck. If I succed to enable Java in 64-bit Opera I will report it here for sure.

Offline

Board footer

Powered by FluxBB