Fedora 26 - kernel 4.12.5 - dkms does not build

Backup agent for Linux servers and workstations on-premises or in the public cloud

Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby ManOrs » Tue Aug 15, 2017 10:35 am 1 person likes this post

Hello,
kernel 4.12.5 appeared in Fedora 26 repos,
I updated as usual, but veeamsnap dkms modue was not able to build itself

here is the log:
Code: Select all
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.12.5-300.fc26.x86_64 (x86_64)                                                                                                                                                             
mar 15 ago 2017, 12.05.42, CEST                                                                                                                                                                                                             
make: ingresso nella directory "/usr/src/kernels/4.12.5-300.fc26.x86_64"                                                                                                                                                                     
Makefile:940: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel"                                                                                                                         
  LD      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o                                                                                                                                                                                 
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o                                                                                                                                                                               
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o                                                                                                                                                                         
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o                                                                                                                                                                           
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o                                                                                                                                                                               
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container_spinlocking.o                                                                                                                                                                   
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/queue_spinlocking.o                                                                                                                                                                       
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/bitmap_sync.o                                                                                                                                                                             
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/log.o                                                                                                                                                                                     
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/page_array.o                                                                                                                                                                               
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.o                                                                                                                                                                           
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.o                                                                                                                                                                             
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangeset.o                                                                                                                                                                                 
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangelist.o                                                                                                                                                                               
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangevector.o                                                                                                                                                                             
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/defer_io.o                                                                                                                                                                                 
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/cbt_map.o                                                                                                                                                                                 
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/tracker.o                                                                                                                                                                                 
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/tracker_queue.o                                                                                                                                                                           
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.o                                                                                                                                                                               
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapshotdata.o                                                                                                                                                                             
/var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.c:244:3: error: ‘struct block_device_operations’ has no member named ‘direct_access’                                                                                                       
  .direct_access = NULL,                                                                                                                                                                                                                     
   ^~~~~~~~~~~~~                                                                                                                                                                                                                             
make[1]: *** [scripts/Makefile.build:302: /var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.o] Error 1                                                                                                                                       
make[1]: *** Attesa per i processi non terminati....                                                                                                                                                                                         
make: *** [Makefile:1519: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2                                                                                                                                                           
make: uscita dalla directory "/usr/src/kernels/4.12.5-300.fc26.x86_64"
ManOrs
Influencer
 
Posts: 13
Liked: 2 times
Joined: Tue Dec 20, 2016 6:39 am
Location: Italy
Full Name: Manuel Orsatti

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby PTide » Tue Aug 15, 2017 4:41 pm

Hi,

I've sent you a PM with a workaround.

Thank you
PTide
Veeam Software
 
Posts: 3291
Liked: 274 times
Joined: Tue May 19, 2015 1:46 pm

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby khuramrr » Tue Aug 15, 2017 5:51 pm

PTide wrote:Hi,

I've sent you a PM with a workaround.

Thank you



Hello, can you send me workaround too? seems like kernel upgrade has crashed me too. below is the error am getting

Code: Select all
[zakhaif@K-Dell ~] $ cat /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.12.5-300.fc26.x86_64 (x86_64)
Tue Aug 15 22:36:41 PKT 2017
make: Entering directory '/usr/src/kernels/4.12.5-300.fc26.x86_64'
  LD      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/queue_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/bitmap_sync.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/log.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/page_array.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangeset.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangelist.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangevector.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/defer_io.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/cbt_map.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/tracker.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/tracker_queue.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapshotdata.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapdata_collect.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.c:244:3: error: ‘struct block_device_operations’ has no member named ‘direct_access’
  .direct_access = NULL,
   ^~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:302: /var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1519: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make: Leaving directory '/usr/src/kernels/4.12.5-300.fc26.x86_64'
khuramrr
Lurker
 
Posts: 1
Liked: never
Joined: Tue Aug 15, 2017 5:48 pm
Full Name: Khuram Raza

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby ManOrs » Tue Aug 15, 2017 5:58 pm

Hello,
the workaround solved the issues and a backup just completed flawlessly

Thanks PTide
ManOrs
Influencer
 
Posts: 13
Liked: 2 times
Joined: Tue Dec 20, 2016 6:39 am
Location: Italy
Full Name: Manuel Orsatti

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby svenh » Wed Aug 16, 2017 6:32 pm

PTide wrote:I've sent you a PM with a workaround.


I'd really like to get this workaround as well. The latest Debian Kernel based on 4.12 broke veeamsnap for me as well.

Or you could commit the fix/workaround to the GitHub repository for veeamsnap, the code is licenced under the GPL to begin with.
svenh
Enthusiast
 
Posts: 26
Liked: 5 times
Joined: Thu Jan 21, 2016 12:56 pm
Location: Germany
Full Name: Sven Hartge

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby PTide » Thu Aug 17, 2017 10:50 am

That's a workaround, not a proper fix, hence it won't be added to the source code. Once our development team get to fix that, the code will be updated accordingly. Also, AFAIK kernel 4.12 is for Debian 9 which is not supported for the current version of VAL.

P.S. Sent you the instructions.
PTide
Veeam Software
 
Posts: 3291
Liked: 274 times
Joined: Tue May 19, 2015 1:46 pm

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby svenh » Thu Aug 17, 2017 10:57 am 1 person likes this post

PTide wrote: Also, AFAIK kernel 4.12 is for Debian 9 which is not supported for the current version of VAL.


No, 4.12 in Debian is for Unstable/Testing (which is not supported officially, I know). Debian 9 has 4.9 which works with the current 1.0.1.364 without problems.
svenh
Enthusiast
 
Posts: 26
Liked: 5 times
Joined: Thu Jan 21, 2016 12:56 pm
Location: Germany
Full Name: Sven Hartge

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby philipraets » Mon Aug 21, 2017 3:07 pm

I have the same problem with openSUSE Tumbleweed, which is now on kernel 4.12.8

Can you send me the workaround as well?

Thx,

Philip
philipraets
Lurker
 
Posts: 2
Liked: never
Joined: Mon Aug 21, 2017 2:59 pm
Full Name: Philip Raets

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby linuxdrake » Sun Aug 27, 2017 7:00 am

Me as well, cannot PM yet.
linuxdrake
Lurker
 
Posts: 2
Liked: never
Joined: Thu Sep 01, 2016 5:19 pm

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby Coldforest » Tue Sep 05, 2017 6:19 pm 1 person likes this post

Is there a reason the workaround can't be posted to the forum?

I'm also seeing: what can I do to get Veeam back online?

Thx, -David

System: Fedora 25 with latest updates (including kernel v4.12-9-200).
Coldforest
Novice
 
Posts: 5
Liked: 1 time
Joined: Wed Mar 01, 2017 8:55 pm
Full Name: Coldforest

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby jroberts31xray » Wed Sep 06, 2017 4:35 pm

Same issue Fedora Workstation 26 v4.12-9-300
8)

Code: Select all
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.12.9-300.fc26.x86_64 (x86_64)
Wed Sep  6 12:15:33 EDT 2017
make: Entering directory '/usr/src/kernels/4.12.9-300.fc26.x86_64'
Makefile:940: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  LD      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/queue_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/bitmap_sync.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/log.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/page_array.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangeset.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangelist.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangevector.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/defer_io.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/cbt_map.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/tracker.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/tracker_queue.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapshotdata.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/snapdata_collect.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.c:244:3: error: ‘struct block_device_operations’ has no member named ‘direct_access’
  .direct_access = NULL,
   ^~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:302: /var/lib/dkms/veeamsnap/1.0.1.364/build/snapimage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1519: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make: Leaving directory '/usr/src/kernels/4.12.9-300.fc26.x86_64'
John F. Roberts
Managed IT Services
Sr.Systems.Engineer
www.bluegrass.net
502.589.INET (4638)
johnr@bluegrass.net
jroberts31xray
Lurker
 
Posts: 1
Liked: never
Joined: Wed Jun 13, 2012 8:14 pm
Full Name: John F. Roberts

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby tgruber » Wed Sep 06, 2017 8:03 pm

Hi, may I have the workaround as well?

Running Fedora 26 (4.12.9-300.fc26.x86_64)
tgruber
Novice
 
Posts: 3
Liked: never
Joined: Mon Jan 25, 2016 3:44 pm
Full Name: Tim

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby awedio » Wed Sep 06, 2017 8:11 pm

Also interested in the workaround, thx.
awedio
Lurker
 
Posts: 1
Liked: never
Joined: Sun Nov 30, 2014 10:27 pm
Full Name: Femi Adegoke

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby rokko74 » Tue Sep 12, 2017 7:34 pm 1 person likes this post

I'm not sure what is the reason the workaround in the previuos posts cannot be posted here, but I can tell you MY PERSONAL workaround that works for me for the last 3 kernels updates...
Please consider it "AS IS" and "WITHOUT WARRANTY"...

1) comment out line 244 in /usr/src/veeamsnap-1.0.1.364/snapimage.c
BEFORE THE COMMENT:
.direct_access = NULL,
AFTER THE COMMENT:
//.direct_access = NULL,

2) recompile and install with dkms:
# dkms build -m veeamsnap -v 1.0.1.364
# dkms install -m veeamsnap -v 1.0.1.364

3) load the module
# modprobe veeamsnap

4) revert changes in /usr/src/veeamsnap-1.0.1.364/snapimage.c
LINE 244:
.direct_access = NULL,

5) backup your disk with veeam!

NOTE: point 4) is for reverting to the original file shipped with veeamsnap package... If you leave ".direct_access" commented out dkms will compile automatically on next kernel update!

Bye
rokko74
Lurker
 
Posts: 2
Liked: 1 time
Joined: Tue Sep 12, 2017 7:24 pm
Full Name: Roberto

Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby cmanzoni » Wed Sep 13, 2017 4:26 pm

Also interested in the workaround, thx.
cmanzoni
Lurker
 
Posts: 1
Liked: never
Joined: Wed Sep 13, 2017 11:17 am
Full Name: Cristiano Manzoni

Next

Return to Veeam Agent for Linux



Who is online

Users browsing this forum: No registered users and 1 guest