wingdog has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to build Time-HiRes-1.49 on a new RH linux 9 system (to try out bricolage), but am having a couple of problems. I'm a Perl Monks newby, so, if I'm unclear (or inept) please feel free to advise.
ENVIRONMENT Version information for perl is: # perl --version This is perl, v5.8.0 built for i386-linux-thread-multi (with 1 registered patch, see perl -V for more detail) PROBLEM(S) Problem 1) # perl -w Makefile.PL fails to find the posix4 library (see "Checking for -lposix4...NOT fou +nd." in output below) Output Configuring Time::HiRes... Checking for libraries... Checking for -lposix4... NOT found. You have no applicable extra libraries. Looking for gettimeofday()... found. Looking for setitimer()... found. Looking for getitimer()... found. You have interval timers (both setitimer and setitimer). Looking for ualarm()... found. Looking for usleep()... found. Looking for nanosleep()... found. You can mix subsecond sleeps with signals. Use of uninitialized value in join or string at /usr/lib/perl5/5.8.0/E +xtUtils/MM_Unix.pm line 3800. Writing Makefile for Time::HiRes Now you may issue 'make'. Do not forget also 'make test'. Problem 2) make fails because the Makefile is improperly formed. # make Makefile:91: *** missing separator. Stop.
WHAT I'VE TRIED
I've grep'ped all of the downloaded files for a clue to what I might be missing (a Perl POSIX library, a linux lib?), but only turned up the following:
# find . -type f -print | xargs fgrep posix ./hints/irix.pl: $self->{CCFLAGS} =~ s/-ansiposix //; ./Changes: - because of nanosleep we probe for -lrt and -lposix4 ./Makefile.PL: push @$LIBS, '-lposix4';
I've looked at the generated Makefile. It has random single quotes sprinkled throughout.

I've built other modules (bricolage requires a slew of them). They have all gone without error.

MY QUESTION
Am I missing something on this one? How do I work around this?

Many thanks, Philip A. Holbert (aka stutz)

edited: Mon Jul 21 16:12:41 2003 by jeffa - formatting

Replies are listed 'Best First'.
Re: building Time-HiRes-1.49
by PodMaster (Abbot) on Jul 21, 2003 at 16:56 UTC
    What is your perl -V?
    Makefile:91: *** missing separator. Stop.
    That is typical if you are not using the same make with which your perl was built (which you should -- perl -V:make, if it says make, then contact whoever built your perl).

    update: just a shot in the dark, but you should make sure you're not bit by the redhat locale problem.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: building Time-HiRes-1.49
by edan (Curate) on Jul 22, 2003 at 07:27 UTC