c - fatal error: asm/linkage.h: No such file or directory -


i need setp keepalived provide ip failover web cluster in nginx webserver.

i follow link install keepalive : http://www.cyberciti.biz/faq/rhel-centos-fedora-keepalived-lvs-cluster-configuration/

while install

  $ make && make install 

system throw fatal error: asm/linkage.h: no such file or directory

this error:

   [root@www keepalived-1.1.19]# make && make install      make -c lib || exit 1;     make[1]: entering directory `/opt/keepalived-1.1.19/lib'     make[1]: nothing done `all'.     make[1]: leaving directory `/opt/keepalived-1.1.19/lib'     make -c keepalived     make[1]: entering directory `/opt/keepalived-1.1.19/keepalived'     make[2]: entering directory `/opt/keepalived-1.1.19/keepalived/core'     make[2]: nothing done `all'.     make[2]: leaving directory `/opt/keepalived-1.1.19/keepalived/core'     make[2]: entering directory `/opt/keepalived-1.1.19/keepalived/vrrp'     gcc -g -o2  -i/lib/modules/3.10.0-229.el7.x86_64/build/include -i../include -i../../lib -wall -wunused -wstrict-prototypes -d_krnl_2_2_ -d_without_lvs_ -d_without_ipvs_syncd_  -c vrrp_daemon.c     in file included /lib/modules/3.10.0-229.el7.x86_64/build/include/linux/kernel.h:6:0,                      /lib/modules/3.10.0-229.el7.x86_64/build/include/linux/skbuff.h:17,                      /lib/modules/3.10.0-229.el7.x86_64/build/include/linux/if_ether.h:23,                      /usr/include/net/ethernet.h:26,                      ../include/vrrp_arp.h:27,                      vrrp_daemon.c:26:     /lib/modules/3.10.0-229.el7.x86_64/build/include/linux/linkage.h:7:25: fatal error: asm/linkage.h: no such file or directory      #include <asm/linkage.h>                              ^     compilation terminated.     make[2]: *** [vrrp_daemon.o] error 1     make[2]: leaving directory `/opt/keepalived-1.1.19/keepalived/vrrp'     make[1]: *** [all] error 1     make[1]: leaving directory `/opt/keepalived-1.1.19/keepalived'     make: *** [all] error 2     [root@www keepalived-1.1.19]# 

update:

after folow module compiling : asm/linkage.h file not found link

i add

^iobj-m += vrrp_daemon.o

all: ^i$(make) -c /lib/modules/$(shell uname -r)/build m=$(pwd) modules $

clean: ^i$(make) -c /lib/modules/$(shell uname -r)/build m=$(pwd) clean $

now, throw same error

this make file:

        # makefile         #         # keepalived opensource project.         #         # copyright (c) 2001-2009 alexandre cassen, <acassen@linux-vs.org>          tarfiles = author bin changelog configure configure.in contributors copying \                    doc genhash install install-sh keepalived keepalived.spec.in lib makefile.in \                    readme todo version          tarball = keepalived-1.1.19.tar.gz          ^iobj-m += vrrp_daemon.o          all:                     $(make) -c lib || exit 1;                 $(make) -c keepalived                 $(make) -c genhash $                 ^i$(make) -c /lib/modules/$(shell uname -r)/build m=$(pwd) modules $                 @echo ""                 @echo "make complete"          debug:                 $(make) -c lib || exit 1;                 $(make) -c keepalived debug                 @echo ""                 @echo "make complete"          profile:                 $(make) -c lib || exit 1;                 $(make) -c keepalived profile                 @echo ""                 @echo "make complete"           clean:                 $(make) -c lib clean                 $(make) -c keepalived clean                 $(make) -c genhash clean                 ^i$(make) -c /lib/modules/$(shell uname -r)/build m=$(pwd) clean $          distclean:                 $(make) -c lib distclean                 $(make) -c keepalived distclean                 $(make) -c genhash distclean                 rm -f makefile                 rm -f keepalived.spec          mrproper: distclean                 rm -f config.*          uninstall:                 $(make) -c keepalived uninstall                 $(make) -c genhash uninstall          install:                 $(make) -c keepalived install                 $(make) -c genhash install          tarball: mrproper                 mkdir keepalived-1.1.19                 cp -a $(tarfiles) keepalived-1.1.19                 tar --exclude .git -czf $(tarball) keepalived-1.1.19                 rm -rf keepalived-1.1.19          rpm:                 rpmbuild -ba keepalived.spec 

update:1 find linkage.h file there...

    ./modules/3.10.0-229.el7.x86_64/build/arch/x86/include/asm/linkage.h     ./modules/3.10.0-229.el7.x86_64/build/include/asm-generic/linkage.h     ./modules/3.10.0-229.el7.x86_64/build/include/linux/linkage.h     ./modules/3.10.0-229.el7.x86_64/source/arch/x86/include/asm/linkage.h     ./modules/3.10.0-229.el7.x86_64/source/include/asm-generic/linkage.h     ./modules/3.10.0-229.el7.x86_64/source/include/linux/linkage.h     ./modules/3.10.0-327.28.3.el7.x86_64/build/arch/x86/include/asm/linkage.h     ./modules/3.10.0-327.28.3.el7.x86_64/build/include/asm-generic/linkage.h     ./modules/3.10.0-327.28.3.el7.x86_64/build/include/linux/linkage.h     ./modules/3.10.0-327.28.3.el7.x86_64/source/arch/x86/include/asm/linkage.h     ./modules/3.10.0-327.28.3.el7.x86_64/source/include/asm-generic/linkage.h     ./modules/3.10.0-327.28.3.el7.x86_64/source/include/linux/linkage.h 

suggest me how solve problem.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -