[th] nspluginwrapper - how to build it?

Michał Łukaszek mlukaszek at gmail.com
Thu May 31 11:21:20 CEST 2007


On 5/31/07, Elan Ruusamäe <glen at delfi.ee> wrote:

> > gcc with multilib.
> > BuildRequires: gcc-c++32
> it's 32bit gcc-c++, no idea what's the package on th-x86_64 called, try just
> from th-i686, maybe adjust dep to use /usr/lib/somelib.a to fill the
> dependency.

I thought that's where the multilib gcc comes in?
I did something else though: built with --nodeps (just to see what happens).

And, as a result, I got:
$ file npviewer.bin
npviewer.bin: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), for GNU/Linux 2.6.12, dynamically linked (uses shared libs),
stripped

But:
$ LC_ALL=C sudo rpm -Uhv rpm/RPMS/nspluginwrapper-0.9.91.4-1.x86_64.rpm
error: Failed dependencies:
        libX11.so.6 is needed by nspluginwrapper-0.9.91.4-1.x86_64
        libXt.so.6 is needed by nspluginwrapper-0.9.91.4-1.x86_64
        libgdk-x11-2.0.so.0 is needed by nspluginwrapper-0.9.91.4-1.x86_64
        libglib-2.0.so.0 is needed by nspluginwrapper-0.9.91.4-1.x86_64
        libgobject-2.0.so.0 is needed by nspluginwrapper-0.9.91.4-1.x86_64
        libgtk-x11-2.0.so.0 is needed by nspluginwrapper-0.9.91.4-1.x86_64

And:
$ ldd npviewer.bin
        linux-gate.so.1 =>  (0xffffe000)
        libgtk-x11-2.0.so.0 => not found
        libgdk-x11-2.0.so.0 => not found
        libgobject-2.0.so.0 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xf7f37000)
        libglib-2.0.so.0 => not found
        libX11.so.6 => not found
        libXt.so.6 => not found
        libpthread.so.0 => /lib/libpthread.so.0 (0xf7f1f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7f14000)
        libc.so.6 => /lib/libc.so.6 (0xf7ddf000)
        /lib/ld-linux.so.2 (0xf7f4f000)

Any idea how to do it right?
I guess the reason it works like this is because it tries to locate
32-bit versions of the missing libraries (and I only have 64bit
versions installed)?

-- 
regards,
Michał Łukaszek
prism at pld-linux.org


More information about the pld-devel-en mailing list