PDA

View Full Version : Problem on Red Hat AS 4 64 bit compiling snapapi


fabio.emidi
March 13th, 2007, 09:31 AM
Hello.
I installed Acronis True Image Server 9.1 for Linux (Trial Version) on Red Hat AS 4 64 bit. I choose not to compile snapapi during installation (cause it failed).
I tried to do io by hand, following reccomended procedure. I launched this command:

dkms build -m snapapi26 -v 0.7.10 -k 2.6.9-42.ELsmp --config /boot/config-2.6.9-42.ELsmp --arch x86_64 --kernelsourcedir /usr/src/kernels/2.6.9-42.EL-smp-x86_64/

... but I received errors. Here is an extract from file /var/lib/dkms/snapapi26/0.7.10/build/make.log:

DKMS make.log for snapapi26-0.7.10 for kernel 2.6.9-42.ELsmp (i686)
Tue Mar 13 10:05:34 CET 2007
make: Entering directory `/usr/src/kernels/2.6.9-42.EL-smp-x86_64'
find: /linux: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o
cc1: code model `kernel' not supported in the 32 bit mode
In file included from include/linux/timex.h:157,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:11:


... and the last lines ...

include/asm/pgtable.h:436: warning: left shift count >= width of type
In file included from /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:24:
include/linux/mm.h: In function `pmd_alloc':
include/linux/mm.h:638: warning: left shift count >= width of type
make[1]: *** [/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o] Error 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.10/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.9-42.EL-smp-x86_64'

The full log file is attached. Anyone has some idea of what is going on ???

fabio.emidi
March 15th, 2007, 10:07 AM
Well, none else ever tried to install TI on 64 bit Red Hat distro ?

eugenevdm
March 31st, 2007, 07:44 AM
I am trying - but not Red Hat but Fedora Core 4 64-bit...no luck compiling the snapapi because of a Kernel Sources problem:

[root@cp1 boot]# /usr/sbin/dkms build -m snapapi26 -v 0.7.10 --config /boot/config-2.6.11-1.1369_FC4 --arch x86_64 --kernelsourcedir /usr/src/redhat/

Error! Your kernel source for kernel 2.6.11-1.1369_FC4 cannot be found at
/lib/modules/2.6.11-1.1369_FC4/build or /lib/modules/2.6.11-1.1369_FC4/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

Tried downloading and installed:
http://fr.rpmfind.net//linux/RPM/fedora/4/src/kernel-2.6.11-1.1369_FC4.src.html

But I'm not sure if this is the correct files because it ain't working.

eugenevdm
April 9th, 2007, 07:01 PM
This finally sorted it out:

yum install kernel-devel (apparently these are header files)

and then:

/usr/sbin/dkms build -m snapapi26 -v 0.7.10 --config /boot/config-2.6.11-1.1369_FC4 --arch x86_64 --kernelsourcedir /usr/src/kernels/2.6.17-1.2142_FC4-x86_64

Acronis Support
April 11th, 2007, 08:08 AM
Hello fabio.emidi,

Thank you for choosing Acronis Linux Server Disk Backup Software (http://www.acronis.com/enterprise/products/ATISLin/).

We are sorry for the delayed response.

Could you please do the following?

dkms build -m snapapi26 -v 0.7.10 -k 2.6.9-42.ELsmp --config /boot/config-2.6.9-42.ELsmp --arch x86_64 --kernelsourcedir /lib/modules/2.6.9-42.ELsmp/build

Thank you.
--
Aleksandr Isakov