8343: Acronis Backup Agent for Linux Fails to Be Installed Correctly due to GCC Versions Difference

Also read in:

Translate to:

Operating Systems:

Switch to the correct GCC version or use a workaround

Symptoms

  1. You install Acronis Backup on Linux. The product reports that the installation is successful;
  2. When you start the product, there are no disks or partitions displayed;
  3. Checking the running modules shows that there is no snapapi:

    lsmod | grep snapapi

  4. Checking the dmesg output shows GCC related errors:

    snapapi26: disagrees about version of symbol struct_module
    snapapi26: version magic '2.6.9-67.0.7.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.2' should be '2.6.9-67.0.7.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4'

Cause

The running GCC version does not correspond to the version the kernel has been compiled with.

Solution

If switching the GCC version is possible, then do the following:

  1. Check the running GCC version:

    # gcc --version

  2. Check the GCC version your running kernel has been compiled with:

    # cat /proc/version

  3. Switch the version to the corresponding one if GCC versions are different:

    For example

    ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc

If switching the GCC version is not possible, then do the following:

  1. Open /var/lib/dkms/snapapi26/0.7.51/source/dkms.conf in a text editor;
  2. Modify following strings:

    MAKE[0]="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
    CLEAN="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"

    to

    MAKE[0]="make -C ${kernel_source_dir} CC=/usr/bin/i386-redhat-linux-gcc SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
    CLEAN="make -C ${kernel_source_dir} CC=/usr/bin/i386-redhat-linux-gcc SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"

    where snapapi26 version 0.7.51 is the latest one used in Acronis Backup.

    and /usr/bin/i386-redhat-linux-gcc path corresponds to the GCC version your running kernel was compiled with (cat /proc/version).

More information

Feel free to contact Acronis Customer Central if you have further questions or need assistance.

Tags: 

You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
6 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.