Package: systemtap
Version: 0.0.20080705-2
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 systemtap_0.0.20080705-2 on em64t by sbuild/amd64 0.53
...
> mv -f .deps/stap-cache.Tpo .deps/stap-cache.Po
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -DBINDIR='"/usr/bin"' 
> -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"'   
> -Wall -Werror -Wall -g -D_GNU_SOURCE -O2 -Werror -fstack-protector-all 
> -D_FORTIFY_SOURCE=2 -MT stap-util.o -MD -MP -MF .deps/stap-util.Tpo -c -o 
> stap-util.o `test -f 'util.cxx' || echo './'`util.cxx
> util.cxx: In function 'int copy_file(const char*, const char*)':
> util.cxx:106: error: 'rename' was not declared in this scope
> make[3]: *** [stap-util.o] Error 1
> make[3]: Leaving directory `/build/tbm/systemtap-0.0.20080705/build-tree/src'

--- build-tree/src/util.cxx~    2008-11-08 07:07:33.000000000 +0000
+++ build-tree/src/util.cxx     2008-11-08 07:07:42.000000000 +0000
@@ -24,6 +24,7 @@
 #include <sys/stat.h>
 #include <pwd.h>
 #include <unistd.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
 }
--- build-tree/src/parse.h~     2008-11-08 07:11:51.000000000 +0000
+++ build-tree/src/parse.h      2008-11-08 07:12:01.000000000 +0000
@@ -11,6 +11,7 @@
 #ifndef PARSE_H
 #define PARSE_H
 
+#include <stdint.h>
 #include <string>
 #include <fstream>
 #include <iostream>

In addition to these problems, I also got:

> cc1: warnings being treated as errors
> runtime/staprun/mainloop.c: In function 'stp_main_loop':
> runtime/staprun/mainloop.c:325: error: dereferencing type-punned pointer will 
> break strict-aliasing rules
> make[2]: *** [stapio-mainloop.o] Error 1

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