GNOME Bugzilla – Bug 359115
Pan 0.115 does not compile on AMD64 because of unsigned int / size_t differences in pan::Article
Last modified: 2006-10-02 21:25:56 UTC
make[4]: Entering directory `/var/tmp/portage/pan-0.115/work/pan-0.115/pan/data' if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/include/gmime-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=athlon64 -pipe -O2 -g -DNDEBUG -finline-functions -ffast-math -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -MT article.o -MD -MP -MF ".deps/article.Tpo" -c -o article.o article.cc; \ then mv -f ".deps/article.Tpo" ".deps/article.Po"; else rm -f ".deps/article.Tpo"; exit 1; fi article.cc:60: error: prototype for 'unsigned int pan::Article::get_crosspost_count() const' does not match any in class 'pan::Article' article.h:94: error: candidate is: size_t pan::Article::get_crosspost_count() const article.cc:60: error: 'unsigned int pan::Article::get_crosspost_count() const' cannot be overloaded article.h:94: error: with 'size_t pan::Article::get_crosspost_count() const' I fixed the problem for myself by replacing every unsigned int and unsigned long with size_t in article.h and article.cc. That's my preferred fix.
Hi Jonathan, Thanks for the heads-up. Changing article.h:94 was my fix too. You may want to look at bug 358654, which has a patch for this plus a separate int vs. size_t bug that popped up in 0.115. Charles *** This bug has been marked as a duplicate of 358654 ***