Backup agent for Linux servers and workstations on-premises or in the public cloud
ManOrs
Enthusiast
Posts: 29
Liked: 3 times
Joined: Dec 20, 2016 6:39 am
Full Name: Manuel Orsatti
Location: Italy
Contact:

Fedora 26 - kernel 4.12.5 - dkms does not build

Post by ManOrs » 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"

PTide
Veeam Software
Posts: 4246
Liked: 349 times
Joined: May 19, 2015 1:46 pm
Contact:

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

Post by PTide » Aug 15, 2017 4:41 pm

Hi,

I've sent you a PM with a workaround.

Thank you

khuramrr
Lurker
Posts: 1
Liked: never
Joined: Aug 15, 2017 5:48 pm
Full Name: Khuram Raza
Contact:

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

Post by khuramrr » 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'

ManOrs
Enthusiast
Posts: 29
Liked: 3 times
Joined: Dec 20, 2016 6:39 am
Full Name: Manuel Orsatti
Location: Italy
Contact:

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

Post by ManOrs » Aug 15, 2017 5:58 pm

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

Thanks PTide

svenh
Enthusiast
Posts: 26
Liked: 5 times
Joined: Jan 21, 2016 12:56 pm
Full Name: Sven Hartge
Location: Germany
Contact:

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

Post by svenh » 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.

PTide
Veeam Software
Posts: 4246
Liked: 349 times
Joined: May 19, 2015 1:46 pm
Contact:

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

Post by PTide » 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.

svenh
Enthusiast
Posts: 26
Liked: 5 times
Joined: Jan 21, 2016 12:56 pm
Full Name: Sven Hartge
Location: Germany
Contact:

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

Post by svenh » 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.

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

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

Post by philipraets » 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

linuxdrake
Lurker
Posts: 2
Liked: never
Joined: Sep 01, 2016 5:19 pm
Contact:

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

Post by linuxdrake » Aug 27, 2017 7:00 am

Me as well, cannot PM yet.

Coldforest
Novice
Posts: 5
Liked: 1 time
Joined: Mar 01, 2017 8:55 pm
Full Name: Coldforest
Contact:

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

Post by Coldforest » 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).

jroberts31xray
Lurker
Posts: 1
Liked: never
Joined: Jun 13, 2012 8:14 pm
Full Name: John F. Roberts
Contact:

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

Post by jroberts31xray » 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

tgruber
Novice
Posts: 4
Liked: never
Joined: Jan 25, 2016 3:44 pm
Full Name: Tim
Contact:

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

Post by tgruber » Sep 06, 2017 8:03 pm

Hi, may I have the workaround as well?

Running Fedora 26 (4.12.9-300.fc26.x86_64)

awedio
Lurker
Posts: 1
Liked: never
Joined: Nov 30, 2014 10:27 pm
Full Name: Femi Adegoke
Contact:

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

Post by awedio » Sep 06, 2017 8:11 pm

Also interested in the workaround, thx.

rokko74
Novice
Posts: 3
Liked: 3 times
Joined: Sep 12, 2017 7:24 pm
Full Name: Roberto
Contact:

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

Post by rokko74 » 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

cmanzoni
Lurker
Posts: 2
Liked: never
Joined: Sep 13, 2017 11:17 am
Full Name: Cristiano Manzoni
Contact:

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

Post by cmanzoni » Sep 13, 2017 4:26 pm

Also interested in the workaround, thx.

Post Reply

Who is online

Users browsing this forum: gable, Google [Bot] and 2 guests