On  9 Dec, Ron Creamer wrote:
> I'm trying to compile..  on my stock Red Hat 6.1 (kernel 2.2.12-20smp) But I
> get a fatal error at the end:
> 
> /usr/lib/libwrap.a(hosts_access.o): In function `host_match':
> hosts_access.o(.text+0x400): undefined reference to `yp_get_default_domain'
> collect2: ld returned 1 exit status
> 
> It sounds like some sort of NIS/YP problem. I went back through my log of
> messages and seem to have remembered this problem before, but I couldn't find
> the solution.
> 
> Any clues/fixes? Thanks
> 

Lets see, on my Debian system:

flyme 514% nm --dynamic /lib/libnss_nis.so.2 | grep yp_get_default_domain
                 U yp_get_default_domain

Try adding '-lnss_nis' to your LDFLAGS.

David S.

> -Ron
> 
> 
> 
> 

Reply via email to