On Sunday 28 May 2006 10:52 am, Charles Kerr wrote: > > /usr/include/libintl.h:40: error: expected unqualified-id before "const" > > /usr/include/libintl.h:40: error: expected `)' before "const" > > /usr/include/libintl.h:40: error: expected init-declarator before "const" > > /usr/include/libintl.h:40: error: expected `,' or `;' before "const" > > Googling around, it looks like one thing to try is wrapping > the #include g18n.h lines in extern "C": > > --- line-reader.cc.bak 2006-05-28 09:50:22.000000000 -0500 > +++ line-reader.cc 2006-05-28 09:50:31.000000000 -0500 > @@ -1,6 +1,8 @@ > #include <cerrno> > #include <cstring> > +extern "C"{ > #include <glib/gi18n.h> > +} > #include "file-util.h" > #include "line-reader.h" > #include "log.h" > > If this works, it will need to be repeated in quite a few files. > Let me know whether this works or not -- if it works, I can also > file a bug report and patch upstream to glib... > Trying to manually patch it, I get an error at line #4 in the patch. Then again, maybe I screwed up applying the patch. I'll try fudging the pan.spec file slightly and see if I can get it to compile with the patch.
_______________________________________________ Pan-users mailing list Pan-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/pan-users