Skip Menu |

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id: 76753
Status: rejected
Priority: 0/
Queue: Time-HiRes

People
Owner: Nobody in particular
Requestors: lxp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.9725
Fixed in: (no value)



Subject: several tests fail: "undefined symbol: clock_gettime"

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #76753] several tests fail: "undefined symbol: clock_gettime"
Date: Mon, 23 Apr 2012 15:26:39 +0100
To: Alex Peters via RT <bug-Time-HiRes [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Alex Peters via RT wrote: Show quoted text
>Full test details, followed by "perl -V" output:
Would you please show me a full trace for configuring ("perl Makefile.PL") and building ("make") the module? This looks like a library-finding problem, which usually arises at configure time. -zefram
On Tue Apr 24 00:26:58 2012, zefram@fysh.org wrote: Show quoted text
> Would you please show me a full trace for configuring ("perl > Makefile.PL") and building ("make") the module?
$ perl Makefile.PL Configuring Time::HiRes... Using hints hints/linux.pl... Extra libraries: -lrt... Have syscall()... looking for syscall.h... found <syscall.h>. 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()... found. Looking for clock_getres()... found. Looking for clock_nanosleep()... found. Looking for clock()... 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...found. Trying struct stat st_uatime...NOT found. You seem to have stat() subsecond timestamps. (Your struct stat has them, but the filesystems must help.) Checking if your kit is complete... Looks good Processing hints file hints/linux.pl Note (probably harmless): No library found for -lrt Writing Makefile for Time::HiRes Writing MYMETA.yml and MYMETA.json Now you may issue 'make'. Do not forget also 'make test'. $ make cp HiRes.pm blib/lib/Time/HiRes.pm /home/lx/perl5/perlbrew/perls/perl-5.12.3/bin/perl /home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/ExtUtils/xsubpp -typemap /home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/ExtUtils/typemap -typemap typemap HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.9725\" -DXS_VERSION=\"1.9725\" -fPIC "-I/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux/CORE" -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=4 -DATLEASTFIVEOHOHFIVE HiRes.c Running Mkbootstrap for Time::HiRes () chmod 644 HiRes.bs rm -f blib/arch/auto/Time/HiRes/HiRes.so cc -shared -O2 -L/usr/local/lib -fstack-protector HiRes.o -o blib/arch/auto/Time/HiRes/HiRes.so \ \ chmod 755 blib/arch/auto/Time/HiRes/HiRes.so cp HiRes.bs blib/arch/auto/Time/HiRes/HiRes.bs chmod 644 blib/arch/auto/Time/HiRes/HiRes.bs Manifying blib/man3/Time::HiRes.3
Subject: Re: [rt.cpan.org #76753] several tests fail: "undefined symbol: clock_gettime"
Date: Tue, 24 Apr 2012 13:13:22 +0100
To: Alex Peters via RT <bug-Time-HiRes [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Alex Peters via RT wrote: Show quoted text
>Extra libraries: -lrt...
... Show quoted text
>Note (probably harmless): No library found for -lrt
Seen this before, with the new "multiarch" library layout being sprung on older Perls or old installations. The manual workaround is to hand-edit the "libpth" entries in $archlib/Config.pm and $archlib/Config_heavy.pl to include the correct directories for your system. I'm hoping for ExtUtils::MakeMaker to acquire a workaround, but it doesn't have one yet. -zefram
Thanks for the explanation and workaround. On Tue Apr 24 22:13:37 2012, zefram@fysh.org wrote: Show quoted text
> I'm hoping for ExtUtils::MakeMaker to acquire a workaround, > but it doesn't have one yet.
Out of curiosity, is there an RT ticket for this EU::MM work which I can watch?
Subject: Re: [rt.cpan.org #76753] several tests fail: "undefined symbol: clock_gettime"
Date: Wed, 25 Apr 2012 12:41:05 +0100
To: Alex Peters via RT <bug-Time-HiRes [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Alex Peters via RT wrote: Show quoted text
>Out of curiosity, is there an RT ticket for this EU::MM work >which I can watch?
Yes, [rt.cpan.org #69318]. https://rt.cpan.org/Ticket/Display.html?id=69318 -zefram
On Wed Apr 25 21:41:19 2012, zefram@fysh.org wrote: Show quoted text
>> Out of curiosity, is there an RT ticket for this EU::MM work >> which I can watch?
> > Yes, [rt.cpan.org #69318].
Thanks; I've added a link between this ticket and that one. In the meantime, the Makefile.PL for XML::Parser seems to provide for this problem by accepting a LIBPATH argument, e.g.: $ perl Makefile.PL EXPATLIBPATH=/usr/lib/x86_64-linux-gnu I don't know if similar functionality could be offered by the Makefile.PL for Time::HiRes, but if so, it would possibly alleviate the need to hand-edit Config.pm and Config_heavy.pl. Relevant discussion, if interested: https://rt.cpan.org/Ticket/Display.html?id=76754
Is this anymore relevant / reproducible? If not, I am going to soon close this ticket.
On Sun Sep 25 13:19:51 2016, JHI wrote: Show quoted text
> Is this anymore relevant / reproducible? If not, I am going to soon > close this ticket.
No responses, so closing.