Package: libtunepimp
Version: 0.4.2-4.1
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.

> Automatic build of libtunepimp_0.4.2-4.1 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -g -g -Wall -O2 -c utf8util.cpp  
> -fPIC -DPIC -o .libs/utf8util.o
> utf8util.cpp: In function 'std::string utf8Encode(const std::string&)':
> utf8util.cpp:46: error: 'free' was not declared in this scope
> utf8util.cpp: In function 'std::string utf8Decode(const std::string&)':
> utf8util.cpp:62: error: 'free' was not declared in this scope
> utf8util.cpp: In function 'std::string utf8ToEncoding(const std::string&, 
> const std::string&)':
> utf8util.cpp:94: error: 'free' was not declared in this scope
> utf8util.cpp: In function 'std::string utf8FromEncoding(const std::string&, 
> const std::string&)':
> utf8util.cpp:124: error: 'free' was not declared in this scope
> make[4]: *** [utf8util.lo] Error 1
> make[4]: Leaving directory `/build/tbm/libtunepimp-0.4.2/lib/utf8'

--- lib/utf8/utf8util.cpp~      2007-04-02 12:41:57.000000000 +0000
+++ lib/utf8/utf8util.cpp       2007-04-02 12:42:07.000000000 +0000
@@ -25,6 +25,7 @@
 
 ----------------------------------------------------------------------------*/
 
+#include <stdlib.h>
 #include <stdio.h>
 #include "utf8util.h"
 #include "utf8.h"
--- lib/metadata.cpp~   2007-04-02 12:43:15.000000000 +0000
+++ lib/metadata.cpp    2007-04-02 12:43:25.000000000 +0000
@@ -25,6 +25,7 @@
 
 ----------------------------------------------------------------------------*/
 #include <math.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include "metadata.h"
 #include "../config.h"
--- lib/fileio.cpp~     2007-04-02 12:44:42.000000000 +0000
+++ lib/fileio.cpp      2007-04-02 12:44:56.000000000 +0000
@@ -28,6 +28,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <string>
+#include <stdlib.h>
 #ifndef WIN32
 #include <unistd.h>
 #endif
--- plugins/mp3/id3_meta.cpp~   2007-04-02 12:47:43.000000000 +0000
+++ plugins/mp3/id3_meta.cpp    2007-04-02 12:47:51.000000000 +0000
@@ -26,6 +26,7 @@
 ----------------------------------------------------------------------------*/
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <time.h>
 #include <ctype.h>
 #include <musicbrainz/mb_c.h>
--- plugins/mp3/id3_2_3_meta.cpp~       2007-04-02 12:48:20.000000000 +0000
+++ plugins/mp3/id3_2_3_meta.cpp        2007-04-02 12:48:27.000000000 +0000
@@ -26,6 +26,7 @@
 ----------------------------------------------------------------------------*/
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <assert.h>
 #include <ctype.h>
 #include <musicbrainz/mb_c.h>

-- 
Martin Michlmayr
http://www.cyrius.com/


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

Reply via email to