Re: How to find ioctl.ph - is my version of perl busted?
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 17:03:33 +0100
Quoth Mark Seger <Mark.Seger@xxxxxx>:
According to perlpaq8, I should be able to "require sys/ioctl.ph" but
when I run my script I get:
Can't locate features.ph in @INC (did you run h2ph?)...
I sure hope I don't have to run h2ph because I'd rather simply know if
ioctl.ph is loadable or not. I'm running on a fairly old system with
perl 5.8.0 and am wondering is this is correct behavior or if my
installation might have gotten corrupted over the years. I can't find
'features' anywhere under the perl tree.
h2ph is not much used any more; a lot of distributions of perl don't
bother installing the .ph files. IIRC h2ph chokes on some of the weirder
stuff in the glibc headers: maybe that's your problem here?
As a rule it's better nowadays to create a proper XS module that uses
the C compiler to #include the headers rather than trying to convert
them into Perl. If this is just a quick-n-dirty job you may find
Inline::C useful.
Ben
--
Joy and Woe are woven fine,
A Clothing for the Soul divine William Blake
Under every grief and pine 'Auguries of Innocence'
Runs a joy with silken twine. ben@xxxxxxxxxxxx
.
- References:
- How to find ioctl.ph - is my version of perl busted?
- From: Mark Seger
- How to find ioctl.ph - is my version of perl busted?
- Prev by Date: fix a per script
- Next by Date: Re: fix a per script
- Previous by thread: Re: How to find ioctl.ph - is my version of perl busted?
- Next by thread: Extracting bits out of huge numbers
- Index(es):