Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 292165

Summary: www-plugins/gnash-0.8.6: build fails
Product: Gentoo Linux Reporter: Nick Aubert <nickaubert>
Component: Current packagesAssignee: Romain Perier (RETIRED) <mrpouet>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dschridde+gentoobugs, flameeyes
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log for failed gnash emerge

Description Nick Aubert 2009-11-06 18:42:55 UTC
Emerge fails:

...
make[4]: Entering directory `/var/tmp/portage/www-plugins/gnash-0.8.6/work/gnash-0.8.6/gui/pythonmod'
if test x"/usr/bin/pygobject-codegen-2.0" != x; then \
	  /usr/bin/pygobject-codegen-2.0 \
	    --register /usr/share/pygtk/2.0/defs/gdk-types.defs \
	    --register /usr/share/pygtk/2.0/defs/gtk-types.defs \
	    --override ./gnash.override \
	    --prefix pygnash ./gnash.defs > gen-gnash.c; \
	 fi
Warning: Constructor for GnashView needs to be updated to new API
         See http://live.gnome.org/PyGTK_2fWhatsNew28#update-constructors
***INFO*** There are no declared global functions.
***INFO*** The coverage of methods is 100.00% (1/1)
***INFO*** There are no declared virtual proxies.
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies.
make  all-am
make[5]: Entering directory `/var/tmp/portage/www-plugins/gnash-0.8.6/work/gnash-0.8.6/gui/pythonmod'

...snip...

In file included from gnash-view.cpp:20:
gnash-view.h:23:24: error: gtk/gtkbin.h: No such file or directory
In file included from gnash-view.cpp:21:
../../gui/gtk_canvas.h:23:32: error: gtk/gtkdrawingarea.h: No such file or directory
gnash-view.cpp:23:21: error: gdk/gdk.h: No such file or directory

...snip...

make: *** [all] Error 2
 * 
 * ERROR: www-plugins/gnash-0.8.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3710:  Called base_src_compile
 *             environment, line  622:  Called base_src_work 'make'
 *             environment, line  736:  Called die
 * The specific snippet of code:
 *                       emake || die "died running emake, $FUNCNAME:make";
 *  The die message:
 *   died running emake, base_src_work:make


I trimmed the output, but I can provide more if needed.

Reproducible: Always

Steps to Reproduce:
1. # emerge -av www-plugins/gnash
Actual Results:  
Emerge fails

Expected Results:  
Emerge succeeds

These are my relevant USE variables:

/etc/make.conf:
USE="mmx sse sse2 threads bash-completion vim-syntax xgl dbus xcb hal ogg vorbis mp3 aac alsa pulse pulseaudio -ipv6 -gnome -kde -qt3 -qt4"

/etc/portage/package.use:
www-plugins/gnash cairo ffmpeg -nsplugin opengl sdl -gstreamer
Comment 1 Rafał Mużyło 2009-11-06 19:30:51 UTC
More useful than make.conf would be 'emerge -1pv www-plugins/gnash'.
And do attach build.log.
Those errors look like correct gtk include paths aren't added.
What does 'pkg-config gtk=-2.0 --cflags' prints ?
Comment 2 Nick Aubert 2009-11-06 20:16:03 UTC
$ emerge -1pv www-plugins/gnash

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] www-plugins/gnash-0.8.6  USE="cairo dbus ffmpeg nls opengl python sdl speex ssl -agg (-aqua) -cygnal -doc -gnome -gstreamer -gtk -kde -lirc -mysql -nsplugin -ssh -test" VIDEO_CARDS="-intel" 0 kB

Note that gtk is *excluded* from the build flags.  Next, I'm going to try emerging it with gtk to see if that helps.  I'll attache the current build log first.
Comment 3 Nick Aubert 2009-11-06 20:17:03 UTC
Created attachment 209460 [details]
build log for failed gnash emerge
Comment 4 Nick Aubert 2009-11-06 20:19:46 UTC
$ pkg-config gtk=-2.0 --cflags
Package gtk=-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk=-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk=-2.0' found

I have been trying to emerge gnash without gtk in the USE flags.  Should I try to make this work?
Comment 5 Nick Aubert 2009-11-06 20:58:17 UTC
I added gtk to my use flags and successfully emerged gnash.

$ emerge -1pv www-plugins/gnash       

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-plugins/gnash-0.8.6  USE="cairo dbus ffmpeg gtk nls opengl python sdl speex ssl -agg (-aqua) -cygnal -doc -gnome -gstreamer -kde -lirc -mysql -nsplugin -ssh -test" VIDEO_CARDS="-intel" 0 kB


So maybe the fix for this version of gnash is to specify that the gtk flag must be enabled (or make it non-optional).
Comment 6 Rafał Mużyło 2009-11-07 00:22:52 UTC
(In reply to comment #4)
> $ pkg-config gtk=-2.0 --cflags
> Package gtk=-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtk=-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk=-2.0' found
Sorry, obvious typo - gtk+-2.0.

And the problem is that the ebuild is broken:
it enables python even if gtk is disabled,
even though python is for pygtk.

Comment 7 Nick Aubert 2009-11-07 00:34:52 UTC
In case it matters, here's the output requested earlier:

$ pkg-config gtk+-2.0 --cflags
-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  
Comment 8 Dennis Schridde 2009-12-29 11:53:21 UTC
Suggesting change of "Summary" to "build fails with USE=-gtk"
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-31 21:34:27 UTC

*** This bug has been marked as a duplicate of bug 255420 ***