Hey Inliners!

I've finally gotten off my butt and decided to put a module up on CPAN
that uses an Inline::C backend.  This is my second CPAN module, but my
first experience altogether with Inline.

I'm following the instructions in the Inline pod ('Writing Modules with
Inline') but have reached an impass.

I'm getting a makefile error from what Makefile.PL generates.  The
module compiles and runs just fine in tests and using 'use lib'.
This is Inline 0.44.

This is after the h2xs step:

shell# perl Makefile.PL 
Checking if your kit is complete...
Looks good
WARNING: Setting ABSTRACT via file 'lib/BSD/Jail/Object.pm' failed
 at /usr/local/lib/perl5/5.8.6/ExtUtils/MakeMaker.pm line 606
Writing Makefile for BSD::Jail::Object

shell# make
cp lib/BSD/Jail/Object.pm blib/lib/BSD/Jail/Object.pm
make: don't know how to make Object.inl. Stop



This message comes from the 'pure_all' target.  Experimentation with
building manually yields:

shell# perl -Mblib -MInline=NOISY,_INSTALL_ -MBSD::Jail::Object -e1 0.01
An Inline extension module requires an explicit VERSION.
 at -e line 0
INIT failed--call queue aborted.


Removing the _INSTALL_ Inline flag allows for a successful build (but of
course, in the wrong location.)  Honestly not sure if not being able to
find VERSION is what is causing the "don't know how to make" error, nor
do I know why it can't find VERSION.

Here are the relevant file contents.


Module:
--------------------------------------------------------
  package BSD::Jail::Object;
  use strict;
  use vars qw/ @ISA @EXPORT_OK $VERSION /;
  use Exporter;
  
  $VERSION   = '0.01';
  @ISA       = qw/ Exporter /;
  @EXPORT_OK = qw/ jids /;
  
  use Inline C       => 'DATA',
             NAME    => __PACKAGE__,
             VERSION => $VERSION;

  .... 


also tried being explicit, to make sure __PACKAGE__ wasn't doing
something 'weird', with the same results:

  use Inline C       => 'DATA',
             NAME    => 'BSD::Jail::Object',
             VERSION => '0.01';


Makefile.PL
--------------------------------------------------------
  use 5.008006;
  use Inline::MakeMaker;
  WriteMakefile(
      NAME           => 'BSD::Jail::Object',
      VERSION_FROM   => 'lib/BSD/Jail/Object.pm',
      PREREQ_PM      => {},
      ABSTRACT_FROM  => 'lib/BSD/Jail/Object.pm',
      AUTHOR         => 'Mahlon E. Smith <[EMAIL PROTECTED]>',
  );




Advice appreciated - don't know what I'm missing at this point.

-Mahlon

--
Mahlon E. Smith  
[EMAIL PROTECTED] | http://www.martini.nu/

Attachment: pgpqScjfvXnOo.pgp
Description: PGP signature

Reply via email to