Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940931 - net-analyzer/rrdtool: building with "perl" but without "graph" renders the RRDs perl module unusable
Summary: net-analyzer/rrdtool: building with "perl" but without "graph" renders the RR...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-06 09:44 UTC by kfm
Modified: 2024-10-06 10:29 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
perl -V output (perl-V.txt,8.04 KB, text/plain)
2024-10-06 09:47 UTC, kfm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2024-10-06 09:44:10 UTC
Since upgrading to perl-5.40.0, I am unable to use the perl API provided by rrdtool.

# qlist -Ive rrdtool perl
dev-lang/perl-5.40.0
net-analyzer/rrdtool-1.9.0

# qlist -e rrdtool | grep '\.pm$'
/usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/RRDs.pm
/usr/lib64/perl5/vendor_perl/5.40/RRDp.pm

# perl -MRRDs -e 1
Can't load '/usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/RRDs/RRDs.so' for module RRDs: /usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/RRDs/RRDs.so: undefined symbol: rrd_xport at /usr/lib64/perl5/5.40/x86_64-linux/DynaLoader.pm line 206.
 at -e line 0.
Compilation failed in require.
BEGIN failed--compilation aborted.

As an additional data point, Arch Linux provides the same versions of perl and rrdtool and exhibits no such problem. I'm not yet sure as to why.
Comment 1 kfm 2024-10-06 09:47:03 UTC
Created attachment 904952 [details]
perl -V output
Comment 2 kfm 2024-10-06 10:19:21 UTC
Fortunately, it's not a 5.40.0 regression. The solution is to have the "perl" USE flag require that the "graph" flag also be enabled. That is, the combination of USE="perl -graph" should not be tolerated.
Comment 3 kfm 2024-10-06 10:25:30 UTC
One more thing. I would strongly advise checking whether this is an issue for the other bindings also (python, ruby, lua, tcl).