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. --- Synopsis/Parsers/Cxx/syn/occ.cc~ 2007-04-05 07:50:17.000000000 +0000 +++ Synopsis/Parsers/Cxx/syn/occ.cc 2007-04-05 07:50:25.000000000 +0000 @@ -33,6 +33,7 @@ #include <vector> #include <cstring> #include <cstdio> +#include <memory> #include <stdexcept> using namespace Synopsis; --- src/Synopsis/PTree/Display.hh~ 2007-04-05 07:42:32.000000000 +0000 +++ src/Synopsis/PTree/Display.hh 2007-04-05 07:42:39.000000000 +0000 @@ -9,6 +9,8 @@ #include <Synopsis/PTree.hh> +#include <cstdlib> + namespace Synopsis { namespace PTree --- src/Synopsis/Buffer.cc~ 2007-04-05 07:44:31.000000000 +0000 +++ src/Synopsis/Buffer.cc 2007-04-05 07:45:16.000000000 +0000 @@ -7,6 +7,7 @@ // #include "Synopsis/Buffer.hh" #include "Synopsis/Lexer.hh" +#include <algorithm> #include <streambuf> #include <iterator> #include <string> --- src/Support/Path-posix.cc~ 2007-04-05 07:46:44.000000000 +0000 +++ src/Support/Path-posix.cc 2007-04-05 07:47:03.000000000 +0000 @@ -6,6 +6,7 @@ // #include "Path.hh" +#include <algorithm> #include <vector> #include <stdexcept> #include <cerrno> --- src/Support/ErrorHandler.cc~ 2007-04-05 07:47:34.000000000 +0000 +++ src/Support/ErrorHandler.cc 2007-04-05 07:47:39.000000000 +0000 @@ -6,6 +6,7 @@ // #include "ErrorHandler.hh" +#include <cstdlib> #include <iostream> #ifndef __WIN32__ Now we still fail with: /home/tbm/src/t/synopsis-0.8.0/Synopsis/Parsers/Cpp/ucpp/ucpp.cc:154: error: cannot convert '__gnu_cxx::__normal_iterator<const char**, std::vector<const char*, std::allocator<const char*> > >' to 'const char*' for argument '1' to 'int remove(const char*)' but please fix the header #includes and forward this upstream. -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

