Subject: | Data::Alias does not work with perl build with systemtap |
Reproducer:
perl -MData::Alias -le 1
Can't load '/usr/local/lib64/perl5/auto/Data/Alias/Alias.so' for module
Data::Alias: /usr/local/lib64/perl5/auto/Data/Alias/A
lias.so: undefined symbol: perl_sub__return_semaphore at
/usr/lib64/perl5/DynaLoader.pm line 200.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
The problem here seems to be that Data::Alias cheats by defining
PERL_CORE and using POPSUB. It's Data::Alias' problem and can easily be
worked around, but it should be probably fixed in upstream. For
workaround see: https://bugzilla.redhat.com/show_bug.cgi?id=695561#c9
We didn't see this strange behaviour in other XS modules.