Here is a new patch and an explanation for this problem which you can forward upstream along with the patch.
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 For the maintainer: 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.) In any case, the patch I sent is tested. The header dependencies have been cleaned up some more since I sent the last patch, but I think this work is done now, so please apply this patch and send it upstream. --- src/cm.cc~ 2007-04-05 07:08:51.000000000 +0000 +++ src/cm.cc 2007-04-05 07:09:03.000000000 +0000 @@ -26,6 +26,7 @@ #include <getopt++/BoolOption.h> #include <getopt++/StringOption.h> #include <getopt++/StringCollector.h> +#include <algorithm> #include <cassert> #include <sstream> #include <fstream> --- src/ConfigSource.cc~ 2007-04-05 07:09:18.000000000 +0000 +++ src/ConfigSource.cc 2007-04-05 07:09:24.000000000 +0000 @@ -21,6 +21,7 @@ * */ +#include <cstdlib> #include <iostream> #include "ConfigSource.h" #include "ConfigArchSource.h" --- src/Directory.cc~ 2007-04-05 07:09:52.000000000 +0000 +++ src/Directory.cc 2007-04-05 07:10:02.000000000 +0000 @@ -20,6 +20,7 @@ #include <sys/types.h> #include <dirent.h> #include <sys/unistd.h> +#include <cstdlib> #include <errno.h> #include <iostream> --- libgetopt/src/OptionSet.cc~ 2007-04-05 07:08:12.000000000 +0000 +++ libgetopt/src/OptionSet.cc 2007-04-05 07:08:29.000000000 +0000 @@ -21,6 +21,7 @@ #include "getopt++/Option.h" #include "getopt++/DefaultFormatter.h" +#include <algorithm> #include <iostream> using namespace std; -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]