Compiling libdnet on Ubuntu 9.10 fails. First failure was the same as post problems with libdnet module with file dnet.h not found. I made the recommended changes to Libdnet.xs and Makefile.PL. I did the perl Makefile.PL and the make which failed with the following errors.

Thanks

make cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict- +aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSE +T_BITS=64 -O2 -g -DVERSION=\"0.92\" -DXS_VERSION=\"0.92\" -fPIC "-I +/usr/lib/perl/5.10/CORE" Libdnet.c Libdnet.xs:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ + before ‘TunHandle’ Libdnet.c: In function ‘XS_Net__Libdnet_dnet_tun_open’: Libdnet.c:1963: error: ‘TunHandle’ undeclared (first use in this funct +ion) Libdnet.c:1963: error: (Each undeclared identifier is reported only on +ce Libdnet.c:1963: error: for each function it appears in.) Libdnet.c:1963: error: ‘RETVAL’ undeclared (first use in this function +) Libdnet.c: In function ‘XS_Net__Libdnet_dnet_tun_fileno’: Libdnet.c:1994: error: ‘TunHandle’ undeclared (first use in this funct +ion) Libdnet.c:1994: error: ‘handle’ undeclared (first use in this function +) Libdnet.c:2000: error: expected expression before ‘)’ token Libdnet.c: In function ‘XS_Net__Libdnet_dnet_tun_name’: Libdnet.c:2028: error: ‘TunHandle’ undeclared (first use in this funct +ion) Libdnet.c:2028: error: ‘handle’ undeclared (first use in this function +) Libdnet.c:2034: error: expected expression before ‘)’ token Libdnet.xs:1208: warning: assignment makes pointer from integer withou +t a cast Libdnet.c: In function ‘XS_Net__Libdnet_dnet_tun_send’: Libdnet.c:2062: error: ‘TunHandle’ undeclared (first use in this funct +ion) Libdnet.c:2062: error: ‘handle’ undeclared (first use in this function +) Libdnet.c:2070: error: expected expression before ‘)’ token Libdnet.c: In function ‘XS_Net__Libdnet_dnet_tun_recv’: Libdnet.c:2098: error: ‘TunHandle’ undeclared (first use in this funct +ion) Libdnet.c:2098: error: ‘handle’ undeclared (first use in this function +) Libdnet.c:2108: error: expected expression before ‘)’ token Libdnet.c: In function ‘XS_Net__Libdnet_dnet_tun_close’: Libdnet.c:2142: error: ‘TunHandle’ undeclared (first use in this funct +ion) Libdnet.c:2142: error: ‘handle’ undeclared (first use in this function +) Libdnet.c:2143: error: ‘RETVAL’ undeclared (first use in this function +) Libdnet.c:2147: error: expected expression before ‘)’ token make: *** [Libdnet.o] Error 1

In reply to 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.