On 12 March 2015 at 16:50, Dave Mitchell davem@iabyn.com wrote:
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.
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.
Thanks for the suggestion. However I still got the same problem :-(
$ sudo rm -r /usr/local/share/perl5 $ rpmbuild -ba moonbuggy.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2DwCPM + umask 022 + cd /home/mm/rpmbuild/BUILD + cd /home/mm/rpmbuild/BUILD + rm -rf moon-buggy-1.0.51 + /usr/bin/gzip -dc /home/mm/rpmbuild/SOURCES/moon-buggy-1.0.51.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd moon-buggy-1.0.51 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + autoreconf -if *Perl API version v5.16.0 of threads does not match v5.18.0 at /usr/share/perl5/XSLoader.pm line 92.* Compilation failed in require at /usr/share/automake-1.14/Automake/ChannelDefs.pm line 23. BEGIN failed--compilation aborted at /usr/share/automake-1.14/Automake/ChannelDefs.pm line 26. Compilation failed in require at /usr/share/automake-1.14/Automake/Configure_ac.pm line 27. BEGIN failed--compilation aborted at /usr/share/automake-1.14/Automake/Configure_ac.pm line 27. Compilation failed in require at /usr/bin/aclocal line 39. BEGIN failed--compilation aborted at /usr/bin/aclocal line 39. autoreconf: aclocal failed with exit status: 2 error: Bad exit status from /var/tmp/rpm-tmp.2DwCPM (%prep)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.2DwCPM (%prep)
Regards Martin