Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: problems with libdnet module

by WalkingZero (Sexton)
on May 31, 2008 at 13:18 UTC ( #689425=note: print w/ replies, xml ) Need Help??


in reply to Re: problems with libdnet module
in thread problems with libdnet module

Yes, I even tried reloading the libdumnet-dev package. I still get the above output. Is there a good alternative you can recommend to Net::Write::Layer2 for writing frames to the Wire if Net::Libdnet is truly broken? Thanks for your input so far.

UPDATE: Okaaaay, I'm getting myself confused now. I went back and tried "install Net::Write::Layer2" again and it said it was up to date. When I check CPAN it does not list libdnet as a dependency...I wonder why it was trying to throw libdnet in there earlier. It looks like this is a moot point now though.


Comment on Re^2: problems with libdnet module
Re^3: problems with libdnet module
by Corion (Pope) on May 31, 2008 at 13:26 UTC

    I haven't used this, but Net::Pcap has a pcap_sendpacket function which could allow writing raw frames to an interface.

      I did not know that, thank you!
Re^3: problems with libdnet module
by tirwhan (Abbot) on May 31, 2008 at 13:38 UTC

    Look at the error you get, specifically Libdnet.xs:35:18: error: dnet.h: No such file or directory. Looking at the contents of libdumbnet-dev (via "dpkg -L libdumbnet-dev") one can see that it does indeed not include dnet.h, but it _does_ include dumbnet.h. Replacing dnet.h with dumbnet.h in Libdnet.xs, and -ldnet with -ldumbnet in Makefile.PL makes the module successfully compile and pass tests on my machine (Kubuntu Gutsy Gibbon). Incidentally, there is a bug report on rt.cpan.org which shows someone else had the same issue. If these changes fix the compile for you then you could add this to the bug report to help others who may have the same problem


    All dogma is stupid.
      You, sir, are the kind of person that makes the Monastery a wonderful place. Not only did you assist me, but you also educated me a little bit, something I ALWAYS appreciate. Thank you very much

      Update: I sent off an email to rt-cpan about the issue/fix, and have of course given you full credit. Cheers mait ;)
      Installation under Ubuntu/Debian is documented here: http://cpansearch.perl.org/src/GOMOR/Net-Libdnet-0.96/README

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://689425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-11-26 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (171 votes), past polls