Bug 5443 - ld: Unsatisfied symbol "if_nametoindex" in file lib/interface.o
ld: Unsatisfied symbol "if_nametoindex" in file lib/interface.o
Status: RESOLVED FIXED
Product: Samba 3.2
Classification: Unclassified
Component: Build environment
3.2.0
All HP-UX
: P3 major
: ---
Assigned To: Stefan Metzmacher
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-06 10:50 UTC by Don McCall
Modified: 2008-05-23 07:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don McCall 2008-05-06 10:50:37 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(3N)                                           if_nameindex(3N)

 NAME
      if_nameindex(), if_nametoindex(), if_indextoname(), if_freenameindex()
      - functions that map between an interface name and index

 SYNOPSIS
      #include <net/if.h>
.
.
.
      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.
Comment 1 Stefan Metzmacher 2008-05-23 07:12:39 UTC
fixed