Package: sndobj
Version: 2.6.1a-2.3
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of sndobj_2.6.1a-2.3 on em64t by sbuild/amd64 0.53
...
> gcc -O2 -fPIC -I../include -DALSA -DJACK -c SndJackIO.cpp -o SndJackIO.o
> SndJackIO.cpp: In constructor 'SndJackIO::SndJackIO(char*, int, int, int, 
> SndObj**, int, float)':
> SndJackIO.cpp:78: error: 'sprintf' was not declared in this scope
> SndJackIO.cpp:113: error: 'sprintf' was not declared in this scope
> SndJackIO.cpp: In member function 'virtual char* SndJackIO::ErrorMessage()':
> SndJackIO.cpp:312: warning: deprecated conversion from string constant to 
> 'char*'
> SndJackIO.cpp:316: warning: deprecated conversion from string constant to 
> 'char*'
> SndJackIO.cpp:320: warning: deprecated conversion from string constant to 
> 'char*'
> SndJackIO.cpp:324: warning: deprecated conversion from string constant to 
> 'char*'
> SndJackIO.cpp:328: warning: deprecated conversion from string constant to 
> 'char*'
> SndJackIO.cpp:332: warning: deprecated conversion from string constant to 
> 'char*'
> SndJackIO.cpp:336: warning: deprecated conversion from string constant to 
> 'char*'

Here's a patch for this problem but I'm not sure that's all you need:

--- src/SndJackIO.cpp~  2008-11-11 22:04:50.000000000 +0000
+++ src/SndJackIO.cpp   2008-11-11 22:05:00.000000000 +0000
@@ -6,6 +6,7 @@
 
 #ifdef JACK
 
+#include <cstdio>
 #include <unistd.h>
 #include "SndJackIO.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