<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>236347</bug_id>
          
          <creation_ts>2008-09-01 12:05 0000</creation_ts>
          <short_desc>dev-libs/confuse: fix building with optimisations turned off</short_desc>
          <delta_ts>2008-09-15 01:39:52 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>flameeyes@gentoo.org</reporter>
          <assigned_to>matsuu@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-09-01 12:05:57 0000</bug_when>
            <thetext>The attached patch makes confuse build when optimisations are turned off. Without this it fails like this:

 i686-pc-linux-gnu-gcc -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -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 &apos;cfg_init&apos;:
confuse.c:1112: warning: implicit declaration of function &apos;setlocale&apos;
confuse.c:1112: error: &apos;LC_MESSAGES&apos; 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: &apos;LC_CTYPE&apos; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-09-01 12:06:29 0000</bug_when>
            <thetext>Created an attachment (id=164228)
confuse-2.6-O0.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matsuu@gentoo.org</who>
            <bug_when>2008-09-15 01:39:52 0000</bug_when>
            <thetext>fixed in cvs.
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>164228</attachid>
            <date>2008-09-01 12:06 0000</date>
            <desc>confuse-2.6-O0.patch</desc>
            <filename>confuse-2.6-O0.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHNyYy9jb25mdXNlLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3NvdXJjZXMvY29uZnVz
ZS9jb25mdXNlL3NyYy9jb25mdXNlLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMzYKZGlmZiAt
dSAtQiAtcjEuMzYgY29uZnVzZS5jCi0tLSBzcmMvY29uZnVzZS5jCTEzIE9jdCAyMDA3IDIwOjAx
OjQ1IC0wMDAwCTEuMzYKKysrIHNyYy9jb25mdXNlLmMJMSBTZXAgMjAwOCAxMTo1NzozMCAtMDAw
MApAQCAtNDEsNiArNDEsNyBAQAogI2RlZmluZSBpc19zZXQoZiwgeCkgKCgoZikgJiAoeCkpID09
IChmKSkKIAogI2lmIGRlZmluZWQoRU5BQkxFX05MUykgJiYgZGVmaW5lZChIQVZFX0dFVFRFWFQp
CisjIGluY2x1ZGUgPGxvY2FsZS5oPgogIyBpbmNsdWRlIDxsaWJpbnRsLmg+CiAjIGRlZmluZSBf
KHN0cikgZGdldHRleHQoUEFDS0FHRSwgc3RyKQogI2Vsc2UK
</data>        

          </attachment>
    </bug>

</bugzilla>