Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396327

Summary: app-arch/rpm-4.4.6-r7 should apply files/rpm-4.4.7-have-locale-h.patch too
Product: Gentoo Linux Reporter: Guido Flohr <guido>
Component: New packagesAssignee: Stanislav Ochotnicky (RETIRED) <sochotnicky>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Guido Flohr 2011-12-28 16:04:14 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-28 18:09:10 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Guido Flohr 2011-12-28 21:14:21 UTC
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.
Comment 3 Stanislav Ochotnicky (RETIRED) gentoo-dev 2012-07-26 08:33:42 UTC
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.