In the "Build It" step when I execute this command - '$ rpmbuild ba SPECS/icinga.spec' I am getting bellow error
perlxsi.c: In function 'xs_init':
perlxsi.c:30: error: 'my_perl' undeclared (first use in this function)
perlxsi.c:30: error: (Each undeclared identifier is reported only once
perlxsi.c:30: error: for each function it appears in.)
perlxsi.c:30: warning: passing argument 3 of 'Perl_newXS' from incompatible pointer type
make[1]: * [perlxsi.o] Error 1
make[1]: * Waiting for unfinished jobs....
make[1]: Leaving directory `/etrade/pkgs/PKGs/BUILD/icinga-1.13.3/base'
make: ***\ [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.20235 (%build)
something to do with perl version?
here is the perl version on my node -
$perl -v
This is perl, v5.8.8 built for i686-linux-thread-multi
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11153
Created by eticinga on 2016-02-12 20:29:33 +00:00
Assignee: (none) Status: New Target Version: (none) Last Update: 2016-02-12 20:29:33 +00:00 (in Redmine)
I am following this wiki to create a Icinga rpm from source (icinga-1.13.3)
https://wiki.icinga.org/display/howtos/Build+Icinga+RPMs
In the "Build It" step when I execute this command - '$ rpmbuild
ba SPECS/icinga.spec' I am getting bellow errorperlxsi.c: In function 'xs_init': perlxsi.c:30: error: 'my_perl' undeclared (first use in this function) perlxsi.c:30: error: (Each undeclared identifier is reported only once perlxsi.c:30: error: for each function it appears in.) perlxsi.c:30: warning: passing argument 3 of 'Perl_newXS' from incompatible pointer type make[1]: * [perlxsi.o] Error 1 make[1]: * Waiting for unfinished jobs.... make[1]: Leaving directory `/etrade/pkgs/PKGs/BUILD/icinga-1.13.3/base' make: ***\ [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.20235 (%build)
something to do with perl version?
here is the perl version on my node -
$perl -v
This is perl, v5.8.8 built for i686-linux-thread-multi
Copyright 1987-2006, Larry Wall //
Appreciate your help.