[BusyBox] gethostbyname returns NULL
Raghu BK
raghu_bk at hotmail.com
Thu Oct 30 22:03:32 UTC 2003
Hello All:
I found the problem. busybox and DNS were compiled using different
libraries. Busybox was compiled using arm-uclibc and DNS with arm-linux
libraries. When I compiled both using the same libraries, now things are
working just fine!
Thanks,
Raghu
>From: "Raghu BK" <raghu_bk at hotmail.com>
>To: busybox at codepoet.org
>Subject: [BusyBox] gethostbyname returns NULL
>Date: Mon, 27 Oct 2003 20:02:43 +0000
>
>Hello,
>
>I'm new to this mailing list. Let me introduce the project I'm working on
>in brief. We have a custom board based on PXA255, RLTK 8139 ethernet
>controller. I'm using the following version of busybox on Linux version:
>
># busybox
>BusyBox v0.60.2 (2003.03.04-23:49+0000) multi-call binary
>
>Linux Version 2.4.17-rmk3-cot1
>
>Problem Description:
>
>I'm trying to port pdnsd (proxy dns server) to our custom board. On
>invoking pdnsd, it fails to do gethostbyname(), getprotobyname(),
>getservbyname(). The file permissions for the respective files in /etc are
>fine. I wrote a simple program which calls the above mentioned APIs, and my
>simple test program also fails. I see the same failure, these APIs returns
>NULL pointer. Surprisingly strerror(errno) returns "Success" & sometimes it
>returns "Inappropriate ioctl for device" or "job control turned off".
>
>Busybox also uses gethostbyname() API in ping.c file, it does not encounter
>this error. I searched the net for the errors that I'm getting, and there
>were references to similar problems when using busybox. Wonder if anyone on
>this list encountered similar problems, if yes how did you resolve the
>problem. Appreciate your help in resolving this issue, I've been stuck with
>this problem since few days now.
>
>Thanks,
>Raghu
>
>_________________________________________________________________
>Concerned that messages may bounce because your Hotmail account has
>exceeded its 2MB storage limit? Get Hotmail Extra Storage!
>http://join.msn.com/?PAGE=features/es
>
>_______________________________________________
>busybox mailing list
>busybox at mail.busybox.net
>http://busybox.net/mailman/listinfo/busybox
_________________________________________________________________
Fretting that your Hotmail account may expire because you forgot to sign in
enough? Get Hotmail Extra Storage today!
http://join.msn.com/?PAGE=features/es
More information about the busybox
mailing list