Bug#425888: gnash: FTBFS [i386]: implicit declaration of function 'SWFMovie_writeExports'

2007-05-25 Thread Petter Reinholdtsen

tags 425888 + patch
thanks

A quick search indicate that the symbol in question belong to the ming
package (libming0 and libming-dev), and there is no header file for
it.  Looking in the ming source, I find the symbol in the movie.h
file:

  void SWFMovie_writeExports(SWFMovie movie);

Perhaps the movie.h file should be included in libming-dev?  Until
that happen, I believe the gnash source need to define the prototype
on its own.

I believe this patch will solve the problem.  I picked the
ming_utils.h file because it was included in all three test suite
files using the SWFMovie_writeExports symbol.  Does it solve your
problem?

--- ./testsuite/misc-ming.all/ming_utils.h.orig 2007-05-25 09:38:04.0 
+0200
+++ ./testsuite/misc-ming.all/ming_utils.h  2007-05-25 09:37:41.0 
+0200
@@ -27,6 +27,12 @@
 #endif

 /*
+ * Add symbol from ming src/movie.h as that header file is missing
+ * from the ming -dev package.
+ */
+void SWFMovie_writeExports(SWFMovie movie);
+
+/*
  * This is to avoid the annoying warnings
  * coming from Ming when using the deprecated
  * compileSWFActionCode interface.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#425888: gnash: FTBFS [i386]: implicit declaration of function 'SWFMovie_writeExports'

2007-05-24 Thread Daniel Schepler
Package: gnash
Version: 0.7.2+cvs20070518.1557-1
Severity: serious

From my pbuilder build log:

...
if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I.. -I../.. 
-I../../libbase -I../../backend -I../../server -I../../server/parser 
-I../../libgeometry -I../../testsuite -I/usr/include 
-DMING_VERSION_CODE=0003-Wall -g -Werror-implicit-function-declaration 
-O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith 
-Wreturn-type -Wmissing-declarations -Wmissing-prototypes 
-Wstrict-prototypes  -MT attachMovieTest.o -MD -MP -MF 
".deps/attachMovieTest.Tpo" -c -o attachMovieTest.o attachMovieTest.c; \
then mv -f ".deps/attachMovieTest.Tpo" ".deps/attachMovieTest.Po"; else 
rm -f ".deps/attachMovieTest.Tpo"; exit 1; fi
attachMovieTest.c:40: warning: no previous prototype for 'addRedSquareExport'
attachMovieTest.c: In function 'addRedSquareExport':
attachMovieTest.c:56: error: implicit declaration of function 
'SWFMovie_writeExports'
make[4]: *** [attachMovieTest.o] Error 1
make[4]: Leaving directory 
`/tmp/buildd/gnash-0.7.2+cvs20070518.1557/testsuite/misc-ming.all'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory 
`/tmp/buildd/gnash-0.7.2+cvs20070518.1557/testsuite/misc-ming.all'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/gnash-0.7.2+cvs20070518.1557/testsuite'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/gnash-0.7.2+cvs20070518.1557'
make: *** [build-stamp] Error 2
-- 
Daniel Schepler