Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4134 - gplflash doesn't build with default-1.0-gcc3 + new ebuild to correct the problem
Summary: gplflash doesn't build with default-1.0-gcc3 + new ebuild to correct the problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
: 4162 4365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-25 06:13 UTC by José Fonseca
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
gplflash-0.4.10-r1.ebuild (gplflash-0.4.10-r1.ebuild,914 bytes, text/plain)
2002-06-25 06:15 UTC, José Fonseca
Details
gplflash-0.4.10-gentoo.diff (gplflash-0.4.10-gentoo.diff,1.12 KB, patch)
2002-06-25 06:17 UTC, José Fonseca
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description José Fonseca 2002-06-25 06:13:13 UTC
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.
Comment 1 José Fonseca 2002-06-25 06:15:49 UTC
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.
Comment 2 José Fonseca 2002-06-25 06:17:32 UTC
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.
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2002-06-29 16:40:25 UTC
*** Bug 4162 has been marked as a duplicate of this bug. ***
Comment 4 Lasse Mikkelsen 2002-06-29 16:55:22 UTC
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?
Comment 5 Lasse Mikkelsen 2002-06-29 16:55:56 UTC
We really need some flash for the gcc 3.1 people.
Comment 6 Matthew Kennedy (RETIRED) gentoo-dev 2002-06-29 21:42:30 UTC
thanks for the bug report!

masked until known to work with gcc2.95.3
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2002-07-01 18:45:14 UTC
*** Bug 4365 has been marked as a duplicate of this bug. ***