pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] Can't compile pan-0.99


From: John Aldrich
Subject: Re: [Pan-users] Can't compile pan-0.99
Date: Mon, 29 May 2006 09:29:43 -0400
User-agent: KMail/1.8.2

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]