locked
Problem with building LIS on RHEL 6 2.6.32 based kernel RRS feed

  • General discussion

  • I'm trying to build LIS v3.3, but when I staring rpmbuild I get next error:

    + make -C /usr/src/kernels/2.6.32-379.1.1.lve1.1.9.4.el6.x86_64 M=/home/dkasyanov/rpmbuild/BUILD/hv/obj/default modules
    make: Entering directory `/usr/src/kernels/2.6.32-379.1.1.lve1.1.9.4.el6.x86_64'
      CC [M]  /home/dkasyanov/rpmbuild/BUILD/hv/obj/default/netvsc_drv.o
    In file included from /home/dkasyanov/rpmbuild/BUILD/hv/obj/default/include/linux/hyperv.h:206,
                     from /home/dkasyanov/rpmbuild/BUILD/hv/obj/default/hyperv_net.h:29,
                     from /home/dkasyanov/rpmbuild/BUILD/hv/obj/default/netvsc_drv.c:41:
    /home/dkasyanov/rpmbuild/BUILD/hv/obj/default/include/linux/hv_compat.h:37: error: redefinition of 'skb_frag_page'
    include/linux/skbuff.h:1637: note: previous definition of 'skb_frag_page' was here
    /home/dkasyanov/rpmbuild/BUILD/hv/obj/default/include/linux/hv_compat.h:42: error: redefinition of 'skb_frag_size'
    include/linux/skbuff.h:148: note: previous definition of 'skb_frag_size' was here
    make[1]: *** [/home/dkasyanov/rpmbuild/BUILD/hv/obj/default/netvsc_drv.o] Error 1
    make: *** [_module_/home/dkasyanov/rpmbuild/BUILD/hv/obj/default] Error 2
    make: Leaving directory `/usr/src/kernels/2.6.32-379.1.1.lve1.1.9.4.el6.x86_64'
    error: Bad exit status from /var/tmp/rpm-tmp.WDUZFd (%build)

    How can I fix this error and build LIS?

    Monday, September 3, 2012 10:59 AM

All replies

  • I had similar problem with installing LIS 3.3 on CentOS 6.3 (however, I cannot rememeber what exactly was the problem). I've managed to solve it by installing CentOS 6.2, then installing LIS 3.3, and updating CentOS to 6.3
    Wednesday, September 5, 2012 12:07 PM
  • I'm trying to build LIS v3.3, but when I staring rpmbuild I get next error:

      . . .

    How can I fix this error and build LIS?

      Are you see this thread?

    http://social.technet.microsoft.com/Forums/en-US/linuxintegrationservices/thread/0b94561d-9d15-4d9d-97ec-a67580c4db8a 

     LIS v3.4 can solve Youre problem?

    Tuesday, September 11, 2012 11:39 AM
  • This issue is solved with LIC 3.4 (look at source in include/linux/hv_compat.h:)

    #if defined(RHEL_RELEASE_VERSION) && (RHEL_RELEASE_CODE < 1539)
    static inline struct page *skb_frag_page(const skb_frag_t *frag)
    {
    	return frag->page;
    }
    
    static inline unsigned int skb_frag_size(const skb_frag_t *frag)
    {
    	return frag->size;
    }
    #endif


    Wednesday, September 12, 2012 3:20 PM