The Samba-Bugzilla – Bug 5443
ld: Unsatisfied symbol "if_nametoindex" in file lib/interface.o
Last modified: 2008-05-23 07:12:39 UTC
Problem with building Samba_3_2_test on HP-UX 11.11 and 11.23 (see the build farm). Problem is we are calling
If_nametointerface(), but are not setting the '-lipv6' in the LIBS in Makefile. I think when we do our test for IPV6 functionality, that that would be a good place to also add this library, if HP-UX...
From the man page for if_nameinterface() on HP-UX:
if_nameindex(), if_nametoindex(), if_indextoname(), if_freenameindex()
- functions that map between an interface name and index
The function prototypes and struct if_nameindex are defined in
<net/if6.h>. Applications are not required to include this header
file explicitly; it is automatically included by <net/if.h>.
Applications using these functions should link with -lipv6.