Installed gcc 3.3 from /usr/ports/sys-devel/gcc/gcc-3.3.ebuild and xfsprogs 2.6.9 won't compile with it. I get the following error from emerge: xfs_bmap.c: In function `main': xfs_bmap.c:60: warning: implicit declaration of function `setlocale' xfs_bmap.c:60: error: `LC_ALL' undeclared (first use in this function) xfs_bmap.c:60: error: (Each undeclared identifier is reported only once xfs_bmap.c:60: error: for each function it appears in.) make[1]: *** [xfs_bmap.o] Error 1 make: *** [default] Error 2 !!! ERROR: sys-apps/xfsprogs-2.3.9 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message) No idea if it's also broken with gcc 3.2.2 or if xfsprogs 2.3.9 just didn't get enough testing.
Created attachment 13095 [details, diff] Patches include/platform_def.h.in to add "#include <locale.h>" This patch fixes this bug for me. Test?
xfs_bmap.c: In function 'main: xfs_bmap.c:60: warning: implicit declaration of function 'setlocale" xfs_bmap.c:60: 'LC_ALL' undeclared (first use in this function) xfs_bmap.c:60: (Each undeclared identifier is reported only once xfs_bmap.c:60: for each function it appears in.) make[1]: *** [xfs_bmap.o] Error 1 make: *** [default] Error 2 !!! ERROR: sys-apps/xfsprogs-2.3.9 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message) ----------------------------------------------------------------- I have this problem with xfsprogs 2.3.9 and gcc3.2.3 maybe this applies to the same bug.
For what it's worth, this problem doesnt seem to exist on my system with gcc 3.3.1 ayanami root # emerge xfsprogs -p These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-apps/xfsprogs-2.3.9 ayanami root # gcc --version gcc (GCC) 3.3.1 (Gentoo Linux 3.3.1, propolice) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
has always worked here