Snapapi26 does not compile on CentOS 5.3
Hi,
I cannot compile the snapapi26 module on CentOS 5.3 Kernel 2.6.18-164.el5-x86_64:
Here ist the make.log:
DKMS make.log for snapapi26-0.7.46 for kernel 2.6.18-164.el5 (x86_64)
Fr 25. Sep 11:39:33 CEST 2009
make: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
CC [M] /var/lib/dkms/snapapi26/0.7.46/build/snapapi26.o
In Datei, eingefügt von /var/lib/dkms/snapapi26/0.7.46/build/snapapi26.c:7:
include/linux/config.h:6:2: Warnung: #warning Including config.h is deprecated.
/var/lib/dkms/snapapi26/0.7.46/build/snapapi26.c: In function »session_lockdev«:
/var/lib/dkms/snapapi26/0.7.46/build/snapapi26.c:3148: Warnung: Zeigertyp passt nicht in bedingtem Ausdruck
CC [M] /var/lib/dkms/snapapi26/0.7.46/build/snumbd26.o
In Datei, eingefügt von /var/lib/dkms/snapapi26/0.7.46/build/snumbd26.c:7:
include/linux/config.h:6:2: Warnung: #warning Including config.h is deprecated.
/var/lib/dkms/snapapi26/0.7.46/build/snumbd26.c:142: Fehler: Redefinition des typedef »fmode_t«
include/linux/types.h:182: Fehler: Vorherige Deklaration von »fmode_t« war hier
make[1]: *** [/var/lib/dkms/snapapi26/0.7.46/build/snumbd26.o] Fehler 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.46/build] Fehler 2
make: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
Have somebody a hint?

- Log in to post comments

Hello, i have the same problem when calling:
/usr/sbin/dkms build -m snapapi26 -v 0.7.46 --config /boot/config-2.6.18-164.el5 --arch x86_64 --kernelsourcedir /lib/modules/2.6.18-164.el5/source
the log shows:
DKMS make.log for snapapi26-0.7.46 for kernel 2.6.18-164.el5 (x86_64) Do 8. Okt 17:01:39 CEST 2009 make: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64' CC [M] /var/lib/dkms/snapapi26/0.7.46/build/snapapi26.o In Datei, eingefgt von /var/lib/dkms/snapapi26/0.7.46/build/snapapi26.c:7: include/linux/config.h:6:2: Warnung: #warning Including config.h is deprecated. /var/lib/dkms/snapapi26/0.7.46/build/snapapi26.c: In function session_lockdev: /var/lib/dkms/snapapi26/0.7.46/build/snapapi26.c:3148: Warnung: Zeigertyp passt nicht in bedingtem Ausdruck CC [M] /var/lib/dkms/snapapi26/0.7.46/build/snumbd26.o In Datei, eingefgt von /var/lib/dkms/snapapi26/0.7.46/build/snumbd26.c:7: include/linux/config.h:6:2: Warnung: #warning Including config.h is deprecated. /var/lib/dkms/snapapi26/0.7.46/build/snumbd26.c:142: Fehler: Redefinition des typedef fmode_t include/linux/types.h:182: Fehler: Vorherige Deklaration von fmode_t war hier make[1]: *** [/var/lib/dkms/snapapi26/0.7.46/build/snumbd26.o] Fehler 1 make: *** [_module_/var/lib/dkms/snapapi26/0.7.46/build] Fehler 2 make: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
Thanks
- Log in to post comments

Hi Oleg,
the agent is working now. But if I install AcronisBootableComponentsMediaBuilderLinux.i686, the snapapi26 is replaced with the old version. If tried to replace the snapapi26 after the installation, but I get an error from the AMS that the MediaBuilder is not found.
- Log in to post comments

Hello all,
Thank you for using [[http://www.acronis.com/enterprise/ | Acronis Corporate Products]]
Sebastian,
SnapAPI fails to be compiled.
- Download the updated SnapAPI module that supports kernel 2.6.18-164;
- Install the downloaded module. See Creating the SNAPAPI Module in Acronis Backup Software for Linux.
3-point concepts,
If you need Acronis Media Builder to create Acronis Bootable CD, the easiest way is to log in to your account and to download the appropriate ISO file. Please log in to your account, go to the Registered products section -> Bootable media. Download the file.
You can find more information on how to burn an ISO image to a CD here and here
Please let me know if you want to troubleshoot the encountered issue.
Thank you.
- Log in to post comments

Having similar snapapi26 kernel build failures. Followed recommendation in document 4146 and 1556. Have verified package dependencies and requirements. All met per published KB articles on subject (snapapi26, 2.6.18-164-el5 kernel). Have tried live chats to no avail (various "owners" promise to stick with me until resolved, then I never get a follow-up beyond the acknowledgment e-mail. As everyone knows, if you make the mistake of responding to to one of those it will open a new problem ID that is unrelated to the chat. . .Acronis Support is a dysfunctional nightmare and black hole.
Just for grins, I'll upload a file with the dkms command, the error message that resulted, and the log the message refers to.
Like I will ever get any assistance or resolution for this. . .
Attachment | Size |
---|---|
23080-87928.txt | 2.75 KB |
- Log in to post comments

Hello Steven,
- Log in to post comments

Hi Oleg
I cannot compile the snapapi26 module on CentOS 5.5 Kernel 2.6.18-194.el5
Here ist the make.log:
DKMS make.log for snapapi26-0.7.45 for kernel 2.6.18-194.el5 (i686)
Fri Mar 16 17:15:16 PDT 2012
make: Entering directory `/usr/src/kernels/2.6.18-194.el5-i686'
CC [M] /var/lib/dkms/snapapi26/0.7.45/build/snapapi26.o
In file included from /var/lib/dkms/snapapi26/0.7.45/build/snapapi26.c:7:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
/var/lib/dkms/snapapi26/0.7.45/build/snapapi26.c: In function ‘session_lockdev/var/lib/dkms/snapapi26/0.7.45/build/snapapi26.c:3143: warning: pointer type mismatch in conditional expression
CC [M] /var/lib/dkms/snapapi26/0.7.45/build/snumbd26.o
In file included from /var/lib/dkms/snapapi26/0.7.45/build/snumbd26.c:7:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
/var/lib/dkms/snapapi26/0.7.45/build/snumbd26.c:142: error: redefinition of typedef ‘fmode_t’
include/linux/types.h:182: error: previous declaration of ‘fmode_t’ was here
make[1]: *** [/var/lib/dkms/snapapi26/0.7.45/build/snumbd26.o] Error 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.45/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-194.el5-i686'
please tell me how to solve it and send a email for me,thanks.
Email:fan@5778.com
- Log in to post comments

Snapapi 0.7.47 ( http://kb.acronis.com/sites/default/files/content/2009/10/4371/snapapi2… ) should help http://forum.acronis.com/forum/4149#comment-7538
- Log in to post comments

root@localhost ~]# rpm -ivh snapapi26_modules-0.7.47-1.noarch.rpm
Preparing... ########################################### [100%]
package snapapi26_modules-0.7.47-1.noarch is already installed
[root@localhost ~]# dkms ldtarball --archive /usr/lib/Acronis/kernel_modules/snapapi26-0.7.47-all.tar.gz
Warning! This tarball was created with dkms < 2.0 and contains
no arch info. DKMS will assume the arch: i686
Loading tarball for module: snapapi26 / version: 0.7.47
Loading /usr/src/snapapi26-0.7.47...
Creating /var/lib/dkms/snapapi26/0.7.47/source symlink...
DKMS: ldtarball Completed.
[root@localhost ~]# dkms build -m snapapi26 -v 0.7.47
Preparing kernel 2.6.18-308.1.1.el5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
using presented .config
make oldconfig.......
make prepare-all.......
Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-308.1.1.el5 -C /lib/modules/2.6.18-308.1.1.el5/build SUBDIRS=/var/lib/dkms/snapapi26/0.7.47/build modules......
cleaning build area....
cleaning kernel tree (make mrproper)....(bad exit status: 2)
DKMS: build Completed.
[root@localhost ~]# dkms install -m snapapi26 -v 0.7.47
snapapi26.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/2.6.18-308.1.1.el5/extra/
snumbd26.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/2.6.18-308.1.1.el5/extra/
Adding any weak-modules
depmod....
DKMS: install Completed.
[root@localhost ~]# trueimagecmd
-bash: trueimagecmd: command not found
[root@localhost ~]#
- Log in to post comments

So, snapapi is compiled and installed, but trueimagecmd is not.
Because trueimagecmd is not a part of snapapi. In case of ABR10, IIRC, it's installed from the Agent installation package.
- Log in to post comments

I had already installed true image echo.
It noted that can't install the snapapi when I install true image echo.
So I chose "skip" and install the snapapi by manual.
Now I install the snapspi,but I can't used true image echo.
- Log in to post comments

Well, I thought that you use ABR10. In case of Echo, I don't know what is the maximal snapapi version that it works with, and how the installation of snapapi could affect Echo components. I'd uninstall Echo ( http://kb.acronis.com/content/1729 ) and reinstall it again (there must be an option to not install Snapapi, but using the existing one).
- Log in to post comments