Re: 1.3.2 does not build with rpmbuild on CentOS 7.3.1611

Quentin Armitage <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Organization The Armitage family
Message-ID <[email protected]>
On Mon, 2016-12-19 at 12:54 +0100, Bernd wrote:

> Hi,
> 
> I just see that 1.3.2 fails to build on CentOS 7.3.1611; that was not an 
> issue on the machine before upgrading.
> 
> [bernd@dhcp144 ~]$ uname -a
> Linux dhcp144.InterDotNet.de 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 
> 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
> 
> [bernd@dhcp144 ~]$ cat /etc/redhat-release
> CentOS Linux release 7.3.1611 (Core)
> 
> [bernd@dhcp144 ~]$ rpm -qa|grep kernel
> kernel-devel-3.10.0-514.2.2.el7.x86_64
> kernel-3.10.0-514.2.2.el7.x86_64
> 
> (...)
> 
> make[2]: Leaving directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/lib'
> make[1]: Leaving directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/lib'
> Making all in keepalived
> make[1]: Entering directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/keepalived'
> Making all in core
> make[2]: Entering directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/keepalived/core'
>    CC       main.o
>    CC       daemon.o
>    CC       pidfile.o
>    CC       layer4.o
>    CC       smtp.o
>    CC       global_data.o
>    CC       global_parser.o
>    CC       process.o
>    CC       namespaces.o
>    AR       libcore.a
> make[2]: Leaving directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/keepalived/core'
> Making all in vrrp
> make[2]: Entering directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/keepalived/vrrp'
>    CC       vrrp_print.o
>    CC       vrrp_daemon.o
> In file included from vrrp_print.c:31:0:
> ./../include/vrrp_iproute.h:32:24: fatal error: linux/mpls.h: No such 
> file or directory
>   #include <linux/mpls.h>
>                          ^
> compilation terminated.
> In file included from vrrp_daemon.c:37:0:
> ./../include/vrrp_iproute.h:32:24: fatal error: linux/mpls.h: No such 
> file or directory
>   #include <linux/mpls.h>
>                          ^
> compilation terminated.
> make[2]: *** [vrrp_print.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [vrrp_daemon.o] Error 1
> make[2]: Leaving directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/keepalived/vrrp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/home/bernd/rpmbuild/BUILD/keepalived-1.3.2/keepalived'
> make: *** [all-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.4BvkvA (%build)
> 
> 

Please see https://github.com/acassen/keepalived/issues/480. You will
need to pull the latest version of keepalived from github, or apply the
patch from commit c134bf4.

Quentin Armitage

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.