LSB test suite(4.1) complain "Checks gethostbyaddr for h_errno value HOST_NOT_FOUND h_errno was set to 3 " A part of codes about this error is as follow: ...... h_errno=0; if((host=gethostbyaddr((struct in_addr *)&myaddr.sin_addr.s_addr,(socklen_t)sizeof(myaddr),AF_INET)) == NULL) { ......
LSB want to get value of h_errno as "1" but get "3". Cause: No daemon progress "avahi-daemon" when system starting up. "gethostbyaddr" will search file "/var/run/avahi-daemon/socket" but there is no this file which is created by avahi-daemon. Solution: Method 1: Create a link to daemon progress "avahi-daemon" in /etc/rc5.d. Problem: All image will include this progress when starting up. Method 2: Start "avahi-daemon" in LSB_Setup.sh. Problem: This progress will exist when only running LSB_Setup.sh but this image will not meet lsb requirement.
Hi Saul, Do you think which method is better above? If I select method 1, then I didn't know whether people like it really or not?
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6cafc0011e147dd378e4f24643d944e3ac48e206 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=bb5704a4ee308b57db970cf45e806bafd24bcf5b