pan-users
[Top][All Lists]
Advanced

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

Re: [Pan-users] Re: Compile problems with pan-0.133


From: Phil Grundig
Subject: Re: [Pan-users] Re: Compile problems with pan-0.133
Date: Sun, 12 Oct 2008 07:52:23 +0000 (GMT)

My apologies Walt for the html - the hazards of posting from yahoo.

I must be getting the hang of this.  The next error was in body-pan.cc, also apparently an _attribute_ error.  No UNUSED in body-pane.h but there was G_GNUC_UNUSED.  I couldn't see offhand where that was included from, so I tried setting

#define G_GNUC_UNUSED

at the top of body-pane.h and it worked! (Some warnings span past about things being redefined).

Anyway Pan 0.133 appears to run so far and the binary after stripping is small = 2.67mb.  (With earlier versions I was getting a huge binary).

Many thanks Walt, much appreciated.  I assume something happened between pan 0.131 and 0.133 that made this _attribute_ thing necessary?

if Charles is reading: could an option to configure for older compilers please be added in the next release?



--- On Sun, 12/10/08, walt <address@hidden> wrote:
From: walt <address@hidden>
Subject: [Pan-users] Re: Compile problems with pan-0.133
To: address@hidden
Date: Sunday, 12 October, 2008, 2:19 AM

On Sun, 12 Oct 2008 00:25:50 +0000, Phil Grundig wrote:

Editing debug.h as you suggest got me past that next error as well! - thanks
very much again.

make -DUNUSED='' gives an invalid option error.

I guess Zan's comment is right, but I'm too tired right now to
investigate.

Next problem (another compiler definition issue maybe?) is:

g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BI
TS=64
-I/opt/pan-gtk2.10.9/include/gmime-2.0 -I/usr/include/glib-2.0 -I/usr/lib/

glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

-I/opt/pan-gtk2.10.9/include/gmime-2.0
-I/opt/pan-gtk2.10.9/include -I/usr/include/glib-2.0 -g -O2 -MT data.o -MD -MP
-MF .deps/data.Tpo -c -o data.o data.cc
In file included from data.cc:21:
data.h:221: error: parse error before `__attribute__'

Again, same problem but two different files this time:
Note that data.cc includes macros.h instead of debug.h, and both of those
files contain exactly the same code defining UNUSED. The workaround is
to make the same edits in macros.h.

Phil, your post this time was in html, which is not good for us pan users, so
please try to fix it for your future posts. Thanks!



_______________________________________________
Pan-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/pan-users


reply via email to

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