Hello,
This spec file provide the an error. Can you help me to fix it?
PLplot.c: In function 'XS_PDL__Graphics__PLplot_plgfci': PLplot.c:85895:25: warning: unused variable 'RETVAL' [-Wunused-variable] 85895 | unsigned int RETVAL; | ^~~~~~ /usr/lib64/perl5/vendor_perl/PDL/PP.pm: In function 'pdl_init_pltr_copy': /usr/lib64/perl5/vendor_perl/PDL/PP.pm:3385:61: warning: array subscript '_7 + -1' is outside the bounds of an interior zero-length array 'struct pdl *[0:]' [-Wzero-length-bounds] 3385 | for(i=0; i<__copy->vtable->npdls; i++) | ~~~~~~~~~~~~~~~~~^~~ In file included from /usr/lib64/perl5/vendor_perl/PDL/PP.pm:1020: /usr/lib64/perl5/vendor_perl/PDL/Core/pdl.h:291:8: note: while referencing 'pdls' 291 | pdl *pdls[np] | ^~~~ /usr/lib64/perl5/vendor_perl/PDL/PP.pm:3385:38: warning: array subscript '_7 + -1' is outside the bounds of an interior zero-length array 'struct pdl *[0:]' [-Wzero-length-bounds] 3385 | for(i=0; i<__copy->vtable->npdls; i++) | ~~~~~~~~~~~~^~~ In file included from /usr/lib64/perl5/vendor_perl/PDL/PP.pm:1020: /usr/lib64/perl5/vendor_perl/PDL/Core/pdl.h:291:8: note: while referencing 'pdls' 291 | pdl *pdls[np] | ^~~~ cc1: some warnings being treated as errors make: *** [Makefile:345: PLplot.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.FwlY8K (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.FwlY8K (%build)
-------------------------------------------------------
Name: perl-PDL-Graphics-PLplot Version: 0.74 Release: 1%{?dist} Summary: PDL::Graphics::PLplot Perl module License: CHECK(Distributable) Group: Development/Libraries URL: http://search.cpan.org/dist/PDL-Graphics-PLplot/ Source0: http://www.cpan.org/modules/by-module/PDL/PDL-Graphics-PLplot-%%7Bversion%7D... BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(PDL) Requires: perl(PDL) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description The interface consists of two levels. A low level interface which maps closely to the PLplot C interface, and a high level, object-oriented interface which is easier to use.
%prep %setup -q -n PDL-Graphics-PLplot-%{version}
%build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} ; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ;
%{_fixperms} $RPM_BUILD_ROOT/*
%check make test
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(-,root,root,-) %doc Changes META.json plplot.pd README %{perl_vendorarch}/auto/* %{perl_vendorarch}/PDL* %{_mandir}/man3/*
%changelog * Sat Jun 19 2021 Patrick Dupre pdupre@gmx.com 0.74-1 - Specfile autogenerated by cpanspec 1.78.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================