Snapapi26 does not compile on Asianux 3.0
[root@asianux86 ~]# uname -a
Linux asianux86 2.6.9-11.19AX #1 Fri Aug 5 05:12:07 EDT 2005 i686 i686 i386 GNU/Linux
[root@asianux86 ~]# lsb_release -a
LSB Version: 3.0
Distributor ID: Asianux
Description: Asianux release 2.0 (Trinity)
Release: 2.0
Codename: Trinity
[root@asianux86 ~]# rpm -qa | grep gcc
gcc-gnat-3.4.3-22.1.1
compat-libgcc-296-2.96-132.7.2
gcc-3.4.3-22.1.1
gcc-objc-3.4.3-22.1.1
compat-gcc-32-c++-3.2.3-47.3
gcc-g77-3.4.3-22.1.1
libgcc-3.4.3-22.1.1
compat-gcc-32-3.2.3-47.3
gcc-c++-3.4.3-22.1.1
gcc-java-3.4.3-22.1.1
[root@asianux86 ~]# rpm -qa | grep kernel
kernel-devel-2.6.9-11.19AX
kernel-doc-2.6.9-11.19AX
kernel-utils-2.4-13.1.66.2AX
kernel-smp-devel-2.6.9-11.19AX
kernel-hugemem-devel-2.6.9-11.19AX
kernel-source-2.6.9-11.19AX
kernel-2.6.9-11.19AX
[root@asianux86 acronis]# ./ABR11.5SL_trial_en-US.i686 -a -i BackupAndRecoveryAgent,BackupAndRecoveryBootableComponents,ManagementConsole -l CQWME76X-X6USPJKP-XL6UHQVU-66SE3U6W-F8T6SL43-TRJ54K49-3ERWV4L6-3XEAQ463
Initializing...Done
Installing Acronis Backup & Recovery 11.5 Packages
dkms-2.2.0.3-3
snapapi26_modules-0.7.65-1
AcronisAgentLinux-41.0.21-1
BackupAndRecoveryAgent-11.5.32256-1
BackupAndRecoveryBootableComponents-11.5.32256-1
ManagementConsole-11.5.32256-1
Please wait while checking if GCC is installed...Done
Automatic installation of the kernel module has failed. Try to manually install the module later.
Please wait while installing kernel module...Done
Installation of the Acronis Backup & Recovery 11.5 packages has finished.
The following problems occurred:
- failed to build the SnapAPI kernel module. Operations with disk-level backups will not be available.
See files 'readme.txt' and 'HOWTO.INSTALL' for further instructions.
[root@asianux86 acronis]# dkms build -m snapapi26 -v 0.7.65
Preparing kernel 2.6.9-11.19AX for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Storing current Module.symvers to be restored when complete
Running Generic preparation routine
make mrproper.....(bad exit status: 2)
using /boot/config-2.6.9-11.19AX
make oldconfig.....
make prepare-all.....(bad exit status: 2)
Building module:
cleaning build area....
make KERNELRELEASE=2.6.9-11.19AX -C /lib/modules/2.6.9-11.19AX/build SUBDIRS=/var/lib/dkms/snapapi26/0.7.65/build modules....(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.9-11.19AX (i686)
Consult /var/lib/dkms/snapapi26/0.7.65/build/make.log for more information.
[root@asianux86 acronis]# cat /var/lib/dkms/snapapi26/0.7.65/build/make.log
DKMS make.log for snapapi26-0.7.65 for kernel 2.6.9-11.19AX (i686)
Tue Sep 11 06:55:09 CST 2012
make: Entering directory `/usr/src/kernels/2.6.9-11.19AX-i686'
grep: /usr/src/kernels/2.6.9-11.19AX-i686/include/linux/spinlock_types.h: No such file or directory
grep: /usr/src/kernels/2.6.9-11.19AX-i686/include/linux/freezer.h: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.65/build/snapapi26.o
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `sa_cache_save':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:1669: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:1670: warning: pointer/integer type mismatch in conditional expression
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:1654: warning: 'entry' might be used uninitialized in this function
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `resolver_loop':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:2346: error: too few arguments to function `try_to_freeze'
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `session_getmap':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3288: warning: label `out_copy' defined but not used
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `copy_bits_to_user':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3334: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3334: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3335: warning: passing arg 2 of `set_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3337: warning: passing arg 2 of `clear_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3350: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3350: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3351: warning: passing arg 2 of `set_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3353: warning: passing arg 2 of `clear_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `collect_bitmap_to_user':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3410: warning: passing arg 1 of `copy_bits_to_user' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3410: warning: passing arg 3 of `copy_bits_to_user' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `session_getsparsedmap':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3457: warning: passing arg 2 of `map_init' makes integer from pointer without a cast
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3474: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `snapapi_init':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:4654: warning: label `err_thread' defined but not used
make[1]: *** [/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.o] Error 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.65/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.9-11.19AX-i686'
[root@asianux86 acronis]# dkms install -m snapapi26 -v 0.7.65
Preparing kernel 2.6.9-11.19AX for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Storing current Module.symvers to be restored when complete
Running Generic preparation routine
make mrproper....(bad exit status: 2)
using /boot/config-2.6.9-11.19AX
make oldconfig....
make prepare-all....(bad exit status: 2)
Building module:
cleaning build area....
make KERNELRELEASE=2.6.9-11.19AX -C /lib/modules/2.6.9-11.19AX/build SUBDIRS=/var/lib/dkms/snapapi26/0.7.65/build modules....(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.9-11.19AX (i686)
Consult /var/lib/dkms/snapapi26/0.7.65/build/make.log for more information.
[root@asianux86 acronis]# cat /var/lib/dkms/snapapi26/0.7.65/build/make.log
DKMS make.log for snapapi26-0.7.65 for kernel 2.6.9-11.19AX (i686)
Tue Sep 11 07:01:04 CST 2012
make: Entering directory `/usr/src/kernels/2.6.9-11.19AX-i686'
grep: /usr/src/kernels/2.6.9-11.19AX-i686/include/linux/spinlock_types.h: No such file or directory
grep: /usr/src/kernels/2.6.9-11.19AX-i686/include/linux/freezer.h: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.65/build/snapapi26.o
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `sa_cache_save':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:1669: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:1670: warning: pointer/integer type mismatch in conditional expression
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:1654: warning: 'entry' might be used uninitialized in this function
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `resolver_loop':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:2346: error: too few arguments to function `try_to_freeze'
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `session_getmap':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3288: warning: label `out_copy' defined but not used
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `copy_bits_to_user':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3334: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3334: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3335: warning: passing arg 2 of `set_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3337: warning: passing arg 2 of `clear_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3350: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3350: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3351: warning: passing arg 2 of `set_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3353: warning: passing arg 2 of `clear_bit' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `collect_bitmap_to_user':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3410: warning: passing arg 1 of `copy_bits_to_user' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3410: warning: passing arg 3 of `copy_bits_to_user' from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `session_getsparsedmap':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3457: warning: passing arg 2 of `map_init' makes integer from pointer without a cast
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:3474: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c: In function `snapapi_init':
/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.c:4654: warning: label `err_thread' defined but not used
make[1]: *** [/var/lib/dkms/snapapi26/0.7.65/build/snapapi26.o] Error 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.65/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.9-11.19AX-i686'
Attachment | Size |
---|---|
sysinfo.zip | 125.95 KB |

- Log in to post comments

I'm not a Linux expert, I wonder if the kernel build is different to that SnapAPI expects? I think your best solution short of a Linux wiz being around is to contact Acronis support.
I assume this is the snapapi that comes with the Linux Server version, as the Windows build of snapapi is 1032.
- Log in to post comments

It looks like kernel headers are not installed, however according to the list - they are installed.
- Log in to post comments