Can compile snapapi26 on ubuntu dapper 6.06

Discussion in 'Acronis True Image Product Line' started by tranceash, Jul 26, 2007.

Thread Status:
Not open for further replies.
  1. tranceash

    tranceash Registered Member

    Joined:
    Apr 30, 2007
    Posts:
    6
    when i run
    dkms build -m snapapi26 -v 0.7.10 --config /boot/config-2.6.15-23-386 --arch i686 --kernelsourcedir /usr/src/linux-source-2.6.15

    Get the following error
    Preparing kernel 2.6.15-23-386 for module build:
    (This is not compiling a kernel, only just preparing kernel symbols)
    Storing current .config to be restored when complete
    Running Generic preparation routine
    make mrproper.....
    using /boot/config-2.6.15-23-386
    make oldconfig.....(bad exit status: 2)
    make prepare-all....(bad exit status: 2)

    Building module:
    cleaning build area....
    make KERNELRELEASE=2.6.15-23-386 -C /usr/src/linux-source-2.6.15 SUBDIRS=/var/lib/dkms/snapapi26/0.7.10/build modules....(bad exit status: 2)

    Error! Bad return status for module build on kernel: 2.6.15-23-386 (i686)
    Consult the make.log in the build directory
    /var/lib/dkms/snapapi26/0.7.10/build/ for more information.

    the make.log
    make: Entering directory `/usr/src/linux-source-2.6.15'

    WARNING: Symbol version dump /usr/src/linux-source-2.6.15/Module.symvers
    is missing; modules will have no dependencies and modversions.

    find: /linux: No such file or directory
    CC [M] /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o
    cc1: error: include/linux/autoconf.h: No such file or directory
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:9:28: error: linux/autoconf.h: No such file or directory
    In file included from include/asm/thread_info.h:17,
    from include/linux/thread_info.h:21,
    from include/linux/preempt.h:10,
    from include/linux/spinlock.h:50,
    from include/linux/capability.h:45,
    from include/linux/sched.h:7,
    from include/linux/module.h:10,
    from /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:11:
    include/asm/processor.h:75: error: âCONFIG_X86_L1_CACHE_SHIFTâ undeclared here (not in a function)
    include/asm/processor.h:75: error: requested alignment is not a constant
    In file included from include/linux/sched.h:12,
    from include/linux/module.h:10,
    from /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:11:
    include/linux/jiffies.h:27:5: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:29:7: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:31:7: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:33:7: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:35:7: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:37:7: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:39:7: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:42:3: error: #error You lose.
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: error: division by zero in #if
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: error: division by zero in #if
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: error: division by zero in #if
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined
    include/linux/jiffies.h:213:31: error: division by zero in #if
    include/linux/jiffies.h:213:31: warning: "CONFIG_HZ" is not defined

    Any suggestion what I am missing o_O
     
  2. tranceash

    tranceash Registered Member

    Joined:
    Apr 30, 2007
    Posts:
    6
    Re: Can compile snapapi26 on ubuntu dapper 6.06 [RESOLVED]

    I have resolved this for all those who have problems

    the following steps are required
    apt-get install rpm build-essential linux-source linux-headers-`uname -r`

    then compile
    dkms build -m snapapi26 -v 0.7.10 --config /boot/config-2.6.15-23-386 --arch i386 --kernelsourcedir /usr/src/linux-headers-2.6.15-23-386/

    using the kernel headers solves the problem
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.