A new (beta) version of gnash-0.8.2 is out. Find it here: http://www.getgnash.org/ http://www.getgnash.org/packages/releases/0.8.2/sources/gnash-0.8.2.tar.bz2 Reproducible: Always
I've tried myself on an ebuild for this starting from the gnash-0.8.1 ebuild. While trying to compile the OpenGL Renderer I found out, that there's a file missing in the sources(render_handler_ogl.h). With version 1.10 of this file from the gnash cvs-Repository. I could compile it. This ebuild successfully compiles a plugin, but the resulting plugin crashes in Konqueror. I don't know if it works in Firefox.
Created attachment 145842 [details] gnash-0.8.2 ebuild emerged with these UseFlags: cairo gstreamer gtk kde mad nsplugin opengl qt3 sdl
Created attachment 145843 [details] The missing file
I think I will wait a bit here for the ebuild to mature and to be tested positively by more people.
(In reply to comment #2) > Created an attachment (id=145842) [edit] > gnash-0.8.2 ebuild > > emerged with these UseFlags: cairo gstreamer gtk kde mad nsplugin opengl qt3 > sdl > Don't work for me. End of the /var/tmp/portage/net-www/gnash-0.8.2/temp/build.log: .............................. x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o .libs/libgnashbase_la-extension.o .libs/libgnashbase_la-image.o .libs/libgnashbase_la-jpeg.o .libs/libgnashbase_la-lirc.o .libs/libgnashbase_la-log.o .libs/libgnashbase_la-membuf.o .libs/libgnashbase_la-network.o .libs/libgnashbase_la-postscript.o .libs/libgnashbase_la-rc.o .libs/libgnashbase_la-shm.o .libs/libgnashbase_la-sharedlib.o .libs/libgnashbase_la-string_table.o .libs/libgnashbase_la-tu_file.o .libs/libgnashbase_la-tu_timer.o .libs/libgnashbase_la-WallClockTimer.o .libs/libgnashbase_la-utf8.o .libs/libgnashbase_la-utility.o .libs/libgnashbase_la-curl_adapter.o .libs/libgnashbase_la-noseek_fd_adapter.o .libs/libgnashbase_la-zlib_adapter.o .libs/libgnashbase_la-URL.o .libs/libgnashbase_la-LoadThread.o .libs/libgnashbase_la-FLVParser.o .libs/libgnashbase_la-GC.o .libs/libgnashbase_la-BitsReader.o /usr/lib64/libjpeg.so -L/lib -lz -L/usr/lib64 /usr/lib64/libcurl.so /usr/lib64/libltdl.so -lboost_thread-mt-s -lboost_date_time-mt-s -lpthread -lrt /usr/lib64/libX11.so /usr/lib64/libXi.so -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o -march=nocona -pthread -pthread -Wl,--as-needed -Wl,-soname -Wl,libgnashbase-0.8.2.so -o .libs/libgnashbase-0.8.2.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libboost_thread-mt-s.a(mutex.o): relocation R_X86_64_32 against `boost::thread_resource_error::~thread_resource_error()' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libboost_thread-mt-s.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libgnashbase.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libbase' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2' make: *** [all] Error 2 * * ERROR: net-www/gnash-0.8.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3081: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-www/gnash-0.8.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-www/gnash-0.8.2/temp/environment'. * This ebuild is from an overlay: '/usr/overlays/local/' * emerge --info Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.7-r1, 2.6.24-gentoo-r3 x86_64) ================================================================= System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz Timestamp of tree: Mon, 10 Mar 2008 01:47:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.intergenia.de" LANG="ru_RU.UTF-8" LC_ALL="" LINGUAS="ru" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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/overlays/sunrise /usr/overlays/mozilla /usr/overlays/lila-theme /usr/overlays/webapps-experimental /usr/overlays/gns3 /usr/overlays/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb arts bash-completion berkdb cairo cdr cli cracklib crypt cups dbus directfb dri dvd dvdr dvdread eds emboss encode esd evo exif fam fbcon ffmpeg firefox flac fortran gdbm gif gphoto2 gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos lame ldap lm_sensors mad midi mikmod mmx mp3 mp4 mpeg mudflap net-www/mplayerplug-in nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl sqlite sqlite3 sse sse2 ssl subversion svg tcpd tiff truetype unicode vorbis x264 xml xorg xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="ru" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga fbdev i810 i830 i915" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
@Ivan: I have no clue about 64bit Systems. But see this thread on the gnash-dev Mailinglist: http://lists.gnu.org/archive/html/gnash-dev/2008-03/msg00001.html @Stefan: Wise decision. Maybe there's a bugfix release soon: https://savannah.gnu.org/bugs/?22547
supplied ebuild compiles (x86). workes good with firefox (but 100%CPU). crashes in konqueror (SIGSEGV). standalone player works. USE="agg cairo ffmpeg gtk kde mad nsplugin opengl qt3 sdl"
Hi guys, Not sure if this is a silly thing to mention, but with the older version of Gnash (0.8.1), the only renderer that I found decently functional was AGG. Sometimes on 0.8.1, the OpenGL renderer would _get stuff wrong_. They seem to have different code paths for each renderer, with different levels of completion.
USE="ffmpeg gtk nsplugin opengl sdl" on x86 works for me. But is painfully (unusably) slow in comparison to 0.8.1.
(In reply to comment #9) > USE="ffmpeg gtk nsplugin opengl sdl" on x86 works for me. But is painfully > (unusably) slow in comparison to 0.8.1. > Changing opengl with agg gets the peformance back.
Created attachment 149609 [details, diff] Patch to link the dynamic library instead of the static one On amd64 we need to use -fPIC to dynamicly linked libraries. This links the dynamicly compiled boost library instead of the staticly linked one. It's either applying this patch or compiling the static library with -fPIC. I believe this is the right thing to do. This should solve comment 5. It solved the problem for me at least.
I've installed gnash-0.8.2 with the attached ebuild, but it doesn't work at least with konqueror 3.5.8. When loading a flash site, I'm getting this error on the console: konqueror: WARNING: There was an error loading the module Klash, embedded Gnash player for KDE. The diagnostics is: Library files <b>libklashpart.la</b> are not found in the paths. There are no files libklashpart* installed. # emerge -pv gnash These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-www/gnash-0.8.2 USE="agg cairo fbcon ffmpeg gstreamer gtk kde mad nsplugin opengl qt3 sdl" VIDEO_CARDS="-i810" 2,576 kB Total: 1 package (1 reinstall), Size of downloads: 2,576 kB
Just tried this ebuild, and it has a problem with "nsplugin" being disabled. (i.e. -nsplugin). The build fails in the installation part (after successful compilation) with: Installing plugin to /var/tmp/portage/net-www/gnash-0.8.2/image/ cp: cannot stat `libgnashplugin.so': No such file or directory Was caused by this in the "src_install" part of the ebuild: use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \ || rm -rf "${D}/opt" Don't know why that's running when I've CLEARLY told it not to use nsplugin. I DO NOT WANT gnash to be my browser plugin at this stage. :(
Found the problem with nsplugin in src-install. It has: emake DESTDIR="${D}" install-plugin || die "emake install-plugin failed" This tries to install the plug in regardless of use flags. Not good. Commenting out that line let me install Gnash 0.8.2. It works fine, under Gnome at least, on x86 32-bit. Using these USE flags: agg gstreamer gtk sdl -cairo -fbcon -ffmpeg -kde -mad -nsplugin -opengl -qt3 Note that this builds the AGG renderer, which I've previously found to be Ok for gnash, also builds the GTK "gui" which is useful for setting debugging options.
Created attachment 151208 [details] gnash-0.8.2.ebuild updated ebuild changes: * added src_unpack() for amd64fpic.patch and missing render_handler_ogl.h file. * fixed src_install to not install plugins if nsplugin USE flag is unset.
Hi Lars, Just tested the new gnash 0.8.2 ebuild and it compiles, installs, and plays back fine on my pc. My pc is (presently) an old AthlonXP 3000, using the gnome-light desktop, with effective gnash use flags of: agg gstreamer gtk sdl -cairo -fbcon -ffmpeg -kde -mad -nsplugin -opengl -qt3 Hope that helps.
Just a small fix to only depend on qt-3 when qt3 USE flag is set: --- gnash-0.8.2.ebuild.old 2008-04-28 03:14:06.000000000 +0200 +++ gnash-0.8.2.ebuild 2008-04-28 06:10:03.000000000 +0200 @@ -29,7 +29,7 @@ dev-libs/atk ) kde? ( kde-base/kdelibs ) - qt3? ( x11-libs/qt ) + qt3? ( =x11-libs/qt-3* ) sdl? ( media-libs/libsdl ) !gtk? ( !kde? ( !qt3? ( !sdl? ( ( !fbcon? ( >x11-libs/gtk+-2
It's not building for me on my AMD64 system: x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/crtbeginS.o .libs/BitmapMovieInstance.o .libs/Property.o .libs/PropertyList.o .libs/URLAccessManager.o .libs/SystemClock.o .libs/as_environment.o .libs/as_function.o .libs/as_object.o .libs/as_value.o .libs/asClass.o .libs/character.o .libs/cxform.o .libs/DynamicShape.o .libs/edit_text_character.o .libs/BlurFilter.o .libs/GlowFilter.o .libs/DropShadowFilter.o .libs/ConvolutionFilter.o .libs/ColorMatrixFilter.o .libs/GradientGlowFilter.o .libs/BevelFilter.o .libs/GradientBevelFilter.o .libs/filter_factory.o .libs/generic_character.o .libs/matrix.o .libs/movie_instance.o .libs/movie_root.o .libs/namedStrings.o .libs/rect.o .libs/sprite_instance.o .libs/TagLoadersTable.o .libs/tag_loaders.o .libs/DefineFontAlignZonesTag.o .libs/PlaceObject2Tag.o .libs/RemoveObjectTag.o .libs/StartSoundTag.o .libs/swf_function.o .libs/video_stream_instance.o .libs/StreamProvider.o .libs/array.o .libs/button_character_instance.o .libs/dlist.o .libs/fill_style.o .libs/font.o .libs/fontlib.o .libs/impl.o .libs/LoadVariablesThread.o .libs/render.o .libs/shape.o .libs/stream.o .libs/styles.o .libs/text.o .libs/textformat.o .libs/timers.o .libs/types.o .libs/FreetypeGlyphsProvider.o -Wl,--whole-archive ../server/asobj/.libs/libgnashasobjs.a ../server/parser/.libs/libgnashparser.a ../server/vm/.libs/libgnashvm.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libbase/.libs -Wl,--rpath -Wl,/var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libmedia/.libs -Wl,--rpath -Wl,/var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libamf/.libs -Wl,--rpath -Wl,/usr/lib64/gnash -L/var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libbase/.libs ../libbase/.libs/libgnashbase.so -L/usr/lib64 -L/lib ../libmedia/.libs/libgnashmedia.so /var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libamf/.libs/libgnashamf.so /var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libmedia/.libs/libgnashmedia.so /usr/lib64/libdca.so -lavformat -lavcodec /usr/lib64/liba52.so /usr/lib64/libamrnb.so /usr/lib64/libamrwb.so /usr/lib64/libmp3lame.so -lx264 -lxvidcore /usr/lib64/libfaac.so /usr/lib64/libfaad.so /usr/lib64/libvorbisenc.so /usr/lib64/libvorbis.so /usr/lib64/libtheora.so /usr/lib64/libogg.so -lgsm /usr/lib64/libdc1394_control.so /usr/lib64/libraw1394.so -lswscale -lavutil /usr/lib64/libSDL.so /usr/lib64/libdirectfb.so /usr/lib64/libfusion.so /usr/lib64/libdirect.so /var/tmp/portage/net-www/gnash-0.8.2/work/gnash-0.8.2/libbase/.libs/libgnashbase.so /usr/lib64/libjpeg.so /usr/lib64/libcurl.so -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv /usr/lib64/libgnutls.so /usr/lib64/libtasn1.so /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libltdl.so /usr/lib64/libXext.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl /usr/lib64/libxml2.so -lboost_thread-mt -lboost_date_time-mt -lpthread /usr/lib64/libfreetype.so -lz /usr/lib64/libfontconfig.so -lrt /usr/lib64/libX11.so /usr/lib64/libXi.so -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../../../lib64/crtn.o -march=athlon64 -mtune=athlon64 -pthread -pthread -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -Wl,-soname -Wl,libgnashserver-0.8.2.so -o .libs/libgnashserver-0.8.2.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/character.o: relocation R_X86_64_PC32 against `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()' can not be used when making a shared object; recompile with -fPIC
(In reply to comment #18) > It's not building for me on my AMD64 system: I can't find any more error than the fpic, error. Can you post the whole build log(often /var/tmp/portage/net-www/gnash-0.8.2/temp/build.log)? Did you use the ebuild Lars posted? Was the patch applied in the begining of the emerge phase? What use flags did you use? If you find -lboost_thread-mt-s in the log, than the patch was not applied. If that's the case, please try again with the updated ebuild, with patch.
Lars' ebuild together with the 'render_handler_ogl.h' and 'amd64fpic.patch' emerges fine for me on AMD64 with USE="agg cairo gstreamer gtk kde mad nsplugin opengl qt3 sdl -fbcon -ffmpeg -video_cards_i810"
Although 0.8.2 as I emerged it just before does crash 'nsplugins' in my Konqueror.
(In reply to comment #21) > Although 0.8.2 as I emerged it just before does crash 'nsplugins' in my > Konqueror. If you're also using gtk-engines-qt, and have selected "Use my KDE style in GTK applications" in KControl, then this could be due to bug #220273.
(In reply to comment #22) > If you're also using gtk-engines-qt, and have selected "Use my KDE style in GTK > applications" in KControl, then this could be due to bug #220273. That is the case and emerging gtk-engines-qt-0.8-r1 also solves the problem. Thanks :)
(In reply to comment #23) > (In reply to comment #22) > > If you're also using gtk-engines-qt, and have selected "Use my KDE style in GTK > > applications" in KControl, then this could be due to bug #220273. > > That is the case and emerging gtk-engines-qt-0.8-r1 also solves the problem. > Thanks :) Well, it did for a while, but now I could reproduce it again. Anyway ...I'm turinig off the "Use my KDE style in GTK applications" setting in KControl.
Created attachment 156883 [details, diff] gnash-0.8.3.diff Gnash 0.83 is out (2008.06.12). I have updated the ebuild. It works here with the following use flags "agg cairo fbcon ffmpeg gtk mad nsplugin opengl qt3 sdl"
Created attachment 157513 [details] gnash-0.8.3.ebuild ebuild for gnash-0.8.3 * fixed qt-3 dependency (must be =x11-libs/qt-3*)
When will this hit portage? All the current gnash ebuilds appear to be hard-masked due to bug 214740. :(
(In reply to comment #27) > When will this hit portage? All the current gnash ebuilds appear to be > hard-masked due to bug 214740. :( This ebuild (0.8.3) does not compile against media-video/ffmpeg-0.4.9_p20080326 either. (~x86, gcc 4.3.1 -- but it looks like autotools is failing against libavformat due to the header changes).
Created attachment 158131 [details] gnash-0.8.3.ebuild It looks like mad is not supported anymore. So I have removed the mad use flag from the ebuild. Or is anybody able to compile it with the mad use flag? I am asking because I think it had worked before but now i get a configure error with mad enabled. For reference here is the upstream changelog entry: Revision 1.6573.2.16 - (view) (download) (annotate) - [select for diffs] Fri May 16 07:01:58 2008 UTC (5 weeks, 3 days ago) by strk Branch: gnash_0_8_3_branch Changes since 1.6573.2.15: +7 -0 lines Diff to previous 1.6573.2.15 , to branch point 1.6573 * README: remove section about impelmented/unimplemented as classes and opcode as the info is old and we'll log UNIMPLEMENTED messages for any class or class interface we know to be unimplemented; Removed reference to 'mad' media handler, no more supported.
+*gnash-0.8.3 (25 Jun 2008) + + 25 Jun 2008; Peter Alfredsen <loki_val@gentoo.org> metadata.xml, + +gnash-0.8.3.ebuild: + Bump. Fixes bugs 212943, 213167, 218105 and 226099. Added tests, cleaned + up ebuild.