Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
rolandp
Influencer
Posts: 14
Liked: 1 time
Joined: Jul 05, 2012 11:38 pm
Full Name: Roland Pinches
Contact:

Fedora 26 kernel 4.18.7

Post by rolandp »

Hi,
My kernel has just been updated to 4.18.7 and now veeamsnap won't build :(
Here is my build log:

Code: Select all

[root@localhost ~]# cat /var/lib/dkms/veeamsnap/2.0.1.665/build/make.log  
DKMS make.log for veeamsnap-2.0.1.665 for kernel 4.18.7-200.fc28.x86_64 (x86_64)
Sun Sep 16 11:28:36 NZST 2018
make: Entering directory '/usr/src/kernels/4.18.7-200.fc28.x86_64'
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/log.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/container.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/container_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/queue_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/bitmap_sync.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/page_array.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/rangelist.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/rangevector.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/defer_io.o
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.c:4:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: returning ‘int’ from a function with return type ‘struct bio_set *’ makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/cbt_map.o
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.h:2,
                 from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.c:2:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: returning ‘int’ from a function with return type ‘struct bio_set *’ makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.c: In function ‘blk_direct_bioset_free’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.c:26:3: error: implicit declaration of function ‘bioset_free’; did you mean ‘bvec_free’? [-Werror=implicit-function-declaration]
   bioset_free( BlkDirectBioset );
   ^~~~~~~~~~~
   bvec_free
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.c:2:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: returning ‘int’ from a function with return type ‘struct bio_set *’ makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.c: In function ‘blk_redirect_bioset_free’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.c:23:3: error: implicit declaration of function ‘bioset_free’; did you mean ‘bvec_free’? [-Werror=implicit-function-declaration]
   bioset_free( BlkRedirectBioset );
   ^~~~~~~~~~~
   bvec_free
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.c:3:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: returning ‘int’ from a function with return type ‘struct bio_set *’ makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/tracker.o
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.c: In function ‘blk_deferred_bioset_free’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.c:177:3: error: implicit declaration of function ‘bioset_free’; did you mean ‘bvec_free’? [-Werror=implicit-function-declaration]
   bioset_free( BlkDeferredBioset );
   ^~~~~~~~~~~
   bvec_free
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.o] Error 1
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/defer_io.c:6:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: returning ‘int’ from a function with return type ‘struct bio_set *’ makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.o] Error 1
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/tracker.c:6:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: returning ‘int’ from a function with return type ‘struct bio_set *’ makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /var/lib/dkms/veeamsnap/2.0.1.665/build/defer_io.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /var/lib/dkms/veeamsnap/2.0.1.665/build/tracker.o] Error 1
make: *** [Makefile:1508: _module_/var/lib/dkms/veeamsnap/2.0.1.665/build] Error 2
make: Leaving directory '/usr/src/kernels/4.18.7-200.fc28.x86_64'
[root@localhost ~]#
Any ideas? Obviously I can roll back to 4.17 in the mean time...

Thanks,
Roland.
PTide
Product Manager
Posts: 6428
Liked: 729 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Fedora 26 kernel 4.18.7

Post by PTide »

Hi,

Unfortunately the current version (2.0.1.665) supports Fedora only up to version 4.16.

Thanks.
rolandp
Influencer
Posts: 14
Liked: 1 time
Joined: Jul 05, 2012 11:38 pm
Full Name: Roland Pinches
Contact:

Re: Fedora 26 kernel 4.18.7

Post by rolandp »

Thanks for the confirmation. Is there an ETA for a build that does support more recent kernels?
rkovhaev
Veeam Software
Posts: 39
Liked: 21 times
Joined: May 17, 2010 6:49 pm
Full Name: Rustam
Location: hockey night in canada
Contact:

Re: Fedora 26 kernel 4.18.7

Post by rkovhaev » 2 people like this post

rolandp wrote: Sep 15, 2018 11:36 pm My kernel has just been updated to 4.18.7 and now veeamsnap won't build :(

Any ideas? Obviously I can roll back to 4.17 in the mean time...
in v4.18 kernel-space API changed and bioset_create()/bioset_free() were dropped, here is the commit
https://github.com/torvalds/linux/commi ... f94bc5e9b3

if you are curious about the fix, it is rather easy, you can use this
https://github.com/rustylife/veeamsnap/ ... 8a3e7c6afc

but my recommendation would be to wait for an official veeamsnap update
rolandp
Influencer
Posts: 14
Liked: 1 time
Joined: Jul 05, 2012 11:38 pm
Full Name: Roland Pinches
Contact:

Re: Fedora 26 kernel 4.18.7

Post by rolandp »

Hi rkovhaev,
Thanks for this. It does look easy, so I'll give it a go :)
Roland.
rolandp
Influencer
Posts: 14
Liked: 1 time
Joined: Jul 05, 2012 11:38 pm
Full Name: Roland Pinches
Contact:

Re: Fedora 28 kernel 4.18.7

Post by rolandp »

Hmm, maybe not so easy after all :(
I downloaded the 3 changed source files and tried to rebuild, but it fails. It looks like it is for version 2.0.0.400 rather than 2.0.1.665? Is that correct or am I just seeing an old label somewhere?
BTW, originally I said Fedora 26, but it's actually Fedora 28. Not sure it makes any difference...
rkovhaev
Veeam Software
Posts: 39
Liked: 21 times
Joined: May 17, 2010 6:49 pm
Full Name: Rustam
Location: hockey night in canada
Contact:

Re: Fedora 26 kernel 4.18.7

Post by rkovhaev »

patch in my forked veeamsnap repo is indeed for 2.0.0.400 (veeamsnap repo maintainer did not push the latest version of the driver to github)
if you want to apply the patch to 2.0.1.665 code base you need to use "git apply" or "patch" commands, you cannot just copy modified files, you need to merge the patch
rkovhaev
Veeam Software
Posts: 39
Liked: 21 times
Joined: May 17, 2010 6:49 pm
Full Name: Rustam
Location: hockey night in canada
Contact:

Re: Fedora 26 kernel 4.18.7

Post by rkovhaev » 2 people like this post

here is a patch for 2.0.1.665 code base:
https://github.com/rustylife/veeamsnap/ ... 0e885e89ad
rokko74
Novice
Posts: 9
Liked: 4 times
Joined: Sep 12, 2017 7:24 pm
Full Name: Roberto
Contact:

Re: Fedora 26 kernel 4.18.7

Post by rokko74 » 2 people like this post

rkovhaev wrote: Sep 18, 2018 5:55 am here is a patch for 2.0.1.665 code base:
https://github.com/rustylife/veeamsnap/ ... 0e885e89ad
Well done! :-)
I confirm it works, thank you very much!
torakamo
Lurker
Posts: 1
Liked: never
Joined: Oct 20, 2018 2:59 pm
Full Name: Ralf Oltmanns
Contact:

Re: Fedora 28 kernel 4.18.14-200 x86_64

Post by torakamo »

rkovhaev wrote: Sep 18, 2018 5:55 am here is a patch for 2.0.1.665 code base:
https://github.com/rustylife/veeamsnap/ ... 0e885e89ad
Hi rkovhaev,
thanks for the patch, it did build fine with 4.18.14-200 x86_64.

Code: Select all

# dkms build -m veeamsnap -v 2.0.1.665 –all
Warning: I do not know how to handle –all.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.18.14-200.fc28.x86_64 -C /lib/modules/4.18.14-200.fc28.x86_64/build M=/var/lib/dkms/veeamsnap/2.0.1.665/build....
cleaning build area...

DKMS: build completed.

# dkms install -m veeamsnap -v 2.0.1.665

veeamsnap.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.14-200.fc28.x86_64/extra/
Adding any weak-modules

depmod....

DKMS: install completed.

# dkms status
veeamsnap, 2.0.1.665, 4.18.14-200.fc28.x86_64, x86_64: installed
techcat
Influencer
Posts: 10
Liked: never
Joined: Dec 04, 2017 10:46 am
Contact:

Re: Fedora 26 kernel 4.18.7

Post by techcat »

Thanks for the patch. Working fine on Ubuntu 18.10 with Kernel 4.18.0-10-generic.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests