[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gethostbyname() problem



> From: =?ks_c_5601-1987?B?wMy47cjG?= <leemh@xxxxxxx.kr>
> Date: Mon, 20 Aug 2001 20:45:59 +0900

> 1.
> The function named "gethostbyname" in my LX developer boad 
> software doesn't work. It return NULL, and errno is 2. 
> I make /etc/resolv.conf, buf not worked.

Yes, sorry, there's an installation bug: a shared library needed
for DNS lookups is not included; libnss_dns.so.2 is not enough.
Please apply the following patch, then do "rm cramfs.img" and
"make images".

*** Makefile~	Wed Jun 27 10:11:06 2001
--- Makefile	Thu Aug 23 19:20:24 2001
*************** cramfs.img:	$(shell find $(prefix) -type
*** 333,339 ****
  			     "files #####" ; \
   			DSOs=`find-needed-shlibs.pl $(prefix)`; \
   			test -z "$$DSOs" \
!  			  || DSOs="$$DSOs libnss_dns.so.2 libnss_files.so.2"; \
   			for DSO in $$DSOs; do \
   				strip-cris $(prefix)/lib/$$DSO || exit 1; \
   				grep '^Include: '$$DSO'$$' \
--- 333,339 ----
  			     "files #####" ; \
   			DSOs=`find-needed-shlibs.pl $(prefix)`; \
   			test -z "$$DSOs" \
!  			  || DSOs="$$DSOs libnss_dns.so.2 libnss_files.so.2 libresolv.so.2"; \
   			for DSO in $$DSOs; do \
   				strip-cris $(prefix)/lib/$$DSO || exit 1; \
   				grep '^Include: '$$DSO'$$' \

brgds, H-P