Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22602 - xfsprogs breaks with gcc 3.3
Summary: xfsprogs breaks with gcc 3.3
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-11 03:45 UTC by Chris Lee
Modified: 2003-09-29 08:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patches include/platform_def.h.in to add "#include <locale.h>" (localefix.patch,305 bytes, patch)
2003-06-11 04:04 UTC, Chris Lee
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lee 2003-06-11 03:45:39 UTC
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.
Comment 1 Chris Lee 2003-06-11 04:04:02 UTC
Created attachment 13095 [details, diff]
Patches include/platform_def.h.in to add "#include <locale.h>"

This patch fixes this bug for me. Test?
Comment 2 Markus Käfer 2003-07-31 08:32:00 UTC
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.
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2003-08-15 08:21:24 UTC
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.
Comment 4 Brad Cowan (RETIRED) gentoo-dev 2003-09-29 08:20:08 UTC
has always worked here