After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 359115 - Pan 0.115 does not compile on AMD64 because of unsigned int / size_t differences in pan::Article
Pan 0.115 does not compile on AMD64 because of unsigned int / size_t differen...
Status: RESOLVED DUPLICATE of bug 358654
Product: Pan
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2006-10-02 20:46 UTC by Jonathan Briggs
Modified: 2006-10-02 21:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Briggs 2006-10-02 20:46:03 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.
Comment 1 Charles Kerr 2006-10-02 21:25:56 UTC
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 ***