>----Ursprungligt meddelande----
>Från: [EMAIL PROTECTED]
>Datum: 2008/03/28 20:46
>Till: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>, "LFS Support List"<lfs-
[EMAIL PROTECTED]>
>Ärende: Re: Re: problem perl section 6.23 LFS 6.3
>
>On Fri, Mar 28, 2008 at 12:11 PM, [EMAIL PROTECTED]
><[EMAIL PROTECTED]> wrote:
>>
>>
>> >----Ursprungligt meddelande----
>> >Från: [EMAIL PROTECTED]
>> >Datum: 2008/03/27 21:37
>> >Till: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>, "LFS Support List"<lfs-
>> [EMAIL PROTECTED]>
>> >Ärende: Re: problem perl section 6.23 LFS 6.3
>>
>> >
>> >On Thu, Mar 27, 2008 at 08:58:06PM +0100, [EMAIL PROTECTED] wrote:
>> >> Hello!
>> >>
>> >> I have a problem i cannot solv on my own, therfor i am turning to you
guys
>> and
>> >> hope for a little help :-)
>> >>
>> >> make test is ending with an lib/Net/hostent FAILED at test 4
>> >>
>> >> when i do ./TEST /lib/Net/hostent.t it says Failed test `gethostbyaddr
>> (`127.
>> >> 0.0.1) in /lib/Net/hostent.t at line 42.
>> >>
>> >> Im building LFS on a compac D51S
>> >>
>> >> Have anyone got a solution to this problem or can point me in the right
>> >> direction.
>> >>
>> >> Thanks in advance.
>> >>
>> >> /Anders Bolinder
>> >>
>> > I do believe you missed the instruction at the beginning of section
>> >6.23.1, just before the sed (this might have funny formatting, I'm
>> >pasting from lynx)
>> >
>> >6.23.1. Installation of Perl
>> >
>> > First create a basic /etc/hosts file to be referenced in one of
>> >Perl's configuration files
>> > as well as the optional testsuite:
>> >echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
>
>Did you create nsswitch.conf in the glibc instructions? It should read:
>
>/etc/nsswitch.conf:
>...
>hosts: files dns
>...
>
>That might not cause failures, but it could. Could you also try
>compiling and running this program:
>
>$ cat > gethost.c << "EOF"
>#include <stdio.h>
>#include <stdlib.h>
>#include <netdb.h>
>#include <sys/socket.h>
>#include <netinet/in.h>
>#include <arpa/inet.h>
>
>int main(int argc, char *argv[])
>{
> struct in_addr addr;
> struct hostent *he;
> char *ip;
>
> if (argc > 1)
> ip = argv[1];
> else
> ip = "127.0.0.1";
>
> if (!inet_aton(ip, &addr)) {
> fprintf(stderr, "%s: Invalid address\n", ip);
> exit(1);
> }
>
> he = gethostbyaddr(&addr, sizeof(addr), AF_INET);
> if (!he) {
> herror("gethostbyaddr");
> exit(1);
> }
> printf("%s hostname: %s\n", ip, he->h_name);
>
> return 0;
>}
>EOF
>$ gcc -o gethost gethost.c
>$ ./gethost 127.0.0.1
>$ getent hosts 127.0.0.1
>
>--
>Dan
>--
>http://linuxfromscratch.org/mailman/listinfo/lfs-support
>FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>Unsubscribe: See the above information page
>
Thanks :-) ive missed the nsswitch.conf, strange im pretty sure i didnt, ;)
Now i can happily continue with my LFS System.
=)
thank god for support lists :-)
/Anders Bolinder
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page