[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pan-users] Re: Compile Pan using gcc 4.0
From: |
Duncan |
Subject: |
[Pan-users] Re: Compile Pan using gcc 4.0 |
Date: |
Sun, 01 May 2005 07:36:32 -0700 |
User-agent: |
Pan/0.14.2.91 (As She Crawled Across the Table) |
Dave Chand posted <address@hidden>,
excerpted below, on Sun, 01 May 2005 09:36:09 -0400:
> Has anyone tried to compile pan using gcc 4.0? Dave
[xposting to pan-devel from pan-user]
Matter of fact, that's what I'm posting with right now!
I don't know about CVS, but on Gentoo, pan-0.14.2.91-r2 (the r2 indicating
a third Gentoo release of the same upstream version) includes a gcc-4.0.0
patch. The first version of the patch (in -r1, out yesterday) broke PAN,
and I had a broken PAN for a day, but after syncing a few hours ago, I
noticed -r2 in the list of updates, the changelog revealing it was a fix
for the previous patch, so now it works.
Here's the updated patch. It should apply cleanly, as I don't see any
other patches listed -- Gentoo otherwise uses the straight upstream
terball (but watch the wrapping!):
--- pan-0.14.2.91/pan/base/msort.c.orig 2005-04-25 15:54:31.000000000 +0000
+++ pan-0.14.2.91/pan/base/msort.c 2005-04-25 15:59:21.000000000 +0000
@@ -65,14 +65,16 @@
if ((*cmp) (b1, b2) <= 0)
{
--n1;
- *((unsigned long int *) tmp)++ =
- *((unsigned long int *) b1)++;
+ *((unsigned long int *) tmp) = *((unsigned long
int *) b1);
+ tmp += sizeof(unsigned long int);
+ b1 += sizeof(unsigned long int);
}
else
{
--n2;
- *((unsigned long int *) tmp)++ =
- *((unsigned long int *) b2)++;
+ *((unsigned long int *) tmp) = *((unsigned long
int *) b2);
+ tmp += sizeof(unsigned long int);
+ b2 += sizeof(unsigned long int);
}
}
else
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html