Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302793 - www-plugins/gnash-0.8.6: fails to build
Summary: www-plugins/gnash-0.8.6: fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Romain Perier (RETIRED)
URL:
Whiteboard:
Keywords:
: 303157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-29 19:50 UTC by Dominik Keil
Modified: 2010-03-15 21:01 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,1.29 MB, text/plain)
2010-01-29 19:52 UTC, Dominik Keil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Keil 2010-01-29 19:50:23 UTC
gnash-0.8.6 fails to build for me

$ emerge -pqv =www-plugins/gnash-0.8.6
[ebuild  N    ] www-plugins/gnash-0.8.6  USE="cairo dbus ffmpeg gnome gstreamer gtk nls nsplugin opengl python sdl ssl -agg (-aqua) -cygnal -doc -kde (-kdeenablefinal) -lirc -mysql -ssh -test" VIDEO_CARDS="-intel"

$ emerge --info =www-plugins/gnash-0.8.6
Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 28 Jan 2010 13:00:24 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=pentium -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -mtune=pentium -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/mozilla /usr/local/portage/layman/java-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa apm bash-completion berkdb bluetooth bzip2 cairo cdda cddax cddb cdio cleartype cli consolekit cracklib crypt cups curl custom-cflags custom-optimization cvs cxx dbus dri dts dvd encode exif expat fam ffmpeg flac fontconfig fortran fts3 fuse gdbm git glitz gnome gnome-keyring gpm gstreamer gtk hal iconv id3tag ithreads jpeg jpeg2k libcaca libnotify libssh2 mad matroska md5sum mmx modules mp3 mp3rtp mpeg mudflap nautilus ncurses nls nptl nptlonly offensive ogg opencore-amr opengl openmp pam pcre pdf perl png pppd python readline reflection rtsp samba sdl session shout smp sndfile spl sqlite sqlite3 sse sse2 sse3 ssh ssl ssse3 subversion sudo svg sysfs syslog taglib tcl tcpd theora threads tiff truetype twolame udev unicode urandom usb vcdinfo vcdx vorbis win32codecs wma-fixed x264 x86 xml xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



snippet from the build:

libtool: compile:  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_UNIX -I./include 
-I../../libbase -O2 -march=native -mtune=pentium -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-point
er -pipe -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunu
sed -fvisibility-inlines-hidden -c np_entry.cpp  -fPIC -DPIC -o .libs/np_entry.o
libtool: compile:  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_UNIX -I./include -I../../libbase -O2 -march=native -mtune=pentium -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -pipe -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -fvisibility-inlines-hidden -c npp_gate.cpp  -fPIC -DPIC -o .libs/npp_gate.o
libtool: compile:  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_UNIX -I./include -I../../libbase -O2 -march=native -mtune=pentium -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -pipe -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -fvisibility-inlines-hidden -c npn_gate.cpp  -fPIC -DPIC -o .libs/npn_gate.o
In file included from np_entry.cpp:24:
npplat.h:31:19: error: npapi.h: No such file or directory
In file included from pluginbase.h:23,
                 from npp_gate.cpp:23:
npplat.h:31:19: error: npapi.h: No such file or directory
In file included from npn_gate.cpp:23:
npplat.h:31:19: error: npapi.h: No such file or directory
In file included from ./include/npupp.h:34,
                 from npplat.h:32,
                 from npn_gate.cpp:23:
./include/npruntime.h:277: error: typedef 'NPAllocateFunctionPtr' is initialized (use __typeof__ instead)
./include/npruntime.h:277: error: 'NPP' was not declared in this scope

gonna attach complete build log
Comment 1 Dominik Keil 2010-01-29 19:52:03 UTC
Created attachment 217870 [details]
build.log
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-02-02 07:23:50 UTC
*** Bug 303157 has been marked as a duplicate of this bug. ***
Comment 3 Petr Pisar 2010-02-02 22:24:42 UTC
And that's because include/npapi.h is broken symlink to /unstable/npapi.h (in my case).
Comment 4 Petr Pisar 2010-02-02 22:35:07 UTC
And the symlink is broken because gnash-0.8.6.ebuild hack:

# Conflict headers with npapi.h from mozilla-sdk embedded stuffs and libxul-unstable header
# in case where xpcom (implicitly added with gtk) is enabled, we use the system header
    if use gtk; then
        rm -f ${mozsdk_incdir}/npapi.h
        ln -s $(pkg-config libxul-unstable --variable=includedir)/unstable/npapi.h \
            ${mozsdk_incdir}/npapi.h || die "symlink failed"
    fi

breaks the link because 

$ pkg-config libxul-unstable --variable=includedir

returns empty string, because net-libs/xulrunner-1.9.2-r1 does not provide `libxul-unstable' pkg-config file:

$ pkg-config --list-all |grep xul
libxul-embedding              libxul-embedding - Static library for version-independent embedding of the Mozilla runtime
libxul                        libxul - The Mozilla Runtime and Embedding Engine

E.g. libxul returns /usr/include/xulrunner-1.9.2 where npapi.h resides directly.
Comment 5 Petr Pisar 2010-02-02 22:54:16 UTC
And after fixing the symlink, compilation failes in next step on:

Entering directory `/var/tmp/portage/www-plugins/gnash-0.8.6/work/gnash-0.8.6/plugin/xpcom'
/usr/lib/xulrunner-devel-1.9.2/bin/xpidl -m typelib -v -I/usr/share/idl/xulrunner-1.9.2/unstable iGnashComponent.idl
/usr/lib/xulrunner-devel-1.9.2/bin/xpidl -m header  -v -I/usr/share/idl/xulrunner-1.9.2/unstable iGnashComponent.idl
./iGnashComponent.idl:19: can't open included file nsISupports.idl for reading

because nsISupports.idl from current xulrunner is not in unstable directory but directly in /usr/share/idl/xulrunner-1.9.2/.

Flaw patch comes from files/gnash-0.8.5-xpcom-idldir.patch portage patch.
Comment 6 Petr Pisar 2010-02-02 23:08:10 UTC
And that's all. Compilation succeeds after adjusting this two problems.

The only problem remains is the plugin does not work. It prints on stderr while attempt to play a SWF:

[XPCOM] Failed to get the service manager

and no gnash drawable appears. (Ok, just standard object rectangle with random pixmap blinks for a second in browser viewport and plugin exits after that.)
Comment 7 Dennis Schridde 2010-02-15 22:31:24 UTC
Obsoleted by bug #305311?
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-03-15 21:01:39 UTC
Should be fixed in 0.8.7, reopen if the issue still exists.