<?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>4553</bug_id>
          
          <creation_ts>2013-05-24 09:51:16 +0000</creation_ts>
          <short_desc>cracklib: do_compile failed on RHEL5.8 in which glibc version less than 2.9</short_desc>
          <delta_ts>2013-05-30 03:23:49 +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>1.5</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sen.zhang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>33268</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-05-24 09:51:16 +0000</bug_when>
    <thetext>*env
Build Configuration:
BB_VERSION        = &quot;1.19.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;RedHatEnterpriseClient-5.8&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4+snapshot-20130524&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;hongxu-0524:e8197722de1f6006ceae0d4266de91c1db7278e3&quot;

Update python to 2.6
glibc&apos;s version: glibc-2.5-81

*problem
do_compile cracklib failed
...
| ../lib/.libs/libcrack.so: undefined reference to `be64toh&apos;
| ../lib/.libs/libcrack.so: undefined reference to `htobe16&apos;
| ../lib/.libs/libcrack.so: undefined reference to `htobe32&apos;
| ../lib/.libs/libcrack.so: undefined reference to `htobe64&apos;
| ../lib/.libs/libcrack.so: undefined reference to `be32toh&apos;
| ../lib/.libs/libcrack.so: undefined reference to `be16toh&apos;
| collect2: ld returned 1 exit status
...

*analysis
cracklib invokes C functions `be16toh/be32toh/be64toh/htobe16/htobe32/htobe64&apos;
to fix endian issue on multi platform, but these functions are nonstandard
which were added to glibc in version 2.9. So do_compile failed while host&apos;s
glibc version &lt; 2.9

*solution
Use standard `htons/htonl/ntohs/ntohl&apos; instead. For the `be64toh/htobe64&apos;,
there is not similar functions, we define `ntohll/htonll&apos; on local to replace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33380</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-05-30 03:23:49 +0000</bug_when>
    <thetext>There are two solution to fix this issue, and Mark Hatle&apos;s is better.

Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5a607c1e48c6921ceaf393cd71a36cf5ace2f3fa</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>