Package: dictd
Version: 1.10.2-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.  A patch for this problem is
below.

> Automatic build of dictd_1.10.2-3.1 on em64t by sbuild/amd64 0.53
...
> g++ -fPIC -c -Wall -pipe -Wwrite-strings -Wcast-align          
> -Wmissing-prototypes -Wshadow -Wnested-externs -Waggregate-return  -Ilibmaa 
> -DHAVE_CONFIG_H  -I. -fPIC -D_REENTRANT -Wno-implicit -Wno-unused 
> dictdplugin_popen.cpp -o dictdplugin_popen.os
> cc1plus: warning: command line option "-Wmissing-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC 
> but not for C++
> dictdplugin_popen.cpp:69: error: 'UCHAR_MAX' was not declared in this scope
> dictdplugin_popen.cpp: In constructor 'global_data::global_data()':
> dictdplugin_popen.cpp:90: error: 'm_valid_chars' was not declared in this 
> scope
> dictdplugin_popen.cpp: In function 'int dictdb_open(const dictPluginData*, 
> int, int*, void**)':
> dictdplugin_popen.cpp:177: error: 'class global_data' has no member named 
> 'm_valid_chars'
> dictdplugin_popen.cpp: In function 'int dictdb_search(void*, const char*, 
> int, int, int*, const char**, int*, const char* const**, const int**, int*)':
> dictdplugin_popen.cpp:298: error: 'class global_data' has no member named 
> 'm_valid_chars'
> make[1]: *** [dictdplugin_popen.os] Error 1

--- dictdplugin_popen.cpp~      2007-03-05 12:01:52.000000000 +0000
+++ dictdplugin_popen.cpp       2007-03-05 12:02:02.000000000 +0000
@@ -41,6 +41,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <climits>
 #include <errno.h>
 #include <string>
 #include <unistd.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