Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

gnash and recent ffmpeg

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
pactoo
Guru
Guru
User avatar
Posts: 553
Joined: Sun Jul 18, 2004 9:03 am

gnash and recent ffmpeg

  • Quote

Post by pactoo » Fri Apr 01, 2011 7:01 pm

revdep-rebuild tried to recompile gnash after updating to a recent libva and both versions in portage fail to compile with following error (next to libva ffmpeg has been updated, too, which seems to be the cause):

Code: Select all

        ERROR: You have version  of FFmpeg installed,
               with swscale enabled.
               This setup isn't supported!
               Version 51.11.0 or newer is required, enabling swscale if >= 52.0.0.
               You can install libswscale from http://ffmpeg.org
               or .deb users: apt-get install libswscale-dev
configure: error: Please install required packages
Now, there is neither a swscale use flag in ffmpeg nor a package called like this, so I am wondering wether someone else does have this problem, too. A quick search in bugs.gentoo.org did not reveal anything, but this may as well have been a sloppy search, too.

Use flags used:

Code: Select all

 media-video/ffmpeg-0.6_p28715  USE="X alsa bzip2 dirac encode faac ieee1394 jack jpeg2k mmx mmxext mp3 pic schroedinger sdl speex ssse3 theora threads truetype v4l2 vaapi vorbis vpx x264 xvid zlib -3dnow -3dnowext (-altivec) -amr -avx -bindist -cpudetection -custom-cflags -debug -doc -frei0r -gsm -hardcoded-tables -network -oss -qt-faststart -rtmp -static-libs -test -v4l -vdpau" VIDEO_CARDS="-nvidia" 

www-plugins/gnash-0.8.9  USE="agg cairo dbus ffmpeg gtk kde nls nsplugin opengl openvg sdl ssl vaapi (-aqua) -cygnal -doc -fbcon -gnome -gstreamer (-kdeenablefinal) (-lirc) -mysql -python -sdl-sound -ssh -test" VIDEO_CARDS="intel"
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

  • Quote

Post by cyrillic » Sat Apr 02, 2011 9:48 pm

I ran into the same error message with media-video/libav-9999 and www-plugins/gnash-9999

So far, my workaround has been to compile gnash with USE="-ffmpeg"

ps. youtube videos still seem to work.
Top
-niko-
n00b
n00b
Posts: 16
Joined: Tue Apr 05, 2011 5:31 pm
Location: Montevideo, Uruguay

  • Quote

Post by -niko- » Tue Apr 05, 2011 5:37 pm

Without the flag "ffmpg" gnash compiles, but without vaapi, which is not the idea.
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Thu Apr 07, 2011 12:13 am

GOT IT!!!

In /etc/portage/package.use, add or replace the line you have in there for gnash with the following:

Code: Select all

www-plugins/gnash vaapi -ffmpeg
That should give you the following when you check the emerge:

Code: Select all

tech7 ~ # emerge -pv gnash

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

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

Total: 1 package (1 reinstall), Size of downloads: 0 kB
tech7 ~ #
Now you can have your vaapi for ffmpeg and your gnash, too!
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Thu Apr 07, 2011 6:03 pm

Oh, well...

Trying to build it had it fail with the following:

Code: Select all

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-plugins/gnash-0.8.8
 * gnash-0.8.8.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                   [ ok ]
 * Package:    www-plugins/gnash-0.8.8
 * Repository: gentoo
 * Maintainer: chithanh@gentoo.org mrpouet@gentoo.org
 * USE:        agg amd64 cairo dbus doc elibc_glibc gnome gtk kernel_linux multilib mysql nls nsplugin opengl python sdl ssl userland_GNU vaapi xv
 * FEATURES:   sandbox
 * You are trying to build Gnash without choosing a media handler.
 * Sound and video playback will not work.
 * Support for VAAPI currently requires the ffmpeg media handler.
 * ERROR: www-plugins/gnash-0.8.8 failed (setup phase):
 *   vaapi requires the ffmpeg USE flag.
 * 
 * Call stack:
 *            ebuild.sh, line  56:  Called pkg_setup
 *   gnash-0.8.8.ebuild, line  97:  Called die
 * The specific snippet of code:
 *   		die "vaapi requires the ffmpeg USE flag."
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/gnash-0.8.8',
 * the complete build log and the output of 'emerge -pqv =www-plugins/gnash-0.8.8'.
 * The complete build log is located at '/var/tmp/portage/www-plugins/gnash-0.8.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/gnash-0.8.8/temp/die.env'.
 * S: '/var/tmp/portage/www-plugins/gnash-0.8.8/work/gnash-0.8.8'

>>> Failed to emerge www-plugins/gnash-0.8.8, Log file:

>>>  '/var/tmp/portage/www-plugins/gnash-0.8.8/temp/build.log'
Doh! :roll: I will post a bug on this one if it's not already there...
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
chithanh
Retired Dev
Retired Dev
User avatar
Posts: 2158
Joined: Sat Aug 05, 2006 10:16 pm
Location: Berlin, Germany

  • Quote

Post by chithanh » Thu Apr 07, 2011 8:25 pm

Gnash does not properly detect most recent ffmpeg from git. A patch is here:
http://git.savannah.gnu.org/cgit/gnash. ... ae4b8f00c0

I will update the ebuild once I checked that it does not break older ffmpeg.
Top
j-kidd
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Thu Feb 20, 2003 5:27 pm

  • Quote

Post by j-kidd » Sat Apr 09, 2011 12:00 pm

Still can't detect ffmpeg on my system, as "pkg-config --cflags-only-I libavcodec" returns nothing. I have to pass in "--with-ffmpeg-incl=/usr/include" to configure. Anyway, it still failed at the compile stage, with this error:

Code: Select all

libgnashmedia.so: undefined reference to `av_parser_parse'
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Thu Apr 28, 2011 12:49 am

There's something else going on with ffmpeg and vaapi...

Even checking a package that has nothing to do with gnash, I am getting the following:

Code: Select all

 ~ # emerge -pv hwdecode-demos

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy ">=media-video/ffmpeg-0.6[X=,encode=,mp3=,sdl=,theora=,threads=,vaapi=,vdpau=,x264=]".
!!! One of the following packages is required to complete your request:
- media-video/ffmpeg-0.6_p25767 (Change USE: -vaapi)
- virtual/ffmpeg-0.6-r1 (Change USE: +vaapi)
(dependency required by "virtual/ffmpeg-0.6-r1" [ebuild])
(dependency required by "media-video/hwdecode-demos-0.9.5" [ebuild])
(dependency required by "hwdecode-demos" [argument])
 ~ #
And, I don't get the idea of building ffmpeg without vaapi support, but adding the "vaapi" flag to the "virtual/" pointer. Is that really going to maintain the VA API support in ffmpeg? And, as a note, the above package builds just fine when you download the source and compile it with ffmpeg built with vaapi.

And, @j-kidd: Have you read this bug report? I think they have your fix up there already.
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Apr 28, 2011 2:25 am

ShadowCat8 wrote:

Code: Select all

!!! One of the following packages is required to complete your request:
- media-video/ffmpeg-0.6_p25767 (Change USE: -vaapi)
- virtual/ffmpeg-0.6-r1 (Change USE: +vaapi)
And, I don't get the idea of building ffmpeg without vaapi support, but adding the "vaapi" flag to the "virtual/" pointer. Is that really going to maintain the VA API support in ffmpeg?
This output tells you to make one of the two proposed changes. Your phrasing suggests you read it to mean that both changes should be made.
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Tue May 10, 2011 4:16 pm

Doh!

<Smacks self in the forehead> Derf derf!

It does help to read the whole line, doesn't it? :oops:

Perhaps I need to read my own tag more often... Or maybe just take a 5-Hour. :-p Hehe

In any case, now I keep getting the following:

Code: Select all

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -DGUI_GTK -DGUI_CONFIG=\"GTK\" -I.. -I.. -I../libnet -I../libcore -I../libcore/swf -I../libcore/parser -I../libcore/vm -I../libcore/asobj -I../libltdl -I../libbase -I../librender -I../librender/agg -I../librender/cairo -I../librender/opengl -I../libmedia -I../libsound -DLOCALEDIR=\"/usr/share/locale\" -DPLUGINSDIR=\"/usr/lib64/gnash/plugins\" -DLIBAVCODEC_IDENT=\"\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -I/usr/include/boost-1_45 -lpthread -ldl -lutil -lm -lpython2.6 -pthread   -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2   -DPKGDATADIR="\"/usr/share/gnash\"" -DRENDERER_CONFIG="\"AGG Cairo OpenGL\"" -DHWACCEL_CONFIG="\"\"" -DMEDIA_CONFIG="\"gst \"" -DCONFIG_CONFIG="\"--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --docdir=/usr/share/doc/gnash-0.8.9 --disable-dependency-tracking --disable-kparts3 --disable-cygnal --disable-cgibins --enable-docbook --enable-ghelp --disable-kparts4 --disable-lirc --enable-nls --enable-npapi --enable-python --disable-ssh --enable-ssl --disable-testsuite --enable-gui=gtk,sdl --enable-extensions=mysql,gtk,dbus --enable-renderer=agg,cairo,opengl --enable-hwaccel=none --enable-media=gst --with-npapi-plugindir=/usr/lib64/gnash/npapi/ --enable-sound=sdl\"" -DCXXFLAGS="\"-march=nocona -O2 -pipe          -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -fvisibility-inlines-hidden\"" -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/libpng14    -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib64/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14     -I/usr/include/agg2    -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14     -march=nocona -O2 -pipe          -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -fvisibility-inlines-hidden -c -o gtk_gnash-gtk_glue_cairo.o `test -f 'gtk/gtk_glue_cairo.cpp' || echo './'`gtk/gtk_glue_cairo.cpp
chmod +x gnash
  CXXLD  sdl-gnash
  CXXLD  gtk-gnash
sdl_gnash-gnash.o: In function `T.6725':
gnash.cpp:(.text+0x5a2): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
gnash.cpp:(.text+0x602): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
sdl_gnash-gnash.o: In function `(anonymous namespace)::getSupportedOptions(gnash::Player&)':
gnash.cpp:(.text+0x1dd9): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
gnash.cpp:(.text+0x4c1e): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
make[4]: *** [sdl-gnash] Error 1
make[4]: *** Waiting for unfinished jobs....
gtk_gnash-gnash.o: In function `T.6725':
gnash.cpp:(.text+0x5a2): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
gnash.cpp:(.text+0x602): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
gtk_gnash-gnash.o: In function `(anonymous namespace)::getSupportedOptions(gnash::Player&)':
gnash.cpp:(.text+0x1dd9): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
gnash.cpp:(.text+0x4c1e): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
make[4]: *** [gtk-gnash] Error 1
make[4]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9'
make: *** [all] Error 2
emake failed
 * ERROR: www-plugins/gnash-0.8.9 failed (compile phase):
 *   died running emake, base_src_make
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 6825:  Called base_src_compile
 *   environment, line 1713:  Called base_src_make
 *   environment, line 1751:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/gnash-0.8.9',
 * the complete build log and the output of 'emerge -pqv =www-plugins/gnash-0.8.9'.
 * The complete build log is located at '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9'

>>> Failed to emerge www-plugins/gnash-0.8.9, Log file:

>>>  '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/build.log'
Now, I note that it seems to be an issue with boost or sdl_sound. Thoughts?
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
chithanh
Retired Dev
Retired Dev
User avatar
Posts: 2158
Joined: Sat Aug 05, 2006 10:16 pm
Location: Berlin, Germany

  • Quote

Post by chithanh » Tue May 10, 2011 4:19 pm

Your problem is probably that some of your applications were built against old boost versions. Unmerge all but the latest version of boost, then run revdep-rebuild.
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Tue May 10, 2011 7:38 pm

Thanks much. :)

Running that down now.

Question: What is the purpose of having the boost packages slotted like that?

Just curious.
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Wed May 18, 2011 12:30 am

Unfortunately, no join! :(

Now, it has a more dramatic failure....

Code: Select all

...
In file included from gnash-view.cpp:29:
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:75: error: 'boost' has not been declared
../../libcore/vm/VM.h:75: error: expected '{' before 'noncopyable'
../../libcore/vm/VM.h:76: error: invalid type in declaration before '{' token
../../libcore/vm/VM.h:76: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
../../libcore/vm/VM.h:77: error: expected primary-expression before 'public'
../../libcore/vm/VM.h:77: error: expected '}' before 'public'
../../libcore/vm/VM.h:77: error: expected ',' or ';' before 'public'
../../libcore/vm/VM.h:86: error: expected unqualified-id before 'int'
../../libcore/vm/VM.h:86: error: expected ')' before 'int'
../../libcore/vm/VM.h:88: error: expected constructor, destructor, or type conversion before ';' token
../../libcore/vm/VM.h: In function 'gnash::SafeStack<gnash::as_value>& gnash::getStack()':
../../libcore/vm/VM.h:94: error: '_stack' was not declared in this scope
../../libcore/vm/VM.h: In function 'gnash::VirtualClock& gnash::getClock()':
../../libcore/vm/VM.h:104: error: '_clock' was not declared in this scope
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:111: error: non-member function 'int gnash::getSWFVersion()' cannot have cv-qualifier
../../libcore/vm/VM.h: In function 'int gnash::getSWFVersion()':
../../libcore/vm/VM.h:112: error: '_swfversion' was not declared in this scope
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:119: error: non-member function 'long unsigned int gnash::getTime()' cannot have cv-qualifier
../../libcore/vm/VM.h:122: error: non-member function 'gnash::string_table& gnash::getStringTable()' cannot have cv-qualifier
../../libcore/vm/VM.h: In function 'gnash::string_table& gnash::getStringTable()':
../../libcore/vm/VM.h:122: error: '_stringTable' was not declared in this scope
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:129: error: non-member function 'const std::string& gnash::getPlayerVersion()' cannot have cv-qualifier
../../libcore/vm/VM.h:135: error: non-member function 'std::string gnash::getOSName()' cannot have cv-qualifier
../../libcore/vm/VM.h:140: error: non-member function 'std::string gnash::getSystemLanguage()' cannot have cv-qualifier
../../libcore/vm/VM.h:157: error: 'boost' has not been declared
../../libcore/vm/VM.h:157: error: expected initializer before 'RNG'
../../libcore/vm/VM.h:161: error: expected constructor, destructor, or type conversion before '&' token
../../libcore/vm/VM.h:164: error: non-member function 'gnash::movie_root& gnash::getRoot()' cannot have cv-qualifier
../../libcore/vm/VM.h:167: error: non-member function 'gnash::SharedObjectLibrary& gnash::getSharedObjectLibrary()' cannot have cv-qualifier
../../libcore/vm/VM.h: In function 'gnash::SharedObjectLibrary& gnash::getSharedObjectLibrary()':
../../libcore/vm/VM.h:168: error: '_shLib' was not declared in this scope
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:173: error: non-member function 'gnash::Global_as* gnash::getGlobal()' cannot have cv-qualifier
../../libcore/vm/VM.h:180: error: non-member function 'void gnash::markReachableResources()' cannot have cv-qualifier
../../libcore/vm/VM.h:182: error: variable or field 'registerNative' declared void
../../libcore/vm/VM.h:182: error: 'as_c_function_ptr' was not declared in this scope
../../libcore/vm/VM.h:182: error: expected primary-expression before 'unsigned'
../../libcore/vm/VM.h:182: error: expected primary-expression before 'unsigned'
../../libcore/vm/VM.h:185: error: non-member function 'gnash::NativeFunction* gnash::getNative(unsigned int, unsigned int)' cannot have cv-qualifier
../../libcore/vm/VM.h:245: error: non-member function 'bool gnash::calling()' cannot have cv-qualifier
../../libcore/vm/VM.h: In function 'bool gnash::calling()':
../../libcore/vm/VM.h:246: error: '_callStack' was not declared in this scope
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:252: error: expected unqualified-id before 'private'
../../libcore/vm/VM.h:263: error: 'as_c_function_ptr' was not declared in this scope
../../libcore/vm/VM.h:263: error: template argument 2 is invalid
../../libcore/vm/VM.h:263: error: template argument 4 is invalid
../../libcore/vm/VM.h:263: error: invalid type in declaration before ';' token
../../libcore/vm/VM.h:268: error: non-member '_stringTable' cannot be declared 'mutable'
../../libcore/vm/VM.h:270: error: 'gnash::_clock' declared as reference but not initialized
../../libcore/vm/VM.h:274: error: 'boost' has not been declared
../../libcore/vm/VM.h:274: error: expected initializer before '<' token
../../libcore/vm/VM.h:275: error: 'GlobalRegisters' does not name a type
../../libcore/vm/VM.h:282: error: 'RNG' does not name a type
../../libcore/vm/VM.h:289: error: 'ObjectURI' does not name a type
../../libcore/vm/VM.h:298: error: 'ObjectURI' does not name a type
../../libcore/vm/VM.h:308: error: 'toString' declared as an 'inline' variable
../../libcore/vm/VM.h:308: error: 'VM' was not declared in this scope
../../libcore/vm/VM.h:308: error: 'vm' was not declared in this scope
../../libcore/vm/VM.h:308: error: expected primary-expression before 'const'
../../libcore/vm/VM.h:308: error: initializer expression list treated as compound expression
../../libcore/vm/VM.h:309: error: expected ',' or ';' before '{' token
../../libcore/vm/VM.h:321: error: expected ')' before '&' token
../../libcore/vm/VM.h:329: error: ISO C++ forbids declaration of 'CallFrame' with no type
../../libcore/vm/VM.h:329: error: expected ';' before '&' token
../../libcore/vm/VM.h:333: error: expected ';' before '~' token
../../libcore/vm/VM.h:338: error: ISO C++ forbids declaration of 'VM' with no type
../../libcore/vm/VM.h:338: error: expected ';' before '&' token
../../libcore/vm/VM.h:339: error: ISO C++ forbids declaration of 'CallFrame' with no type
../../libcore/vm/VM.h:339: error: expected ';' before '&' token
../../libcore/vm/VM.h: In destructor 'FrameGuard::~FrameGuard()':
../../libcore/vm/VM.h:334: error: '_vm' was not declared in this scope
../../libcore/vm/VM.h: At global scope:
../../libcore/vm/VM.h:365: error: variable or field 'newAdd' declared void
../../libcore/vm/VM.h:365: error: 'as_value' was not declared in this scope
../../libcore/vm/VM.h:365: error: 'op1' was not declared in this scope
../../libcore/vm/VM.h:365: error: expected primary-expression before 'const'
../../libcore/vm/VM.h:365: error: expected primary-expression before 'const'
../../libcore/vm/VM.h:372: error: variable or field 'subtract' declared void
../../libcore/vm/VM.h:372: error: 'as_value' was not declared in this scope
../../libcore/vm/VM.h:372: error: 'op1' was not declared in this scope
../../libcore/vm/VM.h:372: error: expected primary-expression before 'const'
../../libcore/vm/VM.h:372: error: expected primary-expression before 'const'
../../libcore/vm/VM.h:379: error: 'as_value' does not name a type
../../libcore/vm/VM.h:394: error: ISO C++ forbids declaration of 'as_value' with no type
../../libcore/vm/VM.h:394: error: expected ',' or '...' before '&' token
../../libcore/vm/VM.h:401: error: ISO C++ forbids declaration of 'as_value' with no type
../../libcore/vm/VM.h:401: error: expected ',' or '...' before '&' token
../../libcore/vm/VM.h:408: error: ISO C++ forbids declaration of 'as_value' with no type
../../libcore/vm/VM.h:408: error: expected ',' or '...' before '&' token
../../libcore/vm/VM.h:415: error: expected constructor, destructor, or type conversion before '*' token
../../libcore/vm/VM.h:428: error: 'boost' has not been declared
../../libcore/vm/VM.h:428: error: expected constructor, destructor, or type conversion before 'toInt'
../../libcore/vm/VM.h:435: error: expected constructor, destructor, or type conversion before '&' token
../../libcore/vm/VM.h:442: error: expected constructor, destructor, or type conversion before '&' token
../../libcore/vm/VM.h:449: error: expected constructor, destructor, or type conversion before '&' token
../../libcore/vm/VM.h:456: error: expected constructor, destructor, or type conversion before '&' token
../../libcore/vm/VM.h:458: error: expected declaration before '}' token
make[5]: *** [gnash_la-gnash-view.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui/pythonmod'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui/pythonmod'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/gui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9'
make: *** [all] Error 2
emake failed
 * ERROR: www-plugins/gnash-0.8.9 failed (compile phase):
 *   died running emake, base_src_make
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 6832:  Called base_src_compile
 *   environment, line 1720:  Called base_src_make
 *   environment, line 1758:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/gnash-0.8.9',
 * the complete build log and the output of 'emerge -pqv =www-plugins/gnash-0.8.9'.
 * The complete build log is located at '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9'

>>> Failed to emerge www-plugins/gnash-0.8.9, Log file:

>>>  '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/build.log'

 * Messages for package www-plugins/gnash-0.8.9:

 * ERROR: www-plugins/gnash-0.8.9 failed (compile phase):
 *   died running emake, base_src_make
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 6832:  Called base_src_compile
 *   environment, line 1720:  Called base_src_make
 *   environment, line 1758:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/gnash-0.8.9',
 * the complete build log and the output of 'emerge -pqv =www-plugins/gnash-0.8.9'.
 * The complete build log is located at '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/gnash-0.8.9/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9'
 * 
 * revdep-rebuild failed to emerge all packages.
 * you have the following choices:
 * - If emerge failed during the build, fix the problems and re-run revdep-rebuild.
 * - Use /etc/portage/package.keywords to unmask a newer version of the package.
 *   (and remove 5_order.rr to be evaluated again)
 * - Modify the above emerge command and run it manually.
 * - Compile or unmerge unsatisfied packages manually,
 *   remove temporary files, and try again.
 *   (you can edit package/ebuild list first)
 * 
 * To remove temporary files, please run:
 * rm /var/cache/revdep-rebuild/*.rr
And that was just the last quarter of the available output from the terminal. The errors it threw completely filled the terminal's available scrollback.

Any thoughts on this one?

TIA.
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
ShadowCat8
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Tue Oct 07, 2008 7:37 pm
Location: San Bernardino, CA, USA

  • Quote

Post by ShadowCat8 » Wed May 18, 2011 5:49 pm

As a note, the actual start of the errors/failure is:

Code: Select all

/bin/sh ../../libtool --silent --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g+
+ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/python2.6 -I/usr/include/python2.6 
-pthread -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/
include   -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/in
clude/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/freetyp
e2 -I/usr/include/libpng14    -I../../gui -I../../gui/gtk -I../../gui/pythonmod 
-I../../libbase -I../../librender -I../../librender/opengl -I../../librender/cai
ro -I../../librender/agg -I../../libcore -I../../libcore/swf -I../../libcore/vm 
-I../../libcore/parser -I../../libcore/asobj -I../../libmedia -I../../libvaapi -
I../../libsound -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib64/gtkglext-1.0/i
nclude -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-
1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0    -I/usr/include/python2.6 -I/usr/include/python2.6 -pthread -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -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/libpng14    -I../../gui -I../../gui/gtk -I../../gui/pythonmod -I../../libbase -I../../librender -I../../librender/opengl -I../../librender/cairo -I../../librender/agg -I../../libcore -I../../libcore/swf -I../../libcore/vm -I../../libcore/parser -I../../libcore/asobj -I../../libmedia -I../../libvaapi -I../../libsound -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib64/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0    -I../../gui -I../../gui/gtk -I../../gui/pythonmod -I../../libbase -I../../librender -I../../librender/opengl -I../../librender/cairo -I../../librender/agg -I../../libcore -I../../libcore/swf -I../../libcore/vm -I../../libcore/parser -I../../libcore/asobj -I../../libmedia -I../../libvaapi -I../../libsound   -march=nocona -O2 -pipe          -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -fvisibility-inlines-hidden -c -o gnash_la-gtk_glue_agg.lo `test -f '../../gui/gtk/gtk_glue_agg.cpp' || echo './'`../../gui/gtk/gtk_glue_agg.cpp
In file included from ../../gui/gtk/gtk_canvas.cpp:26:
../../gui/gtk/gtk_canvas.h:25:32: error: boost/shared_ptr.hpp: No such file or directory
In file included from ../../gui/gtk/gtk_canvas.cpp:27:
../../librender/Renderer.h:145:33: error: boost/noncopyable.hpp: No such file or directory
In file included from ../../librender/Renderer.h:151,
                 from ../../gui/gtk/gtk_canvas.cpp:27:
../../libbase/Point2d.h:29:29: error: boost/cstdint.hpp: No such file or directory
In file included from ../../libbase/log.h:26,
                 from ../../librender/Renderer.h:153,
                 from ../../gui/gtk/gtk_canvas.cpp:27:
../../libbase/rc.h:29:31: error: boost/tokenizer.hpp: No such file or directory
In file included from ../../libbase/rc.h:31,
                 from ../../libbase/log.h:26,
                 from ../../librender/Renderer.h:153,
                 from ../../gui/gtk/gtk_canvas.cpp:27:
../../libbase/StringPredicates.h:26:46: error: boost/algorithm/string/compare.hpp: No such file or directory
../../libbase/StringPredicates.h:27:48: error: boost/algorithm/string/predicate.hpp: No such file or directory
In file included from ../../librender/Renderer.h:153,
                 from ../../gui/gtk/gtk_canvas.cpp:27:
../../libbase/log.h:30:34: error: boost/thread/mutex.hpp: No such file or directory
../../libbase/log.h:31:28: error: boost/format.hpp: No such file or directory
../../libbase/log.h:48:50: error: boost/preprocessor/arithmetic/inc.hpp: No such file or directory
Thoughts? TIA.
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu May 19, 2011 2:46 am

ShadowCat8 wrote:Question: What is the purpose of having the boost packages slotted like that?
Some packages require a specific version of Boost, because they rely on behavior that changed in a subsequent version. By slotting boost, Gentoo allows you to install all the required variations at once.

Your compilation failure looks like you unmerged the selected version of Boost, so /usr/include/boost is a dangling symlink. Use eselect boost list to confirm and eselect boost set N to fix it.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic