Hi Dane, I'm trying to compile against boost 1.36 freshly installed from source on a clean debian etch.
Another user, Ric S, suggests me off-list that I should have defined somewhere the macro BOOST_FILESYSTEM_NO_DEPRECATED. The claim is based on: http://www.boost.org/doc/libs/1_36_0/boost/filesystem/path.hpp After lots of find/grep, I'm sure that this macro is not defined in my source tree. Google pointed me to http://lists.boost.org/boost-users/2008/08/39313.php which seems to describe the same problem. As far as I understand itr->leaf() is deprecated and backward-compatibility was accidentally broken. Following this post, I've replaced itr->leaf() by itr->path().leaf() in src/datasource_cache.cpp and I've been able to compile. I'm far from experienced in C++ so I'm not able to check if this change is valid regarding mapnik or previous versions of boost. Could someone confirm that this fix is valid ? Regards Gilles Quoting Dane Springmeyer <[EMAIL PROTECTED]>: > Hi Gilles, > > Thanks for the patch and I'm sorry about the trac problem. > > We are currently troubleshooting an email issue on the host, so until I > get that fixed I'd recommend you re-register with a new username. > > Also, regarding the boost error, what version of boost are you linking to? > > Dane > > > > On Oct 7, 2008, at 5:17 AM, Gilles Bassière wrote: > >> Hi list, >> >> I've been unable to compile mapnik last revision (r747) on a debian etch >> box. All dependencies are met but compilation failed on this: >> ---------------- >> g++ -o src/datasource_cache.os -c -DHAVE_LIBXML2 -ansi -Wall -pthread >> -ftemplate-depth-100 -DLINUX -O2 -finline-functions -Wno-inline -DNDEBUG >> -fPIC -Iagg/include -Itinyxml -Iinclude -I. >> -I/usr/local/include/boost-1_36 -I/usr/include -I/usr/local/include >> -I/usr/include/freetype2 -I/usr/include/libxml2 src/datasource_cache.cpp >> src/datasource_cache.cpp: In static member function 'static void >> mapnik::datasource_cache::register_datasources(const std::string&)': >> src/datasource_cache.cpp:128: error: 'class >> boost::filesystem::basic_directory_entry<boost::filesystem::basic_path<std::basic_string<char, >> std::char_traits<char>, std::allocator<char> >, >> boost::filesystem::path_traits> >' has no member named 'leaf' >> ---------------- >> >> >> The following patch allow compilation: >> ---------------- >> Index: src/datasource_cache.cpp >> =================================================================== >> --- src/datasource_cache.cpp (revision 747) >> +++ src/datasource_cache.cpp (working copy) >> @@ -125,7 +125,7 @@ >> { >> for (filesystem::directory_iterator itr(path);itr!=end_itr;++itr ) >> { >> - if (!is_directory( *itr ) && is_input_plugin(itr->leaf())) >> + if (!is_directory( *itr )) >> { >> try >> { >> ---------------- >> If this patch is harmless, could someone commit it? >> >> >> Additionnaly, I tried to submit a ticket for this. I used to have an >> account on mapnik's trac but I can't reset the password, the system reply: >> ---------------- >> SMTPAuthenticationError: (535, '#5.7.0 Authentication failed') >> There was an internal error in Trac. It is recommended that you inform >> your local Trac administrator <mailto:[EMAIL PROTECTED]> and give him >> all the information he needs to reproduce the issue. >> The action that triggered the error was: >> POST: /reset_password >> ---------------- >> How could I get a new password? >> >> Regards, >> Gilles >> >> -- >> Gilles Bassiere >> MAKINA CORPUS >> 30 rue des Jeuneurs >> FR-75002 PARIS >> +33 (0) 1 44 82 00 80 >> http://www.makina-corpus.com >> >> >> <gilles_bassiere.vcf>_______________________________________________ >> Mapnik-users mailing list >> [email protected] >> https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

