Package: mixmaster
Version: 3.0.0-1
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.
GCC 4.4 will introduce better checks in the preprocessor. Your code
does something like:
#ifdef A
#elif B
#endif
but the #elif is wrong: #elif requires a condition whereas you're
trying to test whether B is defined. You therefore have to use:
#elif defined(B)
You can reproduce this problem with gcc-snapshot from unstable.
> Automatic build of mixmaster_3.0.0-1 on em64t by sbuild/amd64 0.53
...
> gcc -DUSE_ZLIB -DUSE_PCRE -DUSE_NCURSES -DHAVE_NCURSES_H
> -DGLOBALMIXCONF='"/etc/mixmaster/client.conf"' -DHOMEMIXDIR='".Mix"' -O2
> -DUSE_SOCK -g -Wall -c -o pgp.o pgp.c
> pgp.c:405:31: error: #elif with no expression
> make[1]: *** [pgp.o] Error 1
> make[1]: Leaving directory `/build/tbm/mixmaster-3.0.0/Src'
--- Src/pgp.c~ 2008-11-07 15:42:30.000000000 +0000
+++ Src/pgp.c 2008-11-07 15:42:43.000000000 +0000
@@ -402,7 +402,7 @@
if (mode == PGP_ARMOR_REM || mode == PGP_ARMOR_NYMKEY || mode ==
PGP_ARMOR_NYMSIG)
buf_appends(out, "Version: N/A\n");
else
-#elif MIMIC /* end of CLOAK */
+#elif defined(MIMIC) /* end of CLOAK */
if (mode == PGP_ARMOR_REM || mode == PGP_ARMOR_NYMKEY || mode ==
PGP_ARMOR_NYMSIG)
buf_appends(out, "Version: 2.6.3i\n");
else
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]