Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Typemap problem with Time::HiRes compilation

Status
Not open for further replies.

faelord

Technical User
Jan 4, 2002
6
GB
I am attempting to compile the Time::HiRes module on a Redhat Linux 5.2 system running Perl version 5.004_04 doing perl makefile.PL seems to go okay apart from the fact my system lacks ualarm but it assures me it will cope:

Code:
Configuring...
 
Looking for gettimeofday()...
You have gettimeofday().
 
Looking for setitimer()...
You have setitimer().
 
Looking for getitimer()...
You have getitimer().
 
You have interval timers.
 
Looking for ualarm()...
/tmp/cca047511.o: In function `main':
/tmp/cca047511.o(.text+0x8): undefined reference to `ualarm'
Whoops! No ualarm()!
We'll manage.

Looking for usleep()...
You have usleep().
 
Writing Makefile for Time::HiRes

However when I then issue the make command it fails due to not finding NV in typemap

Code:
Error: 'NV' not in typemap in HiRes.xs, line 596
Error: 'NV' not in typemap in HiRes.xs, line 623
Error: 'NV' not in typemap in HiRes.xs, line 649
Error: 'NV' not in typemap in HiRes.xs, line 669
Error: 'NV' not in typemap in HiRes.xs, line 670
Error: 'NV' not in typemap in HiRes.xs, line 678
.. etc

Could someone please assist?
 
Well, this is way over my head. 'NV' is Perl's opcode variable type for a double. If you care to know what that means read the perlguts perldoc (not that I have, I just know it exists).

I suggest that you post your question at either the Perl Monks site ( or at one of the mailinglist at perl.org ( There are Perl developers that monitor those lists and could explain the problem better. Be prepared to catch some flack for running such an old version of Perl (that might be related to the problem, btw. Perhaps you just need to upgrade Perl).

jaa
 
Faelord,

You need to be sure that you're compiling any extensions to Perl with the same compiler that was used to build Perl in the first place.

I would build, test and install the latest stable version of Perl (not just download the binaries) and start from there. Mike
________________________________________________________________

"Experience is the comb that Nature gives us, after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top