Missing locale.h header in gcalctool.c Reproducible: Always
Created attachment 263901 [details] fixed ebuild
Created attachment 263903 [details] fixed anyway
Please use the right Product next time.
Reopen for changing assignee
I'll close it as INVALID instead of FIXED as it seems to be a problem on your site, interpreted by your bug changes.
I get exactly the same compile error, and it looks like the attached patch would fix it. What exactly do you mean by a "problem on your site"? I've had gentoo installed on my machines for years, on this machine specifically since April 2007, and not encountered this problem before. I've searched a lot for gentoo and LC_ALL and found many messages claiming the non-inclusion of locale.h is the problem, but not found anything that identifies a specific "problem with my site" or even identifies a list of things to look at.
Same error here on x86-64. This is a very legitimate bug! That include file is really missing from gcalctool.c, actually in 5.91.0 is fixed already. So the ebuild must be changed or the gcalctool version must be bumped. Please reopen the ticket.
Bumping the version by renaming the ebuild to 5.91.93 is enough. Several bugs were fixed.
Please attach full build.log when it fails
In my case, the build error appears with optimisation level less then 1. So if I have in make.conf: CFLAGS="-march=native -pipe" or CFLAGS="-march=native -pipe -O0" the build error appears (see the attached log). The MAKEOPTS variable does not matter. The problem can be solved with the following 3 possibilities: 1. adding the "-O1" or "-O2" option to the CFLAGS; 2. adding the missing #include <locale.h>; 3. bumping to 5.91.93. In my option the last variant is the best, because it builds correctly and it has a lot of enhancements and bug fixes.
Created attachment 285185 [details] The build error log. The build error log with CFLAGS="-march=native -mno-avx -pipe".
+ 11 Sep 2011; Pacho Ramos <pacho@gentoo.org> gcalctool-5.32.2.ebuild, + +files/gcalctool-5.32.2-missing-header.patch: + Fix compilation problems due missing header, bug #356563 by pp--, Bradley + Broom and Balint SZENTE. +