GithubHelp home page GithubHelp logo

notwireguard-linux-compat's People

Contributors

arndb avatar atlaua avatar davidben avatar dd3boh avatar dereference23 avatar dkg avatar el3xyz avatar eworm-de avatar gregkh avatar hashok avatar jmberg-intel avatar jsoref avatar jwh avatar kerneltoast avatar khaberz avatar mic92 avatar minipli-oss avatar nathanchance avatar neuschaefer avatar pjgeorg avatar raggi avatar seriv avatar smaeul avatar sneves avatar tharre avatar thejh avatar titanous avatar unit193 avatar vdorst avatar zx2c4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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 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

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.

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'

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.