Subject: gethostent()
To: None <netbsd-help@netbsd.org>
From: Wenchi Liao <wliao@midway.uchicago.edu>
List: netbsd-help
Date: 07/16/1999 12:44:16
Compiling nmh-1.0.1 on i386-netbsd-1.4, and running into
some errors with gethostent().
man gethostent returns
GETHOSTBYNAME(3) NetBSD Programmer's Manual GETHOSTBYNAME(3)
NAME
gethostbyname, gethostbyaddr, gethostent, sethostent, endhostent, herror,
hstrerror - get network host entry
LIBRARY
Standard C Library (libc, -lc)
but linking code that uses gethostent() results in a
unreferenced symbol error by ld.
Linking against -lresolv doesn't work, either. Actually, a
quick "nm /usr/lib/lib* | grep -i gethostent" doesn't turn
up anything.
Suggestions?
WL