On Thu, Mar 12, 2015 at 04:22:00PM +0100, Martin Møller Skarbiniks Pedersen wrote:
I am trying to build a rpm but now I got a perl problem ? It looks like my perl installation is somehow broken currently. Pleas advise. This is perl 5, version 18, subversion 4 (v5.18.4) built for x86_64-linux-thread-multi (with 23 registered patches, see perl -V for more detail) [...]
$ perl -MCPAN -e shell Attempt to reload Scalar/Util.pm aborted. Compilation failed in require at /usr/local/share/perl5/Safe.pm line 4.
...
$ rpmbuild -ba moon-buggy.spec [...]
- autoreconf -if
Perl API version v5.16.0 of threads does not match v5.18.0 at /usr/share/perl5/XSLoader.pm line 92.
At a rough guess I expect that you have some perl modules locally built using perl 5.16.0 stored under /usr/local/share/perl5, that are not binary compatible with perl 5.18.0 (XS modules are not in general binary compatible across major perl releases).
Note that fedora-supplied perl modules installed using yum will go under /usr/share/perl5/vendor_perl rather than under /usr/local/share/.
Have a look under /usr/local/share/perl5 and see what's there. You may have to delete what's there.