GithubHelp home page GithubHelp logo

notwireguard-linux-compat's Issues

Build error on Archlinux ARM aarch64

There seems to be an error when building DKMS modules on aarch64 kernels like on the raspberry pi, details below:

(1/1) installing notwireguard-dkms                                       [########################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod notwireguard/1.0.20211208 -k 5.10.83-1-rpi-ARCH
Error! Bad return status for module build on kernel: 5.10.83-1-rpi-ARCH (aarch64)
Consult /var/lib/dkms/notwireguard/1.0.20211208/build/make.log for more information.
==> WARNING: `dkms install --no-depmod notwireguard/1.0.20211208 -k 5.10.83-1-rpi-ARCH' exited 10

Here's make.log:

DKMS make.log for notwireguard-1.0.20211208 for kernel 5.10.83-1-rpi-ARCH (aarch64)
Tue Dec 14 02:42:53 PM EET 2021
make: Entering directory '/usr/lib/modules/5.10.83-1-rpi-ARCH/build'
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/main.o
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/noise.o
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/device.o
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/peer.o
/var/lib/dkms/notwireguard/1.0.20211208/build/device.c:230:21: error: ‘dev_get_tstats64’ undeclared here (not in a function); did you mean ‘dev_get_stats’?
  230 |  .ndo_get_stats64 = dev_get_tstats64
      |                     ^~~~~~~~~~~~~~~~
      |                     dev_get_stats
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/notwireguard/1.0.20211208/build/device.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1825: /var/lib/dkms/notwireguard/1.0.20211208/build] Error 2
make: Leaving directory '/usr/lib/modules/5.10.83-1-rpi-ARCH/build'

Kernel version:
Linux pi 5.10.83-1-rpi-ARCH #1 SMP PREEMPT Tue Dec 7 15:21:39 UTC 2021 aarch64 GNU/Linux

Error while building DKMS on Raspberry Pi OS with Linux 6.6.20

DKMS make.log for notwireguard-1.0.20220627 for kernel 6.6.20+rpt-rpi-2712 (aarch64) Tue 12 Mar 13:14:57 EET 2024 make: Entering directory '/usr/src/linux-headers-6.6.20+rpt-rpi-2712' CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/main.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/noise.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/device.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/peer.o In file included from /usr/src/linux-headers-6.6.20+rpt-common-rpi/include/crypto/algapi.h:10, from /var/lib/dkms/notwireguard/1.0.20220627/build/noise.c:18: /usr/src/linux-headers-6.6.20+rpt-common-rpi/include/crypto/utils.h:68:19: error: redefinition of ‘crypto_memneq’ 68 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ^~~~~~~~~~~~~ In file included from <command-line>: /var/lib/dkms/notwireguard/1.0.20220627/build/compat/memneq/include.h:2:19: note: previous definition of ‘crypto_memneq’ with type ‘int(const void *, const void *, size_t)’ {aka ‘int(const void *, const void *, long unsigned int)’} 2 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ^~~~~~~~~~~~~ CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/timers.o make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/noise.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/lib/dkms/notwireguard/1.0.20220627/build/device.c: In function ‘wg_xmit’: /var/lib/dkms/notwireguard/1.0.20220627/build/device.c:170:40: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘skb_gso_reset’? [-Werror=implicit-function-declaration] 170 | struct sk_buff *segs = skb_gso_segment(skb, 0); | ^~~~~~~~~~~~~~~ | skb_gso_reset /var/lib/dkms/notwireguard/1.0.20220627/build/device.c:170:40: warning: initialization of ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/device.o] Error 1 /var/lib/dkms/notwireguard/1.0.20220627/build/timers.c: In function ‘wg_timers_data_sent’: /var/lib/dkms/notwireguard/1.0.20220627/build/timers.c:150:25: error: implicit declaration of function ‘prandom_u32_max’; did you mean ‘prandom_u32_state’? [-Werror=implicit-function-declaration] 150 | prandom_u32_max(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); | ^~~~~~~~~~~~~~~ | prandom_u32_state cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/timers.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:1938: /var/lib/dkms/notwireguard/1.0.20220627/build] Error 2 make: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:246: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-2712'

Error while building DKMS on ArchLinux ARM with Linux 6.1.14

==> dkms install --no-depmod notwireguard/1.0.20220627 -k 6.1.14-1-rpi-ARCH Error! Bad return status for module build on kernel: 6.1.14-1-rpi-ARCH (aarch64) Consult /var/lib/dkms/notwireguard/1.0.20220627/build/make.log for more information. ==> WARNING: dkms install --no-depmod notwireguard/1.0.20220627 -k 6.1.14-1-rpi-ARCH' exited 10`

DKMS make.log for notwireguard-1.0.20220627 for kernel 6.1.14-1-rpi-ARCH (aarch64) Fri Mar 3 04:52:37 PM EET 2023 warning: the compiler differs from the one used to build the kernel The kernel was built by: aarch64-unknown-linux-gnu-gcc (GCC) 12.1.0 You are using: gcc (GCC) 12.1.0 /var/lib/dkms/notwireguard/1.0.20220627/build/peer.c: In function ‘wg_peer_create’: /var/lib/dkms/notwireguard/1.0.20220627/build/peer.c:57:9: error: too many arguments to function ‘netif_napi_add’ 57 | netif_napi_add(wg->dev, &peer->napi, wg_packet_rx_poll, | ^~~~~~~~~~~~~~ In file included from ./include/net/sock.h:46, from ./include/linux/tcp.h:19, from ./include/linux/ipv6.h:93, from /var/lib/dkms/notwireguard/1.0.20220627/build/allowedips.h:11, from /var/lib/dkms/notwireguard/1.0.20220627/build/device.h:10, from /var/lib/dkms/notwireguard/1.0.20220627/build/peer.h:9, from /var/lib/dkms/notwireguard/1.0.20220627/build/peer.c:6: ./include/linux/netdevice.h:2569:1: note: declared here 2569 | netif_napi_add(struct net_device *dev, struct napi_struct *napi, | ^~~~~~~~~~~~~~ make[1]: *** [scripts/Makefile.build:250: /var/lib/dkms/notwireguard/1.0.20220627/build/peer.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2005: /var/lib/dkms/notwireguard/1.0.20220627/build] Error 2

debian stable not make

Kernel version 5.10.0-16-amd64 #1 SMP Debian 5.10.127-2 (2022-07-23) x86_64 GNU/Linux
make error:

  CC [M]  /usr/src/notwireguard-linux-compat/src/main.o
In file included from <command-line>:
/usr/src/notwireguard-linux-compat/src/compat/compat.h:71:32: error: conflicting types for ‘flowi4_to_flowi’
   71 | #define flowi4_to_flowi_common flowi4_to_flowi
      |                                ^~~~~~~~~~~~~~~
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h:198:36: note: in expansion of macro ‘flowi4_to_flowi_common’
  198 | static inline struct flowi_common *flowi4_to_flowi_common(struct flowi4 *fl4)
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.10.0-16-common/include/linux/skbuff.h:39,
                 from /usr/src/notwireguard-linux-compat/src/messages.h:15,
                 from /usr/src/notwireguard-linux-compat/src/noise.h:8,
                 from /usr/src/notwireguard-linux-compat/src/device.h:9,
                 from /usr/src/notwireguard-linux-compat/src/main.c:7:
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h:193:29: note: previous definition of ‘flowi4_to_flowi’ was here
  193 | static inline struct flowi *flowi4_to_flowi(struct flowi4 *fl4)
      |                             ^~~~~~~~~~~~~~~
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h: In function ‘flowi4_to_flowi’:
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h:200:31: error: ‘struct flowi_common’ has no member named ‘u’
  200 |  return &(flowi4_to_flowi(fl4)->u.__fl_common);
      |                               ^~
In file included from <command-line>:
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h: At top level:
/usr/src/notwireguard-linux-compat/src/compat/compat.h:70:32: error: conflicting types for ‘flowi6_to_flowi’
   70 | #define flowi6_to_flowi_common flowi6_to_flowi
      |                                ^~~~~~~~~~~~~~~
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h:208:36: note: in expansion of macro ‘flowi6_to_flowi_common’
  208 | static inline struct flowi_common *flowi6_to_flowi_common(struct flowi6 *fl6)
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.10.0-16-common/include/linux/skbuff.h:39,
                 from /usr/src/notwireguard-linux-compat/src/messages.h:15,
                 from /usr/src/notwireguard-linux-compat/src/noise.h:8,
                 from /usr/src/notwireguard-linux-compat/src/device.h:9,
                 from /usr/src/notwireguard-linux-compat/src/main.c:7:
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h:203:29: note: previous definition of ‘flowi6_to_flowi’ was here
  203 | static inline struct flowi *flowi6_to_flowi(struct flowi6 *fl6)
      |                             ^~~~~~~~~~~~~~~
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h: In function ‘flowi6_to_flowi’:
/usr/src/linux-headers-5.10.0-16-common/include/net/flow.h:210:31: error: ‘struct flowi_common’ has no member named ‘u’
  210 |  return &(flowi6_to_flowi(fl6)->u.__fl_common);
      |                               ^~
make[3]: *** [/usr/src/linux-headers-5.10.0-16-common/scripts/Makefile.build:285: /usr/src/notwireguard-linux-compat/src/main.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-16-common/Makefile:1846: /usr/src/notwireguard-linux-compat/src] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-16-common/Makefile:185: __sub-make] Error 2
make: *** [Makefile:26: module] Error 2

Error while installing latest release on debian

The below error is recieved when installing the latest release on Debian 11.5:
sudo dpkg -i notwireguard-dkms_1.0.20220627_all.deb dpkg-deb: error: archive 'notwireguard-dkms_1.0.20220627_all.deb' uses unknown compression for member 'control.tar.zst', giving up dpkg: error processing archive notwireguard-dkms_1.0.20220627_all.deb (--install): dpkg-deb --control subprocess returned error exit status 2 Errors were encountered while processing: notwireguard-dkms_1.0.20220627_all.deb

Error while building DKMS on ArchLinux ARM with Linux 6.6.10

Fails with the below error.

DKMS make.log for notwireguard-1.0.20230303 for kernel 6.6.10-1-rpi-ARCH (aarch64)
Mon Jan  8 06:49:36 PM EET 2024
make: Entering directory '/usr/lib/modules/6.6.10-1-rpi-ARCH/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: aarch64-unknown-linux-gnu-gcc (GCC) 12.1.0
  You are using:           gcc (GCC) 12.1.0
make[2]: *** .NOTINTERMEDIATE and .SECONDARY are mutually exclusive.  Stop.
make[1]: *** [/usr/lib/modules/6.6.10-1-rpi-ARCH/build/Makefile:1913: /var/lib/dkms/notwireguard/1.0.20230303/build] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/lib/modules/6.6.10-1-rpi-ARCH/build'

Build failure while installing DKMS module after kernel update

After updating the kernel using pacman on Arch Linux to 5.10.88, the following error was shown on "install DKMS modules" phase:

==> dkms install --no-depmod notwireguard/1.0.20211208 -k 5.10.88-1-rpi-ARCH                                                                                                                    
Error! Bad return status for module build on kernel: 5.10.88-1-rpi-ARCH (aarch64)                                                                                                               
Consult /var/lib/dkms/notwireguard/1.0.20211208/build/make.log for more information.                                                                                                            
==> WARNING: `dkms install --no-depmod notwireguard/1.0.20211208 -k 5.10.88-1-rpi-ARCH' exited 10```

make.log output:
```DKMS make.log for notwireguard-1.0.20211208 for kernel 5.10.88-1-rpi-ARCH (aarch64)
Fri Dec 31 12:47:29 AM EET 2021
make: Entering directory '/usr/lib/modules/5.10.88-1-rpi-ARCH/build'
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/main.o
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/noise.o
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/device.o
  CC [M]  /var/lib/dkms/notwireguard/1.0.20211208/build/peer.o
In file included from <command-line>:
/var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1141:20: error: static declaration of ‘dst_cache_reset_now’ follows non-static declaration
 1141 | static inline void dst_cache_reset_now(struct dst_cache *dst_cache)
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1130,
                 from <command-line>:
./include/net/dst_cache.h:91:6: note: previous declaration of ‘dst_cache_reset_now’ was here
   91 | void dst_cache_reset_now(struct dst_cache *dst_cache);
      |      ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
/var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1141:20: error: static declaration of ‘dst_cache_reset_now’ follows non-static declaration
 1141 | static inline void dst_cache_reset_now(struct dst_cache *dst_cache)
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1130,
                 from <command-line>:
./include/net/dst_cache.h:91:6: note: previous declaration of ‘dst_cache_reset_now’ was here
   91 | void dst_cache_reset_now(struct dst_cache *dst_cache);
      |      ^~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/notwireguard/1.0.20211208/build/peer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from <command-line>:
/var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1141:20: error: static declaration of ‘dst_cache_reset_now’ follows non-static declaration
 1141 | static inline void dst_cache_reset_now(struct dst_cache *dst_cache)
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1130,
                 from <command-line>:
./include/net/dst_cache.h:91:6: note: previous declaration of ‘dst_cache_reset_now’ was here
   91 | void dst_cache_reset_now(struct dst_cache *dst_cache);
      |      ^~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/notwireguard/1.0.20211208/build/noise.o] Error 1
In file included from <command-line>:
/var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1141:20: error: static declaration of ‘dst_cache_reset_now’ follows non-static declaration
 1141 | static inline void dst_cache_reset_now(struct dst_cache *dst_cache)
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/notwireguard/1.0.20211208/build/compat/compat.h:1130,
                 from <command-line>:
./include/net/dst_cache.h:91:6: note: previous declaration of ‘dst_cache_reset_now’ was here
   91 | void dst_cache_reset_now(struct dst_cache *dst_cache);
      |      ^~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/notwireguard/1.0.20211208/build/device.o] Error 1
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/notwireguard/1.0.20211208/build/main.o] Error 1
make: *** [Makefile:1825: /var/lib/dkms/notwireguard/1.0.20211208/build] Error 2
make: Leaving directory '/usr/lib/modules/5.10.88-1-rpi-ARCH/build'

Package was created by makepkg -si on HEAD tree.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.