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

Submission of a form on this page has been disabled as you do not have JavaScript enabled in your browser. If you think this message is wrong - then just refresh the page.
Printer-friendly version

Switch to the correct GCC version or use a workaround

This article applies to:

  • Acronis Backup & Recovery 10 Advanced Server (Agent for Linux)
  • Acronis Backup & Recovery 10 Server for Linux (Standalone)
  • Acronis Backup & Recovery 10 Advanced Server - Virtual Edition (Agent for Linux)

Symptoms

  1. You install Acronis Backup & Recovery 10 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 & Recovery 10.

      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.

Provide feedback on this information

Please use the form below to send us your comments. We read all feedback carefully.

Please note that we cannot individually respond to all comments. We do read, analyze and work to improve our content, products and services based off the feedback we receive. Should you need technical or customer service assistance please use our Contact Support Wizard.

Thank you for taking the time to send us your thoughts, we truly value your input.

To protect your privacy, do not include contact information in your feedback.