When building gplflash with the default-1.0-gcc3 profile the following errors occur: g++ -O3 -Wall -fno-rtti -fno-exceptions -I../Jpeg -I../Zlib -c -o shape.o shape.cc shape.cc: In function `void flushPaths(ShapeParser*)': shape.cc:311: `sqrt' undeclared (first use this function) shape.cc:311: (Each undeclared identifier is reported only once for each function it appears in.) gcc -o swfplayer main.o ../Lib/libflash.a ../Zlib/libz.a ../Jpeg/libjpeg.a -L/usr/X11R6/lib -lX11 -lXext -lm ../Lib/libflash.a(flash.o): In function `FlashNew': flash.o(.text+0x14): undefined reference to `operator new(unsigned)' flash.o(.text+0x2a): undefined reference to `operator new(unsigned)' ../Lib/libflash.a(flash.o): In function `FlashGraphicInit': flash.o(.text+0x1a0): undefined reference to `operator new(unsigned)' ... These were the necessary changes to get it built: diff -u -r flash-0.4.10.old/Lib/shape.cc flash-0.4.10/Lib/shape.cc --- flash-0.4.10.old/Lib/shape.cc Wed Jun 7 19:11:08 2000 +++ flash-0.4.10/Lib/shape.cc Tue Jun 25 12:03:56 2002 @@ -22,6 +22,8 @@ #include "swf.h" +#include <math.h> + #ifdef RCSID static char *rcsid = "$Id: shape.cc,v 1.5 1999/09/10 13:08:52 ode Exp $"; #endif diff -u -r flash-0.4.10.old/Player/Makefile flash-0.4.10/Player/Makefile --- flash-0.4.10.old/Player/Makefile Wed Jun 7 19:19:50 2000 +++ flash-0.4.10/Player/Makefile Tue Jun 25 12:09:34 2002 @@ -1,7 +1,7 @@ FLASH=../Lib CPPFLAGS=-I$(FLASH) CFLAGS=-O3 -LIBS = $(FLASH)/libflash.a ../Zlib/libz.a ../Jpeg/libjpeg.a -L/usr/X11R6/lib -lX11 -lXext -lm +LIBS = $(FLASH)/libflash.a ../Zlib/libz.a ../Jpeg/libjpeg.a -L/usr/X11R6/lib -lX11 -lXext -lm -lstdc++ CC=gcc LDFLAGS= The new ebuild and the associated patch will be attached below.
Created attachment 1772 [details] gplflash-0.4.10-r1.ebuild The new ebuild which is a slightly modified version of the existing gplflash-0.4.10.ebuild to read the new patch.
Created attachment 1773 [details, diff] gplflash-0.4.10-gentoo.diff This patch fixes the problems above, besides of disabling the Kflash player as the previous /usr/portage/net-www/gplflash/files/gentoo.diff patch.
*** Bug 4162 has been marked as a duplicate of this bug. ***
Sorry for the dup, searched before I've submitted, but found nothing. If the patch works, then make a gcc 3.1 ebuild in the Portage tree?
We really need some flash for the gcc 3.1 people.
thanks for the bug report! masked until known to work with gcc2.95.3
*** Bug 4365 has been marked as a duplicate of this bug. ***