Re: problem compiling SFS with gcc 4.0 (fedora core 4)
Jaakko Niemi <[email protected]> Wed, 27 Jul 2005 03:37:29 +0300
| Newsgroups | gmane.comp.file-systems.sfs.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 24 Jul 2005, Nikolaos Michalakis wrote:
> Hi,
>
> I 've downloaded SFS from CVS and trying to compile it for Fedora Core 4.
> gcc 4.0 seems to be very picky and I constantly get compilation errors so I
> have to modify the source
> to move on. Has anyone succeeded compiling SFS with gcc 4.0?
>
> I am currently stuck on this error and I can't track it down:
..
> modalg.C:64: error: '<anonymous enum>' is/uses anonymous type
I worked around this with the patch below. Altough I cannot
see how this could break things, I'm not sure if this is the
right solution.
--j
--- sfs1-june/crypt/bigint.h 2005-06-05 18:59:58.000000000 +0300
+++ sfs1/crypt/bigint.h 2005-07-27 02:08:11.000000000 +0300
@@ -44,7 +44,7 @@
#undef ABS
#define ABS(a) ((a) < 0 ? -(a) : (a))
-enum { mpz_bitsperlimb = sizeof (mp_limb_t) * 8 };
+enum named { mpz_bitsperlimb = sizeof (mp_limb_t) * 8 };
int mpz_getbit (const MP_INT *, size_t);
void mpz_xor (MP_INT *, const MP_INT *, const MP_INT *);