Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396327 - app-arch/rpm-4.4.6-r7 should apply files/rpm-4.4.7-have-locale-h.patch too
Summary: app-arch/rpm-4.4.6-r7 should apply files/rpm-4.4.7-have-locale-h.patch too
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Stanislav Ochotnicky (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-28 16:04 UTC by Guido Flohr
Modified: 2012-07-26 08:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.