When emerging sys-apps/attr-2.2.0 the following error occurs: gcc -march=i686 -O3 -pipe -g -DDEBUG -funsigned-char -Wall -I./include -DVERSION=\"2.2.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -DDEBUG -funsigned-char -Wall -I../include -DVERSION=\"2.2.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -include libattr.h -D_REENTRANT -fno-strict-aliasing -c attr_copy_fd.c -fPIC -DPIC -o .libs/attr_copy_fd.lo In file included from attr_copy_fd.c:37: ../include/error_context.h:23: badly punctuated parameter list in `#define' attr_copy_fd.c: In function `attr_copy_fd': attr_copy_fd.c:83: warning: implicit declaration of function `error' make[1]: *** [attr_copy_fd.lo] Error 1 make: *** [default] Error 2 !!! ERROR: sys-apps/attr-2.2.0 failed. !!! Function src_compile, Line 41, Exitcode 2 !!! (no error message) Short after the emerge statement the following happens: >>> Unpacking attr_copy.diff to /mnt/daten/transfer/c001/portage/attr-2.2.0/work unpack attr_copy.diff: file format not recognized. Ignoring. * Applying attr_copy.diff... [ ok ] Maybe this has something to do with the resulting error. There is a small thread at the forum to: http://forums.gentoo.org/viewtopic.php?t=51455
I have a similar problem, but the failure is at a slightly different point. I am not sure if this is a separate bug, but this is the output that I get: rm -f .libs/attr_copy_fd.lo gcc -march=i686 -O3 -pipe -g -DDEBUG -funsigned-char -Wall -I./include -DVERSION=\"2.2.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -DDEBUG -funsigned-char -Wall -I../include -DVERSION=\"2.2.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -include libattr.h -D_REENTRANT -fno-strict-aliasing -c attr_copy_fd.c -fPIC -DPIC -o .libs/attr_copy_fd.lo In file included from attr_copy_fd.c:37: ../include/error_context.h:23: badly punctuated parameter list in `#define' attr_copy_fd.c: In function `attr_copy_fd': attr_copy_fd.c:83: warning: implicit declaration of function `error' make[1]: *** [attr_copy_fd.lo] Error 1 make: *** [default] Error 2 !!! ERROR: sys-apps/attr-2.2.0 failed. !!! Function src_compile, Line 41, Exitcode 2 !!! (no error message) I also see the unpack attr_copy.diff error.
This is my emerge info: Portage 2.0.48 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8,2.2.5-r4) ================================================================= System uname: 2.4.20 i686 Celeron (Mendocino) GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb cdr esd gdbm gif gnome-libs gpm gtk imlib java libwww motif nls oggvorbis pam perl png python qt readline sdl slang ssl svga tcltk tcpd tiff mysql -gnome -X -kde -opengl" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://dark-lord.ihtruelsen.dyndns.org/gentoo-portage" FEATURES="sandbox ccache"
I had the same problem, but after upgrading to gcc-3.2.3 and glibc-2.3.2 it is not there any more. See http://www.gentoo.org/doc/en/new-upgrade-to-gentoo-1.4.xml
Am I to take it that this is a package that is not workable for gcc 2.95? Is this confirmed?
Yes, the package does require gcc3 as they use some of it's new syntax for their code. I've put the depend on gcc3 in the new version in the tree shortly.
Since this significantly breaks XFS support in the 1.2 profile, please accordingly add a line to the 1.2 profile that masks any versions that include this change. Also, would it be possible to restore the most recent GCC-2 compatable version of attr to the tree in an unmasked state?