Instaling media-libs/gegl-0.0.22 fails to emerge: gegl-init.c: In function 'gegl_init_i18n': gegl-init.c:406: warning: implicit declaration of function 'setlocale' gegl-init.c:406: error: 'LC_ALL' undeclared (first use in this function) gegl-init.c:406: error: (Each undeclared identifier is reported only once gegl-init.c:406: error: for each function it appears in.) make[3]: *** [gegl-init.lo] Error 1
Created attachment 178155 [details] build.log
Created attachment 178156 [details] environment
I wasn't able to reproduce that behaviour (tried unsetting LC_ALL and setting it to C), any ideas what might be special on your system triggering this?
That LC_ALL is used directly on line 406 in gegl-init.c. It seems as if that constant is not defined. (I don't think that has anything to do with my bash shell)
Can you please post the output of emerge --info and emerge -pv gegl ?
Created attachment 178516 [details] emerge gegl
Created attachment 178517 [details] emerge --info
Sorry for the spam: bogo ~ # emerge -pv gegl These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] media-libs/gegl-0.0.22 [0.0.20] USE="cairo jpeg mmx png sdl sse svg v4l -debug -doc -ffmpeg -openexr -raw" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB
Created attachment 178518 [details, diff] Patch that adds locale.h to gegl-init.c Can you try out this patch?
I tried the patch and it worked for me.
patch works for me
added patch and submitted upstream: http://bugzilla.gnome.org/show_bug.cgi?id=567862