[rrd-users] Missing lib options in Makefile.PL for interix

Steven Hartland killing at multiplay.co.uk
Wed Jun 6 01:21:11 CEST 2007

When compiling under interix I needed to edit Makefile.PL from:
'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm -lpng12 -lart_lgpl_2 -lfreetype"},

Without doing so make test failed:
perl-shared> make test
PERL_DL_NONLAZY=1 /bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/base....Can't load '/tmp/rrdtool-1.2.23/bindings/perl-shared/blib/arch/auto/RRDs/RRDs.so' for module RRDs: 
dings/perl-shared/blib/arch/auto/RRDs/RRDs.so: undefined symbol: _png_get_image_width at 
ad-multi/DynaLoader.pm line 230.
 at t/base.t line 20
Compilation failed in require at t/base.t line 20.
BEGIN failed--compilation aborted at t/base.t line 20.
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-7
        Failed 7/7 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  List of Failed
t/base.t       2   512     7   13  1-7
Failed 1/1 test scripts. 7/7 subtests failed.
Files=1, Tests=7,  0 wallclock secs ( 0.11 cusr +  0.05 csys =  0.16 CPU)
Failed 1/1 test programs. 7/7 subtests failed.
*** Error code 2


Pretty sure this change will also be safe under other OS's but will need testing.


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.

More information about the rrd-users mailing list