LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Acronis Backup and Recovery 11 failed to install in RHEL 5.5 (http://www.linuxquestions.org/questions/linux-software-2/acronis-backup-and-recovery-11-failed-to-install-in-rhel-5-5-a-914822/)

acronis 11-21-2011 08:49 PM

Acronis Backup and Recovery 11 failed to install in RHEL 5.5
 
Hi Everyone,

Good Day!

I'm just new here. I'm trying to install Acronis Backup and Recovery 11 in RHEL 5.5, it has x86_64 architecture. I'm having a problem in building SNAPAPI, snapapi is a requirement of Acronis that needs to be installed.

The steps to install this snapapi are these:


# /etc/init.d/acronis_mms stop

# /etc/init.d/acronis_agent stop

Add tarball to the dkms tree:

x86:

# dkms ldtarball --archive=/usr/lib/Acronis/kernel_modules/snapapi26-[VERSION]-all.tar.gz

OR

x86_64:

# dkms ldtarball --archive=/usr/lib64/Acronis/kernel_modules/snapapi26-[VERSION]-all.tar.gz

# dkms build -m snapapi26 -v [VERSION] -k `uname -r` --arch `uname -m` --kernelsourcedir [path_to_kernel_source_directory]

# dkms install -m snapapi26 -v [VERSION] -k `uname -r` --arch `uname -m` --kernelsourcedir [path_to_kernel_source_directory]

# modprobe snapapi26

# /etc/init.d/acronis_mms start

# /etc/init.d/acronis_agent start


When I'm in the step dkms build -m snapapi26, it fails to build the snapapi.

Here is the output that shows the error:

dkms build -m snapapi26 -v 0.7.61 -k 2.6.18-194.el5 --config /boot/config-2.6.18-194.el5 --arch x86_64 --kernelsourcedir /lib/modules/2.6.18-194.el5/build

Preparing kernel 2.6.18-194.el5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Storing current Modules.symvers to be restored when complele
Running Generic preparation routine
make mrproper....(bad exit status: 2)
using /boot/config-2.6.18-194.el5
make oldconfig....
make prepare-all....(bad exit status: 2)

Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-194.el5 -C /lib/modules/2.6.18-194.el5/build SUBDIRS=/var/lib/dkms/snapapi26/0.7.61/build modules....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-194.el5 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/snapapi26/0.7.61/build/ for more information.
0
0


Here is the make.log that has been genereted. Anyone knows how to read it? Any suggestions on what to do in able to make the application acronis running?

justing:/home/justing/Download # cat make.log.TCHAPD01
DKMS make.log for snapapi26-0.7.61 for kernel 2.6.18-194.el5 (x86_64)
Wed Nov 16 17:47:49 PHT 2011
make: Entering directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
grep: /usr/src/kernels/2.6.18-194.el5-x86_64/include/linux/freezer.h: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.o
In file included from /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:7:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:103:1: warning: "inline" redefined
In file included from include/linux/compiler-gcc4.h:4,
from include/linux/compiler.h:42,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:14,
from include/linux/capability.h:16,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:15:
include/linux/compiler-gcc.h:27:1: warning: this is the location of the previous definition
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘sn_blkdev_get’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:434: warning: cast from pointer to integer of different size
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘sa_cache_save’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1661: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1662: warning: pointer/integer type mismatch in conditional expression
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘session_getmap’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3291: warning: label ‘out_copy’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘collect_bitmap_to_user’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3413: warning: passing argument 1 of ‘copy_bits_to_user’ from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3413: warning: passing argument 3 of ‘copy_bits_to_user’ from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘session_getsparsedmap’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3460: warning: passing argument 2 of ‘map_init’ makes integer from pointer without a cast
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3477: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: At top level:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4525: warning: initialization from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘snapapi_init’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4657: warning: label ‘err_thread’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: At top level:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:829: warning: ‘set_block_in_map’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1099: warning: ‘remove_from_busy_list’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4170: warning: ‘snapapi4_ioctl’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4668: warning: ‘__inittest’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4669: warning: ‘__exittest’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘sa_cache_save’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1646: warning: ‘entry’ may be used uninitialized in this function
/bin/sh: line 1: 26813 Bus error scripts/basic/fixdep /var/lib/dkms/snapapi26/0.7.61/build/.snapapi26.o.d /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.o 'gcc -Wp,-MD,/var/lib/dkms/snapapi26/0.7.61/build/.snapapi26.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -fwrapv -Os -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DHAVE_FREEZE_BDEV -DHAVE_LINUX_CONFIG -DHAVE_LINUX_AUTOCONF -DHAVE_IOCTL32_CONVERSIONS -DHAVE_PAGE_MAPCOUNT -DHAVE_SPIN_LOCK_UNLOCKED -DHAVE_FMODE_T -DHAVE_TRY_TO_FREEZE -DHAVE_UNLOCKED_IOCTL -DHAVE_BD_CLAIM -DHAVE_BLKDEV_GET_3ARG_FLAG -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(snapapi26)" -D"KBUILD_MODNAME=KBUILD_STR(snapapi26)" -c -o /var/lib/dkms/snapapi26/0.7.61/build/.tmp_snapapi26.o /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c' > /var/lib/dkms/snapapi26/0.7.61/build/.snapapi26.o.tmp
make[1]: *** [/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.o] Error 135
make: *** [_module_/var/lib/dkms/snapapi26/0.7.61/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-194.el5-x86_64'


I hope you can help me guys. Thanks in advance!

Roken 11-23-2011 06:33 AM

I can't offer a solution, but maybe get you looking in the right area.

My best guess is that because of this:
Code:

make mrproper....(bad exit status: 2)
using /boot/config-2.6.18-194.el5
make oldconfig....
make prepare-all....(bad exit status: 2)

The remaining build process is trying to build on a tainted kernel source tree, leading to the later failure. I've never built snapapi, but an option may be to download the source archive for the kernel that you have (make sure it's the same one), extract to it's own build directory and run

Code:

make mrproper
make oldconfig

Then point the snapapi build to your new kernel source tree and see if the build succeeds. I wouldn't recommend continuing to make install of snapapi this way, but would rather use it as a diagnosis to get a clearer view of where the build is actually being caused to fail, then fix the cause (rather than the symptom).

acronis 12-01-2011 08:42 AM

Can you give me the exact commands? I'm kinda new in Linux.

Thanks.

Roken 12-01-2011 09:04 AM

Ok - get the kernel source and unarchive it somewhere convenient (perhaps your home dir), then in a terminal cd to the new kernel source. For demonstration I will assume it's in ~/kernel - ~/ is a shortcut to your home dir). There, run the two commands I gave:

Code:

cd ~/kernel
make mrproper
make oldconfig

Once done go back to your snapapi build (as shown in your original post) and include the parameter --kernelsourcedir ~/kernel as shown in your original post. You can then see if it builds correctly. Remember to replace ~/kernel with the actual location of your new kernel sources, both at the cd command and the --kernelsourcedir paramater.

As I said, this should only be for debugging the build, and not to go through to final install. If this works then you need to return to your original kernel to try to track down the errors.


All times are GMT -5. The time now is 01:50 AM.