Package: menu Version: 2.1.33 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. > Automatic build of menu_2.1.33 on coconut0 by sbuild/ia64 0.49 ... > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -O2 -MT update-menus.o -MD > -MP -MF ".deps/update-menus.Tpo" -c -o update-menus.o update-menus.cc; \ > then mv -f ".deps/update-menus.Tpo" ".deps/update-menus.Po"; else rm -f > ".deps/update-menus.Tpo"; exit 1; fi > update-menus.cc: In function 'void read_pkginfo()': > update-menus.cc:437: warning: deprecated conversion from string constant to > 'char*' > update-menus.cc: In function 'void run_menumethod_remove(std::string)': > update-menus.cc:599: error: 'exit' was not declared in this scope > update-menus.cc: In function 'void run_menumethod(std::string, const > 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> > > >&)': > update-menus.cc:633: error: 'exit' was not declared in this scope > update-menus.cc:654: error: 'exit' was not declared in this scope > update-menus.cc: In function 'void exit_on_signal(int)': > update-menus.cc:785: error: 'exit' was not declared in this scope > update-menus.cc: In function 'void wait_dpkg(std::string&)': > update-menus.cc:808: error: 'exit' was not declared in this scope > update-menus.cc:823: error: 'exit' was not declared in this scope > update-menus.cc:825: error: 'exit' was not declared in this scope > update-menus.cc:842: error: 'exit' was not declared in this scope > update-menus.cc: In function 'void parse_params(int, char**)': > update-menus.cc:915: error: 'exit' was not declared in this scope > update-menus.cc: In function 'void read_homedirectory()': > update-menus.cc:974: error: 'getenv' was not declared in this scope > make[3]: *** [update-menus.o] Error 1 > make[3]: Leaving directory `/build/tbm/menu-2.1.33/update-menus' --- install-menu/menu-tree.cc~ 2007-04-02 18:55:09.000000000 +0000 +++ install-menu/menu-tree.cc 2007-04-02 18:55:16.000000000 +0000 @@ -24,6 +24,7 @@ * Written by Joost Witteveen. */ +#include <cstdlib> #include <cctype> #include <list> #include <set> --- update-menus/update-menus.cc~ 2007-04-02 18:51:53.000000000 +0000 +++ update-menus/update-menus.cc 2007-04-02 18:51:59.000000000 +0000 @@ -29,6 +29,7 @@ #include <sstream> #include <set> #include <cstdio> +#include <cstdlib> #include <unistd.h> #include <getopt.h> #include <cerrno> --- update-menus/parsestream.cc~ 2007-04-02 18:52:46.000000000 +0000 +++ update-menus/parsestream.cc 2007-04-02 18:52:52.000000000 +0000 @@ -24,6 +24,7 @@ * Written by Joost Witteveen. */ +#include <cstdlib> #include <fstream> #include <cstring> #include "parsestream.h" -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

