[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian 9.13 perl-5.24-1 compile from source dist/Time-HiRes Warning: No Makefile!



debian-user:

I have a computer with Debian:

$ cat /etc/debian_version ; uname -a
9.13
Linux tinkywinky 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 GNU/Linux


I have installed the source code for the 'perl' package:

$ apt-get source perl
<snip>


When I attempt to compile the package per the instructions in INSTALL:

$ cd perl-5.24.1

$ sh Configure -de
<snip>

$ make
<snip>
./miniperl -Ilib make_ext.pl lib/auto/Time/HiRes/HiRes.so MAKE="make" LIBPERL_A=libperl.a LINKTYPE=dynamic
Makefile.PL: The "xdefine" exists, skipping the configure step.
("/home/dpchrist/src/debian-9/perl-5.24.1/miniperl Makefile.PL --configure" to force the configure step)
Warning: No Makefile!
make[1]: Entering directory '/home/dpchrist/src/debian-9/perl-5.24.1/dist/Time-HiRes'
make[1]: *** No rule to make target 'all'.  Stop.
make[1]: Leaving directory '/home/dpchrist/src/debian-9/perl-5.24.1/dist/Time-HiRes' make[1]: Entering directory '/home/dpchrist/src/debian-9/perl-5.24.1/dist/Time-HiRes'
make[1]: *** No rule to make target 'all'.  Stop.
make[1]: Leaving directory '/home/dpchrist/src/debian-9/perl-5.24.1/dist/Time-HiRes'
Unsuccessful make(dist/Time-HiRes): code=512 at make_ext.pl line 569.
makefile:600: recipe for target 'lib/auto/Time/HiRes/HiRes.so' failed
make: *** [lib/auto/Time/HiRes/HiRes.so] Error 2


Looking at dist/Time-HiRes, I see 'xdefine'.  I do not see 'Makefile':

$ ls -AF1 dist/Time-HiRes/
Changes
HiRes.pm
HiRes.xs
Makefile.PL
fallback/
hints/
ppport.h
t/
typemap
xdefine


Comparing the attempted build for Time-HiRes against other successful module builds, I see this message for Time-HiRes:

Makefile.PL: The "xdefine" exists, skipping the configure step.


The above messages was emitted by the main() subroutine in dist/Time-HiRes/Makefile.PL.


Changing into the module directory and running the suggested command (with an appropriate -I option):

$ cd dist/Time-HiRes

$ /home/dpchrist/src/debian-9/perl-5.24.1/miniperl -I../../lib Makefile.PL --configure
Configuring Time::HiRes...
Using hints hints/linux.pl...
Extra libraries: -lrt...
Have syscall()... looking for syscall.h... NOT found.
Looking for gettimeofday()... found.
Looking for setitimer()... found.
Looking for getitimer()... found.
You have interval timers (both setitimer and getitimer).
Looking for ualarm()... found.
Looking for usleep()... found.
Looking for nanosleep()... testing... found.
You can mix subsecond sleeps with signals, if you want to.
(It's still not portable, though.)
Looking for clock_gettime()... NOT found.
Looking for clock_getres()... NOT found.
Looking for clock_nanosleep()... NOT found.
Looking for clock()... NOT found.
Looking for stat() subsecond timestamps...
Trying struct stat st_atimespec.tv_nsec...NOT found.
Trying struct stat st_atimensec...NOT found.
Trying struct stat st_atime_n...NOT found.
Trying struct stat st_atim.tv_nsec...NOT found.
Trying struct stat st_uatime...NOT found.
You do not seem to have stat subsecond timestamps.
Can't load module B, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the B module statically linked into it.)
 at /home/dpchrist/src/debian-9/perl-5.24.1/lib/B.pm line 28.
BEGIN failed--compilation aborted at /home/dpchrist/src/debian-9/perl-5.24.1/lib/B.pm line 28. Compilation failed in require at /home/dpchrist/src/debian-9/perl-5.24.1/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm line 1275.


Suggestions?


David


Reply to: