CentOS kernel module build failure

Andrey Petrov apetrov at vmware.com
Thu Oct 5 10:12:18 CEST 2017


Hi Jason,


After applying the patch with 'git apply' I got:

DKMS make.log for wireguard-0.0.20171001 for kernel 3.10.0-693.2.2.el7.x86_64 (x86_64)
Thu Oct  5 08:10:00 UTC 2017
make: Entering directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64'
  LD      /var/lib/dkms/wireguard/0.0.20171001/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/peer.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/timers.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/queueing.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/send.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/receive.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/socket.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/hashtables.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/routingtable.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/ratelimiter.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/cookie.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20171001/build/netlink.o
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c: In function ‘netlink_init’:
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:42: error: macro "genl_register_family_with_ops" passed 3 arguments, but takes just 2
  return genl_register_family(&genl_family);
                                          ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:437:33: error: ‘genl_register_family_with_ops’ undeclared (first use in this function)
 #define genl_register_family(a) genl_register_family_with_ops(a, (struct genl_ops *)genl_ops, ARRAY_SIZE(genl_ops))
                                 ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:9: note: in expansion of macro ‘genl_register_family’
  return genl_register_family(&genl_family);
         ^
/var/lib/dkms/wireguard/0.0.20171001/build/compat/compat.h:437:33: note: each undeclared identifier is reported only once for each function it appears in
 #define genl_register_family(a) genl_register_family_with_ops(a, (struct genl_ops *)genl_ops, ARRAY_SIZE(genl_ops))
                                 ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:488:9: note: in expansion of macro ‘genl_register_family’
  return genl_register_family(&genl_family);
         ^
/var/lib/dkms/wireguard/0.0.20171001/build/netlink.c:489:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20171001/build/netlink.o] Error 1
make: *** [_module_/var/lib/dkms/wireguard/0.0.20171001/build] Error 2
make: Leaving directory `/usr/src/kernels/3.10.0-693.2.2.el7.x86_64'

- Andrey

________________________________
From: Jason A. Donenfeld <Jason at zx2c4.com>
Sent: Thursday, October 5, 2017 7:37:53 AM
To: Andrey Petrov
Cc: wireguard at lists.zx2c4.com
Subject: Re: CentOS kernel module build failure

Hey Andrey,

Sorry about that. I fixed it yesterday in the master branch. I'll roll
a new snapshot soon.

https://urldefense.proofpoint.com/v2/url?u=https-3A__git.zx2c4.com_WireGuard_patch_-3Fid-3D24e742617e47bcdb65ba4ce37fa56a107d75d0f3&d=DwIBaQ&c=uilaK90D4TOVoH58JNXRgQ&r=lWprCbBPq-RqvY_cTASTIoLEQCXNtlLeW_TMY-DsKcc&m=S_5FETsVfplUfCEryJzb6i4zFDpq7B5RqIFPinAKNms&s=tX5rcecy9pMG6HvpQ9xgyLoXmUOrwKFDUu4_UlY1X0M&e=

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20171005/5998748b/attachment.html>


More information about the WireGuard mailing list