Libdnet.xs:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘TunHandle’

If you can fix that, the other errors will also be fixed. Unfortunately, it's not apparent to me what the problem is. The relevant section of Libdnet.xs is:
39: typedef blob_t Blob; 40: typedef eth_addr_t EthAddr; 41: typedef eth_t EthHandle; 42: typedef intf_t IntfHandle; 43: typedef arp_t ArpHandle; 44: typedef fw_t FwHandle; 45: typedef route_t RouteHandle; 46: typedef tun_t TunHandle; 47: typedef ip_t IpHandle; 48: typedef struct intf_entry IntfEntry; 49: typedef struct arp_entry ArpEntry; 50: typedef struct fw_rule FwRule; 51: typedef struct route_entry RouteEntry;
So, why does it pick on line 46 ?
Could it be that the run_t type is unknown ? (Perhaps your version of libdnet does not define the type.) But if that were the case, I would have also expected a warning along the lines of "data definition has no type or storage class". Yet I don't see any such warning.

Were there any warnings issued prior to the excerpt you've quoted above ?
Does your dnet.h (or one of the header files included by it) define the run_t type ?

Cheers,
Rob

In reply to Re: libdnet make fails by syphilis
in thread libdnet make fails by payload101

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.