macro.c: In function ‘rpmGlob’: macro.c:1700:2: warning: implicit declaration of function ‘setlocale’ macro.c:1700:16: error: ‘LC_COLLATE’ undeclared (first use in this function) macro.c:1700:16: note: each undeclared identifier is reported only once for each function it appears in macro.c:1703:16: error: ‘LC_CTYPE’ undeclared (first use in this function) Adding rpm-4.4.7-have-locale-h.patch fixes the issue. Reproducible: Always
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Correction: locale.h is not included, not libintl.h. See system.h, line 463: #if HAVE_LOCALE_H # include <locale.h> #endif In order to make that work, configure.ac has to check for locale.h, and that is exactly what the mentioned patch for rpm 4.4.7 does.
We did a cleanup of older app-arch/rpm versions. Oldest is now 4.9.1.3, please update and if you can still reproduce feel free to reopen.