Click here to get back home

how do I package a CPAN module?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
how do I package a CPAN module? none 10-23-2004
Posted by none on October 23, 2004, 1:13 pm
Please log in for more thread options
I have designed a perl module for cpan but cannot get the h2xs system
to work.

If I use the h2xs program for example, and try to make that, it gives
me this error below. If I try converting it to use my custom module, I
get the same error. What am I doing wrong? This is my first CPAN
contribution.

cp Access.pm blib/lib/Logfile/Access.pm
AutoSplitting blib/lib/Logfile/Access.pm
(blib/lib/auto/Logfile/Access)
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.0/ExtUtils/typemap Access.xs > Access.xsc && mv
Access.xsc Access.c
Please specify prototyping behavior for Access.xs (see perlxs manual)
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-g -DVERSION="0.01" -DXS_VERSION="0.01" -fPIC
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Access.c
Access.xs:7:27: Logfile::Access: No such file or directory
make: *** [Access.o] Error 1


Posted by Jim Keenan on October 23, 2004, 9:43 pm
Please log in for more thread options
none wrote:

> I have designed a perl module for cpan but cannot get the h2xs system
> to work.
>
> If I use the h2xs program for example, and try to make that, it gives
> me this error below. If I try converting it to use my custom module, I
> get the same error. What am I doing wrong? This is my first CPAN
> contribution.
>
Points of clarification:

1. Does your module actually use C code?
2. What specific h2xs command did you use?

Reasons for these points: h2xs has, AFAICT, two quite different common
usages. First (its originally intended use) is to generate the
structure needed to import C code. Second (a humbler but more common
use) is to use it with the -X option to simply generate the basic file
structure of a proper CPAN distribution, i.e., a MANIFEST, a README, a
..pm file, a .t file, etc.

jimk


Similar ThreadsPosted
Newbie Q: how to make a cpan package August 30, 2005, 1:59 am
How do I install this package using ppm? September 28, 2005, 2:44 pm
how to package perl applications? November 16, 2004, 9:58 am
lwp package head question August 16, 2005, 10:47 am
Getting a module on CPAN June 7, 2007, 4:28 pm
Mail::Internet Debian Package January 9, 2005, 3:29 pm
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
ppm can't find any package that provide IO for Net-Stomp July 1, 2008, 4:58 pm
adding a new module to CPAN September 30, 2004, 3:06 am
It's not PHP, is it? (potential new CPAN module) July 21, 2007, 3:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap