The attached patch fixes the problem and allows build in both boost 1.42 and 1.46.
Regards Konstantinos
diff -ruN undertaker-1.1//undertaker/ModelContainer.cpp undertaker-1.1.new//undertaker/ModelContainer.cpp --- undertaker-1.1//undertaker/ModelContainer.cpp 2011-03-21 08:59:27.000000000 +0000 +++ undertaker-1.1.new//undertaker/ModelContainer.cpp 2011-04-29 10:38:30.427298233 +0000 @@ -62,7 +62,11 @@ for (boost::filesystem::directory_iterator dir(model); dir != boost::filesystem::directory_iterator(); ++dir) { +#if !defined(BOOST_FILESYSTEM_VERSION) || BOOST_FILESYSTEM_VERSION == 2 filenames.push_back(dir->path().filename()); +#else + filenames.push_back(dir->path().filename().string()); +#endif } filenames.sort();