<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1400</bug_id>
          
          <creation_ts>2011-08-25 02:43:31 +0000</creation_ts>
          <short_desc>gettext compilation failure due to libxml2</short_desc>
          <delta_ts>2011-09-07 17:42:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15748</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-08-25 02:43:31 +0000</bug_when>
    <thetext>If we execute the following command:

$ bitbake libxml2; bitbake gettext

The compilation of gettext would fail. The reason seems that gettext tries to link with the native polluted libxml shared libraries located in /usr/lib.

Anyhow, the command &quot;bitbake libxml2 -c clean; bitbake gettext&quot; would succeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15977</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-09-02 13:44:28 +0000</bug_when>
    <thetext>Gettext does not have any dependency on libxml2 (target version) it does depend on libxml2-native version and will build it first in order to use it.  If you can include log files from the compilation that would be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15985</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-09-02 15:08:18 +0000</bug_when>
    <thetext>You seem to have gotten that turned around, I tried to build gettext without libxml2 (using -c cleansstate) and got a failure, but when I built libxml2, it succedded.  gettext has a configure option --with-included-libxml which should force gettext to use the included one to ensure no dependency issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15988</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-09-02 15:21:33 +0000</bug_when>
    <thetext>Further update, seems that there is also a libcroco which can cause issue if it is present or not.  If its present and libxml2 is not, then the compilation will fail.  There is also a --with-included-libcroco.

I think the correct fix here to ensure we do not cause dependency issues it to use both --with-included-libcroco and --with-include-libxml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16084</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-09-07 17:42:39 +0000</bug_when>
    <thetext>
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e5e6e761d15e42d94836a2153eda13bdbc4f915e

There still might be an issue that needs looking into for removing the internal libraries and using the external version with glib, but right now there might be a circular dependency between glib and gettext.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>