gcc4.4環境でswfmill-0.2.12をコンパイルする

パッチを書いた。
KLabさんとこのエンコーディングパッチ充ててからやってください。

コンパイル

wget http://swfmill.org/releases/swfmill-0.2.12.tar.gz
tar xf swfmill-0.2.12.tar.gz
cd swfmill-0.2.12
wget http://lab.klab.org/files/flash/encoding.patch
patch -p1 < encoding.patch
wget http://xif.jp/src/swfmill/0.2.12/gcc44.patch
patch -p1 < gcc44.patch
./configure
make
make install

http://xif.jp/src/swfmill/0.2.12/gcc44.patchの中身

diff -ur swfmill-0.2.12/src/swft/swft_css.cpp swfmill-0.2.12.gcc44/src/swft/swft_css.cpp
--- swfmill-0.2.12/src/swft/swft_css.cpp	2006-07-20 22:57:17.000000000 +0900
+++ swfmill-0.2.12.gcc44/src/swft/swft_css.cpp	2011-04-30 18:16:35.640273197 +0900
@@ -6,6 +6,7 @@
 #include <libxslt/xsltutils.h>
 #include <libxml/xpathInternals.h>
 #include "swft.h"
+#include <string.h>
 
 using namespace std;
 #define TMP_STRLEN 0xff
@@ -236,4 +237,4 @@
 	//fprintf(stderr,"looking up style %s: %s\n", needle, r.c_str() );
 	
 	valuePush( ctx, xmlXPathNewString( (const xmlChar *)r.c_str() ) );
-}
\ No newline at end of file
+}
diff -ur swfmill-0.2.12/src/swft/swft_import.cpp swfmill-0.2.12.gcc44/src/swft/swft_import.cpp
--- swfmill-0.2.12/src/swft/swft_import.cpp	2006-07-20 22:57:17.000000000 +0900
+++ swfmill-0.2.12.gcc44/src/swft/swft_import.cpp	2011-04-30 18:16:53.984310124 +0900
@@ -10,7 +10,7 @@
 	int l;
 	
 	// figure basename (filename without path)
-	b = strrchr( filename, '/' );
+	b = strrchr( const_cast<char*>(filename), '/' );
 	basename = b ? b+1 : filename;
 	
 	l = strlen(basename);
diff -ur swfmill-0.2.12/src/swft/swft_import_mp3.cpp swfmill-0.2.12.gcc44/src/swft/swft_import_mp3.cpp
--- swfmill-0.2.12/src/swft/swft_import_mp3.cpp	2006-08-17 19:38:49.000000000 +0900
+++ swfmill-0.2.12.gcc44/src/swft/swft_import_mp3.cpp	2011-04-30 18:17:06.328336831 +0900
@@ -5,6 +5,7 @@
 #include "swft.h"
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <string.h>
 
 #define TMP_STRLEN 0xff