rpm creation of ntp-4.2.8p11 version on centOS 7.5
Posted: 2018/07/18 12:17:13
Hi,
For our project, we need to update the NTP version to ntp-4.2.8p11 as there is lots of vulnerability report for older version which is available with Centos7.5.
Even link local ipv6 doesn't work with ntp-4.2.6p5. (https://bugzilla.redhat.com/show_bug.cgi?id=1321928 )
I am trying to create rpm of ntp-4.2.8 on centos 7.5.
I am able to build manually ( by running configure , make , make install on source code) but when we create rpm , hitting with the following error
Unable to get much of help on following error on net.
In file included from crypto.h:13:0,
from crypto.c:10:
sntp-opts.h:59:3: error: #error option template version mismatches autoopts/options.h header
# error option template version mismatches autoopts/options.h header
^
sntp-opts.h:60:3: error: unknown type name 'Choke'
Choke Me.
^
sntp-opts.h:60:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
Choke Me.
^
sntp-opts.h:90:3: warning: data definition has no type or storage class [enabled by default]
} teOptIndex;
^
sntp-opts.h:90:3: warning: type defaults to 'int' in declaration of 'teOptIndex' [enabled by default]
make[5]: *** [crypto.o] Error 1
make[5]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp'
make[4]: *** [../libsntp.a] Error 2
make[4]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11'
make: *** [all] Error 2
+ exit 0
Has anyone successfully built the ntp-4.2.8 on centos 7.5 ? Please provide the spec file if you're successfully built it.
For our project, we need to update the NTP version to ntp-4.2.8p11 as there is lots of vulnerability report for older version which is available with Centos7.5.
Even link local ipv6 doesn't work with ntp-4.2.6p5. (https://bugzilla.redhat.com/show_bug.cgi?id=1321928 )
I am trying to create rpm of ntp-4.2.8 on centos 7.5.
I am able to build manually ( by running configure , make , make install on source code) but when we create rpm , hitting with the following error
Unable to get much of help on following error on net.
In file included from crypto.h:13:0,
from crypto.c:10:
sntp-opts.h:59:3: error: #error option template version mismatches autoopts/options.h header
# error option template version mismatches autoopts/options.h header
^
sntp-opts.h:60:3: error: unknown type name 'Choke'
Choke Me.
^
sntp-opts.h:60:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
Choke Me.
^
sntp-opts.h:90:3: warning: data definition has no type or storage class [enabled by default]
} teOptIndex;
^
sntp-opts.h:90:3: warning: type defaults to 'int' in declaration of 'teOptIndex' [enabled by default]
make[5]: *** [crypto.o] Error 1
make[5]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp'
make[4]: *** [../libsntp.a] Error 2
make[4]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11/sntp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/ntp-4.2.8p11'
make: *** [all] Error 2
+ exit 0
Has anyone successfully built the ntp-4.2.8 on centos 7.5 ? Please provide the spec file if you're successfully built it.