Your message dated Thu, 13 Dec 2007 01:46:58 -0500
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #456085,
regarding FTBFS with GCC 4.3: missing #includes
to be marked as having been forwarded to the upstream software
author(s) Nikolay Pultsin <[EMAIL PROTECTED]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
The attached patch fixes this bug, at least for the parts of the code
built by the debian package.

----- Forwarded message from Martin Michlmayr <[EMAIL PROTECTED]> -----

From: Martin Michlmayr <[EMAIL PROTECTED]>
Date: Wed, 12 Dec 2007 20:47:06 -0700
To: [EMAIL PROTECTED]
Subject: Bug#456085: FTBFS with GCC 4.3: missing #includes
Reply-To: Martin Michlmayr <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
User-Agent: Mutt/1.5.16 (2007-06-11)

Package: fbreader
Version: 0.8.8-1
Usertags: ftbfs-gcc-4.3

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).  There's some more information about this at
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of fbreader_0.8.8-1 on em64t by sbuild/amd64 0.53
...
> make[2]: Leaving directory 
> `/build/tbm/fbreader-0.8.8/zlibrary/ui/src/gtk/library'
> make[2]: Entering directory 
> `/build/tbm/fbreader-0.8.8/zlibrary/ui/src/gtk/view'
> Compiling ZLGtkPaintContext.o ...ZLGtkPaintContext.cpp: In member function 
> 'virtual void 
> ZLGtkPaintContext::fillFamiliesList(std::vector<std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >, 
> std::allocator<std::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > > >&) const':
> ZLGtkPaintContext.cpp:134: error: 'sort' is not a member of 'std'
> make[2]: *** [ZLGtkPaintContext.o] Error 1
> make[2]: Leaving directory 
> `/build/tbm/fbreader-0.8.8/zlibrary/ui/src/gtk/view'
> make[1]: *** [.objects] Error 1
> make[1]: Leaving directory `/build/tbm/fbreader-0.8.8/zlibrary/ui'

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



----- End forwarded message -----
-- 
see shy jo
diff --git a/zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp b/zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp
index 558faaa..fedcf92 100644
--- a/zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp
+++ b/zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp
@@ -18,6 +18,7 @@
  * 02110-1301, USA.
  */
 
+#include <algorithm>
 #include <ZLUnicodeUtil.h>
 #include <ZLImage.h>
 

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to