Package: libloki Version: 0.1.5-3 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. A patch for this problem is below.
> Automatic build of libloki_0.1.5-3 on coconut0 by sbuild/ia64 0.49 ... > make[2]: Entering directory `/build/tbm/libloki-0.1.5/src' > g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion > -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o OrderedStatic.o > OrderedStatic.cpp > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h: > In destructor 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = > Loki::Private::OrderedStaticManagerClass::Data, _Alloc = > std::allocator<Loki::Private::OrderedStaticManagerClass::Data>]': > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:199: > instantiated from 'std::vector<_Tp, _Alloc>::vector(const _Alloc&) [with > _Tp = Loki::Private::OrderedStaticManagerClass::Data, _Alloc = > std::allocator<Loki::Private::OrderedStaticManagerClass::Data>]' > OrderedStatic.cpp:43: instantiated from here > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:120: > warning: conversion to 'long unsigned int' from 'long int' may alter its > value > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/vector.tcc: > In member function 'void std::vector<_Tp, > _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename > std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, > _Alloc> >, const _Tp&) [with _Tp = > Loki::Private::OrderedStaticManagerClass::Data, _Alloc = > std::allocator<Loki::Private::OrderedStaticManagerClass::Data>]': > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:605: > instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) > [with _Tp = Loki::Private::OrderedStaticManagerClass::Data, _Alloc = > std::allocator<Loki::Private::OrderedStaticManagerClass::Data>]' > OrderedStatic.cpp:66: instantiated from here > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/vector.tcc:295: > warning: conversion to 'long unsigned int' from 'long int' may alter its > value > g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion > -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o SafeFormat.o > SafeFormat.cpp > In file included from SafeFormat.cpp:15: > ../include/loki/SafeFormat.h: In member function 'char* > Loki::PrintfState<Device, Char>::RenderWithoutSign(long int, char*, unsigned > int, bool)': > ../include/loki/SafeFormat.h:402: error: 'LONG_MIN' was not declared in this > scope > SafeFormat.cpp: In function 'void Loki::write(FILE*, const char*, const > char*)': > SafeFormat.cpp:26: warning: conversion to 'size_t' from 'long int' may alter > its value ... --- ./include/loki/SafeFormat.h~ 2007-03-04 22:43:48.000000000 +0000 +++ ./include/loki/SafeFormat.h 2007-03-04 22:44:22.000000000 +0000 @@ -21,6 +21,7 @@ // $Header: /cvsroot/loki-lib/loki/include/loki/SafeFormat.h,v 1.25 2006/06/19 12:39:08 syntheticpp Exp $ +#include <limits.h> #include <cstdio> #include <string> #include <stdexcept> --- ./src/SmallObj.cpp~ 2007-03-04 22:44:56.000000000 +0000 +++ ./src/SmallObj.cpp 2007-03-04 22:45:06.000000000 +0000 @@ -18,6 +18,7 @@ #include <loki/SmallObj.h> +#include <limits.h> #include <cassert> #include <vector> #include <bitset> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]