<?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>1907</bug_id>
          
          <creation_ts>2012-01-17 01:45:02 +0000</creation_ts>
          <short_desc>(YOCTO 1.2)LSB 4.1: /tset/LSB.os/network/gethostbyaddr/T.gethostbyaddr 2</short_desc>
          <delta_ts>2012-03-13 07:38:09 +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.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P2)Development 100%</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xiaofeng Yan">Xiaofeng.yan</reporter>
          <assigned_to name="Xiaofeng Yan">Xiaofeng.yan</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>18175</commentid>
    <comment_count>0</comment_count>
    <who name="Xiaofeng Yan">Xiaofeng.yan</who>
    <bug_when>2012-01-17 01:45:02 +0000</bug_when>
    <thetext>LSB test suite(4.1) complain &quot;Checks gethostbyaddr for h_errno value HOST_NOT_FOUND
h_errno was set to 3
&quot;
A part of codes about this error is as follow:
......
h_errno=0;
    if((host=gethostbyaddr((struct in_addr *)&amp;myaddr.sin_addr.s_addr,(socklen_t)sizeof(myaddr),AF_INET)) == NULL)
    {
......</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18176</commentid>
    <comment_count>1</comment_count>
    <who name="Xiaofeng Yan">Xiaofeng.yan</who>
    <bug_when>2012-01-17 01:56:35 +0000</bug_when>
    <thetext>LSB want to get value of h_errno as &quot;1&quot; but get &quot;3&quot;.

Cause:
No daemon progress &quot;avahi-daemon&quot; when system starting up.
&quot;gethostbyaddr&quot; will search file &quot;/var/run/avahi-daemon/socket&quot; but there is no this file which is created by avahi-daemon. 

Solution:
Method 1:
Create a link to daemon progress &quot;avahi-daemon&quot; in /etc/rc5.d.
Problem:
All image will include this progress when starting up.

Method 2:
Start &quot;avahi-daemon&quot; in LSB_Setup.sh.
Problem:
This progress will exist when only running LSB_Setup.sh but this image will not meet lsb requirement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18177</commentid>
    <comment_count>2</comment_count>
    <who name="Xiaofeng Yan">Xiaofeng.yan</who>
    <bug_when>2012-01-17 02:07:00 +0000</bug_when>
    <thetext>Hi Saul,

Do you think which method is better above? If I select method 1, then I didn&apos;t know whether people like it really or not?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18494</commentid>
    <comment_count>3</comment_count>
    <who name="Xiaofeng Yan">Xiaofeng.yan</who>
    <bug_when>2012-02-05 23:14:51 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6cafc0011e147dd378e4f24643d944e3ac48e206
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=bb5704a4ee308b57db970cf45e806bafd24bcf5b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>