Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236347 - dev-libs/confuse: fix building with optimisations turned off
Summary: dev-libs/confuse: fix building with optimisations turned off
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 12:05 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2008-09-15 01:39 UTC (History)
0 users

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


Attachments
confuse-2.6-O0.patch (confuse-2.6-O0.patch,492 bytes, patch)
2008-09-01 12:06 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-09-01 12:05:57 UTC
The attached patch makes confuse build when optimisations are turned off. Without this it fails like this:

 i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pipe -include /var/tmp/portage/dev-libs/confuse-2.6-r1/temp/flagscheck.h -MT confuse.lo -MD -MP -MF .deps/confuse.Tpo -c confuse.c  -fPIC -DPIC -o .libs/confuse.o
confuse.c: In function 'cfg_init':
confuse.c:1112: warning: implicit declaration of function 'setlocale'
confuse.c:1112: error: 'LC_MESSAGES' undeclared (first use in this function)
confuse.c:1112: error: (Each undeclared identifier is reported only once
confuse.c:1112: error: for each function it appears in.)
confuse.c:1113: error: 'LC_CTYPE' undeclared (first use in this function)

because locale.h is only ever included by libintl.h when optimisations are turned off, and by side effect rather than rule, an explicit locale.h inclusion is needed.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-09-01 12:06:29 UTC
Created attachment 164228 [details, diff]
confuse-2.6-O0.patch
Comment 2 MATSUU Takuto (RETIRED) gentoo-dev 2008-09-15 01:39:52 UTC
fixed in cvs.