[OpenIndiana-discuss] __deregister_frame_info_bases

Мартин Бохниг opensxce at mail.ru
Fri Sep 9 07:08:52 UTC 2016


Dear Apostolos,

you were correct with the i915 problems on old (non-internal GPU) systems.
See related messages.
I will buy me a spare Laptop of that generation on ebay that I can pick it up here in Berlin (to save several days of shipping etc), hopefully there is some cheap partially broken item which I can still afford.
Apologies but you and Alexander Jung simply didn't provide enough info (in contrast to Ben).
E.g. to provide these logs despite a black screen it would be possible by first starting sshd, then logging in from another machine and only then starting X11.

As promised I now give you a first preview regarding the subject line, even though it is meanwhile 9am and I'm still here from yesterday (really my last lines for the next half a day or so):

I applied your diffs and followed your suggestions, did that manually and googgled.
So it's all correct.

Unlike you I don't have the problems you mentioned above.
I added -lsocket to the linker path in some occasion, later this needs to go into a Makefile at the correct place (more later).

The bins link and do run without runtime linker issues, until the LinUX flash-plugin itself starts demanding its runtime linker dependencies.
Most of the issues can  be solved via LD_PRELOAD_32= and/or by symlinking the expected suffixed to the libs reported as missing.
But then in some cases that's not enough.

For a first impression I downgraded to the vinatge LinUX NSAPI 11.2 32bit plugin to get a feeling if the wrapper would function at all (proof of concept).

This needs a lot more time, but does look promising.
Here quickly my configuration and some cmd lines.

-a doesn't report errors here but -a (--auto) at the same time won't "see" any plugin to be added.
Hence nothing would get listed with --list and no info shown.

$ ./configure --enable-generic --enable-viewer --enable-player
/tmp/npw-conf-29157-10066-8473.c
WARNING: disabling glib memory hooks with --enable-generic
Source path               /code/20160908thu__NSAPI_PLUGIN/nspluginwrapper-1.4.4
Install prefix            /usr
nspluginwrapper root dir  /usr/lib/nspluginwrapper
Viewer paths              /usr/lib/nspluginwrapper/%ARCH%/%OS%
Build viewer              yes
Build standalone player   yes
Build 32-/64-bit at once  no
Build with generic APIs   yes
32-bit library dir name   lib
64-bit library dir name   lib
C compiler                gcc -std=c99
C++ compiler              g++
Strip binaries            no
Host OS                   solaris
Host CPU                  i386
Host big endian           no
Target OS                 linux
Target CPU                i386
RPC init timeout          5 secs
Memory allocation hooks   libc
Use thread checks (DEBUG) no
Use malloc checks (DEBUG) no



/code/20160908thu__NSAPI_PLUGIN/nspluginwrapper-1.4.4$  nspluginwrapper -v  -i /home/martin/.mozilla/plugins/libflashplayer.so
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[25]: local: not found [No such file or directory]
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[56]: local: not found [No such file or directory]
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[25]: local: not found [No such file or directory]
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[56]: local: not found [No such file or directory]
*** NSPlugin Viewer  *** ERROR: ld.so.1: npviewer.bin: fatal: librt.so.1: open failed: No such file or directory
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[25]: local: not found [No such file or directory]
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[56]: local: not found [No such file or directory]
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[25]: local: not found [No such file or directory]
/usr/lib/nspluginwrapper/i386/linux/npviewer[4]: .[56]: local: not found [No such file or directory]
*** NSPlugin Viewer  *** ERROR: ld.so.1: npviewer.bin: fatal: librt.so.1: open failed: No such file or directory
nspluginwrapper: no appropriate viewer found for /home/martin/.mozilla/plugins/libflashplayer.so


THIS IS THE NEW Flash23 LinUX32 PLUGIN:

ldd /home/martin/.mozilla/plugins/libflashplayer.so
    libGL.so.1 =>     /usr/lib/libGL.so.1
    libdl.so.2 =>     /lib/libdl.so.2
    libdl.so.2 (GLIBC_2.1) =>     (version not found)
    libdl.so.2 (GLIBC_2.0) =>     (version not found)
    libpthread.so.0 =>     (file not found)
    libX11.so.6 =>     (file not found)
    libXt.so.6 =>     (file not found)
    librt.so.1 =>     /lib/librt.so.1
    librt.so.1 (GLIBC_2.2) =>     (version not found)
    libnss3.so =>     (file not found)
    libsmime3.so =>     (file not found)
    libssl3.so =>     (file not found)
    libnspr4.so =>     (file not found)
    libgtk-x11-2.0.so.0 =>     /usr/lib/libgtk-x11-2.0.so.0
    libgdk-x11-2.0.so.0 =>     /usr/lib/libgdk-x11-2.0.so.0
    libgdk_pixbuf-2.0.so.0 =>     /usr/lib/libgdk_pixbuf-2.0.so.0
    libpango-1.0.so.0 =>     /usr/lib/libpango-1.0.so.0
    libfontconfig.so.1 =>     /usr/lib/libfontconfig.so.1
    libgobject-2.0.so.0 =>     /usr/lib/libgobject-2.0.so.0
    libglib-2.0.so.0 =>     /usr/lib/libglib-2.0.so.0
    libfreetype.so.6 =>     /usr/lib/libfreetype.so.6
    libstdc++.so.6 =>     /usr/lib/libstdc++.so.6
    libm.so.6 =>     (file not found)
    libgcc_s.so.1 =>     /usr/lib/libgcc_s.so.1
    libgcc_s.so.1 (GLIBC_2.0) =>     (version not found)
    libc.so.6 =>     (file not found)
    libexpat.so.1 =>     /usr/lib/libexpat.so.1
    libglapi.so.0 =>     /usr/lib/libglapi.so.0
    libXext.so.0 =>     /usr/lib/libXext.so.0
    libXdamage.so.1 =>     /usr/lib/libXdamage.so.1
    libXfixes.so.1 =>     /usr/lib/libXfixes.so.1
    libX11-xcb.so.1 =>     /usr/lib/libX11-xcb.so.1
    libX11.so.4 =>     /usr/lib/libX11.so.4
    libxcb-glx.so.0 =>     /usr/lib/libxcb-glx.so.0
    libxcb-dri2.so.0 =>     /usr/lib/libxcb-dri2.so.0
    libxcb.so.1 =>     /usr/lib/libxcb.so.1
    libXxf86vm.so.1 =>     /usr/lib/libXxf86vm.so.1
    libdrm.so.2 =>     /usr/lib/xorg/libdrm.so.2
    libm.so.2 =>     /usr/lib/libm.so.2
    libpthread.so.1 =>     /usr/lib/libpthread.so.1
    libc.so.1 =>     /usr/lib/libc.so.1
    libgmodule-2.0.so.0 =>     /usr/lib/libgmodule-2.0.so.0
    libpangocairo-1.0.so.0 =>     /usr/lib/libpangocairo-1.0.so.0
    libatk-1.0.so.0 =>     /usr/lib/libatk-1.0.so.0
    libcairo.so.2 =>     /usr/lib/libcairo.so.2
    libgio-2.0.so.0 =>     /usr/lib/libgio-2.0.so.0
    libpangoft2-1.0.so.0 =>     /usr/lib/libpangoft2-1.0.so.0
    libXrender.so.1 =>     /usr/lib/libXrender.so.1
    libXinerama.so.1 =>     /usr/lib/libXinerama.so.1
    libXrandr.so.2 =>     /usr/lib/libXrandr.so.2
    libXcursor.so.1 =>     /usr/lib/libXcursor.so.1
    libXcomposite.so.1 =>     /usr/lib/libXcomposite.so.1
    libffi.so.6 =>     /usr/lib/libffi.so.6
    libnsl.so.1 =>     /lib/libnsl.so.1
    libz.so.1 =>     /usr/lib/libz.so.1
    libbz2.so.1 =>     /usr/lib/libbz2.so.1
    libpng14.so.14 =>     /usr/lib/libpng14.so.14
    libharfbuzz.so.0 =>     /usr/lib/libharfbuzz.so.0
    libsocket.so.1 =>     /lib/libsocket.so.1
    libXau.so.6 =>     /usr/lib/libXau.so.6
    libXdmcp.so.6 =>     /usr/lib/libXdmcp.so.6
    libpixman-1.so.0 =>     /usr/lib/libpixman-1.so.0
    libxcb-render.so.0 =>     /usr/lib/libxcb-render.so.0
    libresolv.so.2 =>     /lib/libresolv.so.2
    libmp.so.2 =>     /lib/libmp.so.2
    libmd.so.1 =>     /lib/libmd.so.1
    libgraphite2.so.3 =>     /usr/lib/libgraphite2.so.3
    libXevie.so.1 =>     /usr/lib/libXevie.so.1
    libXss.so.1 =>     /usr/lib/libXss.so.1



More after the Weekend.
In every way thanks for bringing this up and for your diffs.

best regards,
%martin bochnig


>Четверг,  8 сентября 2016, 18:34 UTC от Apostolos Syropoulos <asyropoulos at yahoo.com>:
>
>>
>> nspluginwrapper-1.4.4?
>> 
>Yes that's exactly the version I have used
>
>> @Apostolos: Too bad you didn't tell what you changed to come that far,
>> because by default it won't at least configure.
>> So I cannot quickly (without hassle) re-create your scenario and hence cannot
>> tell you what you are missing.
>> The first thing it appears to depend on are GNU tools.
>
>diff -Naur nspluginwrapper-1.4.4/configure nspluginwrapper-1.4.4.new/configure
>--- nspluginwrapper-1.4.4/configure	2011-07-01 06:18:57.000000000 +0300
>+++ nspluginwrapper-1.4.4.new/configure	2016-09-07 21:23:49.162350362 +0300
>@@ -1,4 +1,4 @@
>-#!/bin/sh
>+#!/bin/bash
>#
>#  nspluginwrapper configure script (C) 2005-2009 Gwenole Beauchesne
>#  derived from qemu configure script, (C) 2003 Fabrice Bellard
>@@ -506,8 +506,9 @@
>echo "GLIB 2.0 environment not found"
>exit 1
>fi
>+echo $TMPC
>cat > $TMPC << EOF
>-#include <glib.h>
>+#include <glib-2.0/glib.h>
>int main(void) {
>(void) g_main_context_pending(NULL);
>return 0;
>@@ -537,12 +538,12 @@
>return 0;
>}
>EOF
>-    if ! $cc $CFLAGS $LDFLAGS $GTK_CFLAGS $TMPC -o $TMPE $GTK_LIBS > /dev/null 2>&1; then
>-	echo "GTK+ 2.0 environment not usable"
>-	rm -f $TMPC
>-	exit 1
>-    fi
>-    rm -f $TMPC $TMPE
>+#    if ! $cc  $GTK_CFLAGS $TMPC -o $TMPE $GTK_LIBS > /dev/null 2>&1; then
>+#	echo "GTK+ 2.0 environment not usable"
>+#	rm -f $TMPC
>+#	exit 1
>+#    fi
>+#    rm -f $TMPC $TMPE
>fi
>
># check for cURL compile CFLAGS
>
>
>As you see I had to manually diasble the test since the test file compiles and
>links just fine... but the script fails to see this...
>
> 
>diff -Naur nspluginwrapper-1.4.4/npapi/nptypes.h nspluginwrapper-1.4.4.new/npapi/nptypes.h
>--- nspluginwrapper-1.4.4/npapi/nptypes.h	2011-07-01 06:18:57.000000000 +0300
>+++ nspluginwrapper-1.4.4.new/npapi/nptypes.h	2016-09-07 21:30:27.322562577 +0300
>@@ -55,7 +55,7 @@
>typedef unsigned int uint32_t;
>typedef long long int64_t;
>typedef unsigned long long uint64_t;
>-#elif defined(_AIX) || defined(__sun) || defined(__osf__) || defined(IRIX) || defined(HPUX)
>+#elif defined(_AIX) ||  defined(__osf__) || defined(IRIX) || defined(HPUX)
>/*
>* AIX and SunOS ship a inttypes.h header that defines [u]int32_t,
>* but not bool for C.
>diff -Naur nspluginwrapper-1.4.4/src/glibcurl.c nspluginwrapper-1.4.4.new/src/glibcurl.c
>--- nspluginwrapper-1.4.4/src/glibcurl.c	2011-07-01 06:18:57.000000000 +0300
>+++ nspluginwrapper-1.4.4.new/src/glibcurl.c	2016-09-07 21:43:22.877235305 +0300
>@@ -23,7 +23,7 @@
>copyright holder.
>
>*/
>-
>+#define __EXTENSIONS__
>#include <glib.h>
>#include "glibcurl.h"
>
>diff -Naur nspluginwrapper-1.4.4/src/gtk2xtbin.c nspluginwrapper-1.4.4.new/src/gtk2xtbin.c
>--- nspluginwrapper-1.4.4/src/gtk2xtbin.c	2011-07-01 06:18:57.000000000 +0300
>+++ nspluginwrapper-1.4.4.new/src/gtk2xtbin.c	2016-09-07 21:45:06.093895371 +0300
>@@ -41,7 +41,7 @@
>* The GtkXtBin widget allows for Xt toolkit code to be used
>* inside a GTK application. 
>*/
>-
>+#define __EXTENSIONS__
>#include "xembed.h"
>#include "gtk2xtbin.h"
>#include <gtk/gtk.h>
>
>Also, in files 
>
>
>nspluginwrapper-1.4.4.new/src/npw-player.c
>
>nspluginwrapper-1.4.4.new/src/npw-viewer.c
>
>comment out the lines containing the following command
>
>g_thread_init(NULL);
>
>A.S.
>
>----------------------
>Apostolos Syropoulos
>Xanthi, Greece



More information about the openindiana-discuss mailing list