Bug#525755: Fwd: Bug#525755: FTBFS with GCC 4.4: missing #include

2009-04-26 Thread Kartik Mistry
525755 forwarded "Jean-Francois Dockes" 
thanks

Hi,

Please add this patch to recoll with next release. I will fix it in next upload.

~ Kartik

-- Forwarded message --
From: Martin Michlmayr 
Date: Mon, Apr 27, 2009 at 3:16 AM
Subject: Bug#525755: FTBFS with GCC 4.4: missing #include
To: sub...@bugs.debian.org


Package: recoll
Version: 1.12.0-1
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of recoll_1.12.0-1 on em64t by sbuild/amd64 0.53
...
> g++ -g -O2 -I. -I../aspell -I../bincimapmime -I../common -I../index 
> -I../internfile -I../rcldb -I../unac -I../utils -I/usr/local/include -g -O2 
> -Wall -Wno-unused -I/usr/include   -DRECOLL_DATADIR=\"/usr/share/recoll\" 
> -DLIBDIR=\"/usr/lib\" -DHAVE_CONFIG_H -D_GNU_SOURCE  -c ../utils/md5.cpp
> ../utils/md5.cpp: In function 'std::string& MD5HexScan(const std::string&, 
> std::string&)':
> ../utils/md5.cpp:357: error: 'sscanf' was not declared in this scope
> make[2]: *** [md5.o] Error 1

--- utils/md5.cpp~      2009-04-26 21:38:16.0 +
+++ utils/md5.cpp       2009-04-26 21:38:45.0 +
@@ -28,6 +28,7 @@
 * edited for clarity and style only.
 */
 #ifndef TEST_MD5
+#include 
 #include 

 #include "md5.h"
--- utils/readfile.cpp~ 2009-04-26 21:39:33.0 +
+++ utils/readfile.cpp  2009-04-26 21:40:12.0 +
@@ -28,6 +28,7 @@
 #define O_STREAMING 0
 #endif
 #include 
+#include 
 #include 

 #include 

--
Martin Michlmayr
http://www.cyrius.com/

-- 
 Cheers,
 Kartik Mistry | 0xD1028C8D | IRC: kart_
 Debian GNU/Linux Developer
 Blog.en: ftbfs.wordpress.com
 Blog.gu: kartikm.wordpress.com



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#525755: FTBFS with GCC 4.4: missing #include

2009-04-26 Thread Martin Michlmayr
Package: recoll
Version: 1.12.0-1
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of recoll_1.12.0-1 on em64t by sbuild/amd64 0.53
...
> g++ -g -O2 -I. -I../aspell -I../bincimapmime -I../common -I../index 
> -I../internfile -I../rcldb -I../unac -I../utils -I/usr/local/include -g -O2 
> -Wall -Wno-unused -I/usr/include   -DRECOLL_DATADIR=\"/usr/share/recoll\" 
> -DLIBDIR=\"/usr/lib\" -DHAVE_CONFIG_H -D_GNU_SOURCE  -c ../utils/md5.cpp
> ../utils/md5.cpp: In function 'std::string& MD5HexScan(const std::string&, 
> std::string&)':
> ../utils/md5.cpp:357: error: 'sscanf' was not declared in this scope
> make[2]: *** [md5.o] Error 1

--- utils/md5.cpp~  2009-04-26 21:38:16.0 +
+++ utils/md5.cpp   2009-04-26 21:38:45.0 +
@@ -28,6 +28,7 @@
  * edited for clarity and style only.
  */
 #ifndef TEST_MD5
+#include 
 #include 
 
 #include "md5.h"
--- utils/readfile.cpp~ 2009-04-26 21:39:33.0 +
+++ utils/readfile.cpp  2009-04-26 21:40:12.0 +
@@ -28,6 +28,7 @@
 #define O_STREAMING 0
 #endif
 #include 
+#include 
 #include 
 
 #include 

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org