virt-viewer fails to emerge with USE nsplugin Reproducible: Always Steps to Reproduce: 1. set USE nsplugin 2. emerge virt-viewer 3. Actual Results: fails Expected Results: OK out message: libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN=1 -DENABLE_DEBUG=1 -DXP_UNIX -I/usr/include/xulrunner-1.9.2 -pthread -I/usr/include/gtk-vnc-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGLADE_DIR=\"\" -I../src -mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe -ftracer -MT virt_viewer_plugin_la-events.lo -MD -MP -MF .deps/virt_viewer_plugin_la-events.Tpo -c ../src/events.c -o virt_viewer_plugin_la-events.o >/dev/null 2>&1 In file included from virt-viewer-plugin.c:42:0: virt-viewer-plugin.h:49:3: error: expected specifier-qualifier-list before 'uint16' virt-viewer-plugin.h:65:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'VirtViewerXHandleEvent' virt-viewer-plugin.c: In function 'VirtViewerXSetWindow': virt-viewer-plugin.c:65:21: error: 'PluginInstance' has no member named 'window' virt-viewer-plugin.c:66:24: error: 'PluginInstance' has no member named 'x' virt-viewer-plugin.c:67:24: error: 'PluginInstance' has no member named 'y' virt-viewer-plugin.c:68:28: error: 'PluginInstance' has no member named 'width' virt-viewer-plugin.c:69:29: error: 'PluginInstance' has no member named 'height' virt-viewer-plugin.c:74:7: error: 'PluginInstance' has no member named 'window' virt-viewer-plugin.c:75:7: error: 'PluginInstance' has no member named 'x' virt-viewer-plugin.c:76:7: error: 'PluginInstance' has no member named 'y' virt-viewer-plugin.c:77:7: error: 'PluginInstance' has no member named 'width' virt-viewer-plugin.c:78:7: error: 'PluginInstance' has no member named 'height' virt-viewer-plugin.c:81:7: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c:84:11: error: 'PluginInstance' has no member named 'uri' virt-viewer-plugin.c:84:24: error: 'PluginInstance' has no member named 'name' virt-viewer-plugin.c:86:9: error: 'PluginInstance' has no member named 'uri' virt-viewer-plugin.c:86:20: error: 'PluginInstance' has no member named 'name' virt-viewer-plugin.c:86:32: error: 'PluginInstance' has no member named 'direct' virt-viewer-plugin.c:86:46: error: 'PluginInstance' has no member named 'waitvm' virt-viewer-plugin.c:86:60: error: 'PluginInstance' has no member named 'reconnect' virt-viewer-plugin.c:86:77: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c:87:27: error: 'PluginInstance' has no member named 'uri' virt-viewer-plugin.c:87:38: error: 'PluginInstance' has no member named 'name' virt-viewer-plugin.c:87:50: error: 'PluginInstance' has no member named 'direct' virt-viewer-plugin.c:87:64: error: 'PluginInstance' has no member named 'waitvm' virt-viewer-plugin.c:87:78: error: 'PluginInstance' has no member named 'reconnect' virt-viewer-plugin.c:87:98: error: 'PluginInstance' has no member named 'debug' virt-viewer-plugin.c:87:111: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c:92:28: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c: In function 'VirtViewerDestroyWindow': virt-viewer-plugin.c:104:19: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c:105:29: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c:106:9: error: 'PluginInstance' has no member named 'container' virt-viewer-plugin.c: At top level: virt-viewer-plugin.c:115:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'VirtViewerXHandleEvent' make[2]: *** [virt_viewer_plugin_la-virt-viewer-plugin.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from npshell.c:89:0: virt-viewer-plugin.h:49:3: error: expected specifier-qualifier-list before 'uint16' virt-viewer-plugin.h:65:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'VirtViewerXHandleEvent' npshell.c: In function 'NPP_GetValue': npshell.c:118:8: error: 'PRBool' undeclared (first use in this function) npshell.c:118:8: note: each undeclared identifier is reported only once for each function it appears in npshell.c:118:16: error: expected expression before ')' token npshell.c:118:26: error: 'PR_TRUE' undeclared (first use in this function) npshell.c: At top level: npshell.c:153:9: error: expected declaration specifiers or '...' before 'uint16' npshell.c:154:9: error: expected declaration specifiers or '...' before 'int16' npshell.c:151:1: error: conflicting types for 'NPP_New' /usr/include/xulrunner-1.9.2/npapi.h:627:9: note: previous declaration of 'NPP_New' was here npshell.c: In function 'NPP_New': npshell.c:161:3: error: 'PRBool' undeclared (first use in this function) npshell.c:161:10: error: expected ';' before 'supportsXEmbed' npshell.c:175:32: error: 'supportsXEmbed' undeclared (first use in this function) npshell.c:176:43: error: 'PR_TRUE' undeclared (first use in this function) npshell.c:198:7: error: 'PluginInstance' has no member named 'mode' npshell.c:198:16: error: 'mode' undeclared (first use in this function) npshell.c:199:7: error: 'PluginInstance' has no member named 'instance' npshell.c:200:7: error: 'PluginInstance' has no member named 'uri' npshell.c:200:19: error: 'PluginInstance' has no member named 'name' npshell.c:201:7: error: 'PluginInstance' has no member named 'direct' npshell.c:201:22: error: 'PluginInstance' has no member named 'waitvm' npshell.c:201:37: error: 'PluginInstance' has no member named 'debug' npshell.c:201:51: error: 'PluginInstance' has no member named 'reconnect' npshell.c:204:19: error: 'argc' undeclared (first use in this function) npshell.c:207:13: error: 'PluginInstance' has no member named 'uri' npshell.c:209:13: error: 'PluginInstance' has no member named 'name' npshell.c:211:13: error: 'PluginInstance' has no member named 'direct' npshell.c:213:13: error: 'PluginInstance' has no member named 'waitvm' npshell.c:215:13: error: 'PluginInstance' has no member named 'debug' npshell.c:217:13: error: 'PluginInstance' has no member named 'reconnect' npshell.c: In function 'NPP_Destroy': npshell.c:238:15: error: 'PluginInstance' has no member named 'uri' npshell.c:238:32: error: 'PluginInstance' has no member named 'uri' npshell.c:239:15: error: 'PluginInstance' has no member named 'name' npshell.c:239:33: error: 'PluginInstance' has no member named 'name' npshell.c: At top level: npshell.c:257:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' npshell.c:271:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' npshell.c:389:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_HandleEvent' make[2]: *** [virt_viewer_plugin_la-npshell.lo] Error 1 mv -f .deps/virt_viewer_plugin_la-events.Tpo .deps/virt_viewer_plugin_la-events.Plo make[2]: Leaving directory `/var/tmp/paludis/app-emulation-virt-viewer-0.2.0-r2/work/virt-viewer-0.2.0/plugin' make[1]: Leaving directory `/var/tmp/paludis/app-emulation-virt-viewer-0.2.0-r2/work/virt-viewer-0.2.0' make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 /usr/libexec/paludis/utils/emake: emake returned error 2 !!! ERROR in app-emulation/virt-viewer-0.2.0-r2::gentoo: !!! In default_src_compile at line 27 !!! emake failed !!! Call stack: !!! * default_src_compile (/usr/libexec/paludis/2/src_compile.bash:27) !!! * src_compile (/usr/libexec/paludis/2/src_compile.bash:33) !!! * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56) !!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:647) !!! * main (/usr/libexec/paludis/ebuild.bash:675) diefunc: making ebuild PID 5139 exit with error die trap: exiting with error. ================== emerge --info and other are the same as: http://bugs.gentoo.org/show_bug.cgi?id=318287
(In reply to comment #0) > virt-viewer fails to emerge with USE nsplugin Same here on x86 and x86_64, both stable. Happens after upgrade to libpng-1.4.3 and revdep'ing for libpng12.so.0
Confirming same issue here on ~amd64.
still an issue
Created attachment 259556 [details, diff] This patch makes the plugin comilation work.
Created attachment 259557 [details] ebuild that uses the patch.
I can confirm this bug too and that the supplied patch works fine on x86.
Fixed in the tree with 0.4.2