Package: cryptkeeper
Version: 0.9.2-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 cryptkeeper_0.9.2-2 on em64t by sbuild/amd64 0.53
...
> g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I..     -g -O2 -g 
> -Wall -O2 -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 
> -I/usr/include/pixman-1 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0    -c 
> -o lsof.o lsof.cpp
> lsof.cpp: In function 'void get_fsusers(lsof_result_t*, const char*)':
> lsof.cpp:50: error: 'fdopen' was not declared in this scope
> lsof.cpp:52: error: 'fgets' was not declared in this scope
> lsof.cpp:68: error: 'fclose' was not declared in this scope
> make[3]: *** [lsof.o] Error 1
> make[3]: Leaving directory `/build/tbm/cryptkeeper-0.9.2/src'

--- src/lsof.cpp~       2008-11-11 19:56:07.000000000 +0000
+++ src/lsof.cpp        2008-11-11 19:56:14.000000000 +0000
@@ -16,6 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
+#include <cstdio>
 #include <stdlib.h>
 #include <vector>
 #include <assert.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