I'm running the testing flavor of Gentoo on my laptop (and my server for that matter) and noticed that the new version of tar is broken. Of course, this is after I start to pull 600 MB of source and compile it which has now taken over 27 hours (off and on with errors and such).
The error I was getting is pasted below, along with the fix.
In file included from /usr/include/stdio.h:28,
from argp-fmtstream.h:32,
from argp-fs-xinl.c:27:
/usr/include/features.h:265:41: operator '&&' has no right operand
Fix:
emerge tar
cd /var/tmp/portage/tar-1.14.90-r1/work/tar-1.14.90/lib
patch -p1 <
+++ argp-fs-xinl.c 2004-10-29 13:45:26.385342488 +0100
@@ -22,8 +22,9 @@
#endif
#define ARGP_FS_EI
-#undef __OPTIMIZE__
-#define __OPTIMIZE__
+#ifndef __OPTIMIZE__
+#define __OPTIMIZE__ 1
+#endif
#include "argp-fmtstream.h"
#if 0
EOM
ebuild /usr/portage/app-arch/tar/tar-1.14.90-r1.ebuild merge
Thanks to the gentoo forums and this bug report for that one! I'm not churning away at the remaining 96 packages. And to think, I get to do this all over again on the server probably tomorrow.
Posted by doug at November 1, 2004 10:39 AM | TrackBack