[Pkg-utopia-maintainers] policykit-1 build error caused by debian's 02_gettext.patch

Ivan Krasilnikov infnty at gmail.com
Thu Aug 4 20:04:51 UTC 2011

On Thu, Aug 4, 2011 at 12:55, Martin Pitt <mpitt at debian.org> wrote:
> Hello Ivan,
> Ivan Krasilnikov [2011-07-28 22:25 +0400]:
>> Hello, I'm having a trouble building policykit-1_0.101-4 package from
>> source on a x86-64 Debian sid system:
>> $ DEB_BUILD_OPTIONS="nostrip noopt" fakeroot apt-get -b source policykit-1
>> <...>
>>   CC     libpolkit_backend_1_la-polkitbackendactionpool.lo
>> /bin/bash ../../libtool <...> polkitbackendactionpool.c
>> polkitbackendactionpool.c: In function '_localize':
>> polkitbackendactionpool.c:1153:7: warning: implicit declaration of
>> function 'setlocale' [-Wimplicit-function-declaration]
>> polkitbackendactionpool.c:1153:7: warning: nested extern declaration
>> of 'setlocale' [-Wnested-externs]
>> polkitbackendactionpool.c:1153:41: error: 'LC_ALL' undeclared (first
>> use in this function)
> That's a bit strange, and doesn't happen here. <glib/gi18n.h> already
> takes care of including <locale.h> via <libintl.h>. Do you actually
> have all build dependencies installed? (apt-get build-dep policykit-1)

Yes, I have run apt-get build-dep. I have looked at libintl.h. Indeed,
it includes locale.h, but only conditionally:

#if defined __OPTIMIZE__ && !defined __cplusplus
# include <locale.h>

DEB_BUILD_OPTIONS=noopt seems to turn off __OPTIMIZE__ flag and so
locale.h doesn't get included in debug build.

I'm interested in doing a debug build of policykit-1 to look at a
crash in one of policykit libraries.

More information about the Pkg-utopia-maintainers mailing list