Package: tochnog
Version: 20010124-3.1
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.  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).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in ~3 weeks.)

> Automatic build of tochnog_20010124-3.1 on em64t by sbuild/amd64 0.53
...
> database.cc:3897: error: 'LONG_MIN' was not declared in this scope
> database.cc: In function 'long int db_active_index(long int, long int, long 
> int)':
> database.cc:3922: error: 'LONG_MIN' was not declared in this scope
> database.cc: In function 'void db_allocate(long int, long int, long int, long 
> int)':
> database.cc:3938: warning: deprecated conversion from string constant to 
> 'char*'
> database.cc:3946: warning: deprecated conversion from string constant to 
> 'char*'
> database.cc:3947: warning: deprecated conversion from string constant to 
> 'char*'
> database.cc:3948: warning: deprecated conversion from string constant to 
> 'char*'
> database.cc:3966: error: 'LONG_MIN' was not declared in this scope

--- tochnog/src/database.cc~    2007-04-04 12:29:02.000000000 +0000
+++ tochnog/src/database.cc     2007-04-04 12:29:10.000000000 +0000
@@ -19,6 +19,7 @@
 */
 
 #include "tochnog.h" 
+#include <climits>
 
 double   *dbl_data[MDAT][MVERSION]; // pointer to actual double data
 long int *int_data[MDAT][MVERSION]; // pointers to actual integer data

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