Skip to main content

snapapi26 compile fail with redhat 7.4

Thread needs solution

an error occur when ARB11.9 installing on Redhat 7.4

The Error ist when compile snapapi26  whith dkms, 

DKMS make.log for snapapi26-0.7.92 for kernel 3.10.0-693.el7.x86_64 (x86_64)
Do 17. Aug 14:36:11 CEST 2017
make: Entering directory `/usr/src/kernels/3.10.0-693.el7.x86_64'
  CC [M]  /var/lib/dkms/snapapi26/0.7.92/build/snapapi26.o
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c: In Funktion »sa_cache_save«:
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:1827:80: Warnung: Zeiger-/Ganzzahltyp passt nicht in bedingtem Ausdruck [standardmäßig aktiviert]
    (entry = (struct group_entry*)map_search(&s->s_groupmap, bno, &entry_page)) :
                                                                                ^
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c: In Funktion »session_getmap«:
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:3521:1: Warnung: Marke »out_copy« definiert, aber nicht verwendet [-Wunused-label]
 out_copy:
 ^
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c: In Funktion »session_getsparsedmap«:
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:3701:2: Warnung: Übergabe des Arguments 2 von »map_init«  erzeugt Ganzzahl von Zeiger ohne Typkonvertierung [standardmäßig aktiviert]
  ret = map_init(s, groups, gcount);
  ^
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:1589:12: Anmerkung: »long unsigned int« erwartet, aber Argument hat Typ »struct group_entry *«
 static int map_init(struct session_struct* s, unsigned long uaddr, unsigned n)
            ^
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c: In Funktion »snapapi_init«:
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:4929:1: Warnung: Marke »err_thread« definiert, aber nicht verwendet [-Wunused-label]
 err_thread:
 ^
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c: Auf höchster Ebene:
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:4426:12: Warnung: »snapapi4_ioctl« definiert, aber nicht verwendet [-Wunused-function]
 static int snapapi4_ioctl(struct inode *ino, struct file *file, unsigned int cmd,
            ^
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c: In Funktion »sa_cache_save«:
/var/lib/dkms/snapapi26/0.7.92/build/snapapi26.c:1859:15: Warnung: »entry« könnte in dieser Funktion uninitialisiert verwendet werden [-Wmaybe-uninitialized]
   entry->init = entry->cached = 1;
               ^
  CC [M]  /var/lib/dkms/snapapi26/0.7.92/build/snumbd26.o
/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.c: In Funktion »get_bio_req_flags«:
/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.c:286:12: Fehler: »struct bio« hat kein Element namens »bi_opf«
  return bio->bi_opf;
            ^
/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.c: In Funktion »snumbd_release_blk«:
/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.c:434:3: Warnung: »return« mit Wert in void zurückgebender Funktion [standardmäßig aktiviert]
   return -ENOTTY;
   ^
/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.c: Auf höchster Ebene:
/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.c:283:28: Warnung: »get_bio_req_flags« definiert, aber nicht verwendet [-Wunused-function]
 static BIO_RW_RETURN_VALUE get_bio_req_flags(struct bio *bio)
                            ^
make[1]: *** [/var/lib/dkms/snapapi26/0.7.92/build/snumbd26.o] Fehler 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.92/build] Fehler 2
make: Leaving directory `/usr/src/kernels/3.10.0-693.el7.x86_64'
 

 

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 250
Comments: 7092

Hello Bernd,

Agent for Linux in Acronis Backup 11.7 can be installed on 

  • Red Hat Enterprise Linux 4.x, 5.x, 6.x, 7.0, 7.1, 7.2, 7.3 (full list of supported operating systems can be found in Acronis Backup 11.7: Supported Operating Systems). 7.4 might be incompatible, as the official support hasn't been introduced. 

 

Hello,

Support should be available in the next update.

Also, I'm asking our developers about the possibility of providing a separate RPM with the driver that will compile on 7.4.

Thank you

Hello again,

You can find an updated SnapAPI rpm here:

https://access.acronis.com/t/j82xnnkd

Do the following to install:

  • service acronis_mms stop
  • rpm -i snapapi26_modules-0.7.103-1.noarch.rpm
  • dkms ldtarball --archive /usr/lib/Acronis/kernel_modules/snapapi26-0.7.103-all.tar.gz
  • dkms {build,install} -m snapapi26 -v 0.7.103
  • service acronis_mms  start

Please let me know if this works.

This is still not included in the latest release, when can I get it?  I'm having the same issue.  Thanks!

 

You could open a support case with Acronis and they would provide you the instruction to download it.  That's what I did.

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 250
Comments: 7092

Hello Everyone,

I've uploaded the module to our FTP server, you can download it here

Direct upload/download link (for FTP clients):
Username 5dzlc2ueww
Password: ip72cmejqf

 

KB article on how to use FTP: http://kb.acronis.com/content/5991

 

I am having a similar issue and need snapapi files for 11.7 but the links here are not working.

Please advise

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 250
Comments: 7092

Hello Emily,

I've checked the link - it is working, just insert it in Windows Explorer like this (without gaps at the beginning) 

ftp.png