Package: faust
Version: 0.9.9.4b-1
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 faust_0.9.9.4b-1 on em64t by sbuild/amd64 0.53
...
> g++ -g -O3 -Wall -Wuninitialized -Iboxes -Ierrors -Ievaluate -Igenerator 
> -Inormalize -Iparser -Ipropagate -Isignals -Itlib -Idraw -Idraw/device 
> -Idraw/schema -Iextended -Ipatternmatcher   -c -o normalize/privatise.o 
> normalize/privatise.cpp
> In file included from signals/sigtype.hh:30,
>                  from normalize/privatise.cpp:24:
> tlib/smartpointer.hh: In member function 'T& P<T>::operator*() const':
> tlib/smartpointer.hh:50: error: 'stderr' was not declared in this scope
> tlib/smartpointer.hh:50: error: there are no arguments to 'fprintf' that 
> depend on a template parameter, so a declaration of 'fprintf' must be 
> available
> tlib/smartpointer.hh:50: note: (if you use '-fpermissive', G++ will accept 
> your code, but allowing the use of an undeclared name is deprecated)
> tlib/smartpointer.hh: In member function 'T* P<T>::operator.() const':
> tlib/smartpointer.hh:57: error: 'stderr' was not declared in this scope
> tlib/smartpointer.hh:57: error: there are no arguments to 'fprintf' that 
> depend on a template parameter, so a declaration of 'fprintf' must be 
> available

--- compiler/tlib/smartpointer.hh~      2008-11-11 21:13:51.000000000 +0000
+++ compiler/tlib/smartpointer.hh       2008-11-11 21:13:57.000000000 +0000
@@ -25,6 +25,7 @@
 #define _SMARTPOINTER_H
 
 //#include <iostream>
+#include <cstdio>
 #include <stdlib.h>
 
 
--- compiler/tlib/symbol.cpp~   2008-11-11 21:18:31.000000000 +0000
+++ compiler/tlib/symbol.cpp    2008-11-11 21:18:42.000000000 +0000
@@ -23,6 +23,7 @@
 #include    "compatibility.hh"
 #include       <cstring>
 #include       <iostream>
+#include       <cstdio>
 
 using namespace std;
 

-- 
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