|
Attempting to build and test generates the following error(s):
root-klaatu /.cpan/build/Time-HiRes-1.9707% make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/HiRes....Can't load
'/.cpan/build/Time-HiRes-1.9707/blib/arch/auto/Time/HiRes/HiRes.so'
for module Time::HiRes: ld.so.1: perl: fatal: librt.so.1: open
failed: No such file or directory at
/usr/local/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm line 230.
at t/HiRes.t line 19
Compilation failed in require at t/HiRes.t line 19.
BEGIN failed--compilation aborted at t/HiRes.t line 19.
t/HiRes....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-38
Failed 38/38 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/HiRes.t 2 512 38 75 1-38
Failed 1/1 test scripts. 38/38 subtests failed.
Files=1, Tests=38, 0 wallclock secs ( 0.10 cusr + 0.03 csys = 0.13 CPU)
Failed 1/1 test programs. 38/38 subtests failed.
make: *** [test_dynamic] Error 2
I'm able to successfully build and test by simply commenting out the
declaration of LD_RUN_PATH in the Makefile as below:
# --- MakeMaker const_loadlibs section:
# Time::HiRes might depend on some other libraries:
# See ExtUtils::Liblist for details
#
EXTRALIBS = -lrt
LDLOADLIBS = -lrt
BSLOADLIBS =
#LD_RUN_PATH = /usr/local/lib
librt exists within /lib in solaris. i'm not a programmer! so i've no
idea why LD_RUN_PATH is declared, but the declaration is incorrect.
setting it to /lib works just as well as commenting it out.
|