Package: tau
Version: 2.15.6b1-4
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. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in ~3 weeks.)


> Automatic build of tau_2.15.6b1-4 on coconut0 by sbuild/ia64 0.49
...
> make[2]: Entering directory `/build/tbm/tau-2.15.6b1/src/Profile'
> g++    -DTAU_LIBRARY_SOURCE -fPIC                         -g -O2 
> -DPROFILING_ON                   -DTAU_STDCXXLIB            -DTAU_GNU  
> -DTAU_DOT_H_LESS_HEADERS -fPIC      -DPTHREADS                                
>                             -DTAU_LARGEFILE -D_LARGEFILE64_SOURCE             
>   -I/build/tbm/tau-2.15.6b1/include   -c Profiler.cpp
> Profiler.cpp: In function 'int& TauGetDepthLimit()':
> Profiler.cpp:143: error: 'INT_MAX' was not declared in this scope
> Profiler.cpp: In function 'char* TauGetCounterString()':

--- src/Profile/Profiler.cpp~   2007-04-04 12:21:21.000000000 +0000
+++ src/Profile/Profiler.cpp    2007-04-04 12:21:31.000000000 +0000
@@ -58,6 +58,7 @@
 #include <stdlib.h>
 #if (!defined(TAU_WINDOWS))
 #include <unistd.h>
+#include <climits>
 
 #include <sys/types.h>
 #include <sys/stat.h>
--- src/Profile/UserEvent.cpp~  2007-04-04 12:22:07.000000000 +0000
+++ src/Profile/UserEvent.cpp   2007-04-04 12:22:17.000000000 +0000
@@ -51,6 +51,7 @@
 #endif
 
 
+#include <cstdlib>
 #include <stdio.h>
 #include <fcntl.h>
 
--- src/Profile/TauHooks.cpp~   2007-04-04 12:23:01.000000000 +0000
+++ src/Profile/TauHooks.cpp    2007-04-04 12:23:11.000000000 +0000
@@ -30,6 +30,7 @@
 // Include Files 
 //////////////////////////////////////////////////////////////////////
 
+#include <cstdlib>
 #include <stdio.h>
 #include <string.h>
 #include <Profile/Profiler.h>
--- src/Profile/PthreadLayer.cpp~       2007-04-04 12:24:31.000000000 +0000
+++ src/Profile/PthreadLayer.cpp        2007-04-04 12:24:46.000000000 +0000
@@ -34,9 +34,11 @@
 
 //#define DEBUG_PROF
 #ifdef TAU_DOT_H_LESS_HEADERS
+#include <cstdlib>
 #include <iostream>
 using namespace std;
 #else /* TAU_DOT_H_LESS_HEADERS */
+#include <stdlib.h>
 #include <iostream.h>
 #endif /* TAU_DOT_H_LESS_HEADERS */
 #include "Profile/Profiler.h"

I couldn't test everything because I get:

In file included from ./TAU_tf_headers.h:54,
                 from TAU_tf.cpp:17:
./TAU_tf_decl.h:84: error: 'PCXX_EV' does not name a type

Where's that defined?
-- 
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