Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Both Net::Lorcon2 and the lorcon library it relies on look very much like abandonware, but on Ubuntu-20.04 I've now built and installed the lorcon library from github and I've also built and installed the Net-Lorcon2-2.03 module from CPAN.

The lorcon library issued a couple of compilation warnings, and neither make check nor make test don't run any tests.
This does not inspire confidence.

However, the Net-Lorcon2-2.03 module from CPAN built cleanly and passed tests, after I had installed a few netlink libraries using the package manager and re-built the lorcon library (which still issued compilation warnings).
NOTE: In addition to the CPAN version of Net-Lorcon2-2.03, there's also a modified version by Bpl.
But I'd like to deal with the CPAN version before I get to Bpl's.

Here is the make test results for Net-Lorcon2-2.03 (from CPAN), perl-5.32.0:
$ make test "/home/sisyphus/perl-5.32.0-d/bin/perl" -MExtUtils::Command::MM -e 'cp +_nonempty' -- Lorcon2.bs blib/arch/auto/Net/Lorcon2/Lorcon2.bs 644 PERL_DL_NONLAZY=1 "/home/sisyphus/perl-5.32.0-d/bin/perl" "-MExtUtils: +:Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; + test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-use.t ........... ok t/02-init.t .......... skipped: Set LORCON_IF and LORCON_INJ to a vali +d interface and injector name to run these tests t/03-device.t ........ skipped: Set LORCON_IF and LORCON_INJ to a vali +d interface and injector name to run these tests t/04-root.t .......... skipped: Set LORCON_IF and LORCON_INJ to a vali +d interface and injector name and run as root to run these tests t/05-pod-coverage.t .. ok t/06-test-pod.t ...... ok All tests successful. Files=6, Tests=3, 1 wallclock secs ( 0.05 usr 0.01 sys + 0.49 cusr + 0.03 csys = 0.58 CPU) Result: PASS
Before I proceed further, I would like to run those skipped tests.
How do I find valid interface and injector names that I can use ? (I have no idea what they are, and no idea if any exist on this system.)
According to lorcon_list_drivers(), drivers named 'madwifing', 'tuntap' and 'mac80211' were found.

Cheers,
Rob

In reply to Re: Help with Lorcon XS library by syphilis
in thread Help with Lorcon XS library by Bpl

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found