[GH-ISSUE #220] Failure to build from source on Linux Debian sid 7.1.9+deb14-amd64 #126

Open
opened 2026-10-13 21:06:48 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @c0el on GitHub (Aug 23, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/220

Hello, I tried building from source on Debian sid 7.1.9+deb14-amd64 and make and make install returned the followind errors:

make returns:

  CC [M]  main.o
  CC [M]  noise.o
  CC [M]  device.o
  CC [M]  peer.o
  CC [M]  timers.o
  CC [M]  queueing.o
  CC [M]  send.o
  CC [M]  receive.o
  CC [M]  socket.o
socket.c: In function ‘sock_free’:
socket.c:352:37: error: passing argument 1 of ‘udp_tunnel_sock_release’ from incompatible pointer type [-Wincompatible-pointer-types]
  352 |         udp_tunnel_sock_release(sock->sk_socket);
      |                                 ~~~~^~~~~~~~~~~
      |                                     |
      |                                     struct socket *
In file included from socket.c:18:
/usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:179:43: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’
  179 | void udp_tunnel_sock_release(struct sock *sk);
      |                              ~~~~~~~~~~~~~^~
socket.c: In function ‘wg_socket_init’:
socket.c:406:36: error: passing argument 2 of ‘setup_udp_tunnel_sock’ from incompatible pointer type [-Wincompatible-pointer-types]
  406 |         setup_udp_tunnel_sock(net, new4, &cfg);
      |                                    ^~~~
      |                                    |
      |                                    struct socket *
/usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:97:58: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’
   97 | void setup_udp_tunnel_sock(struct net *net, struct sock *sk,
      |                                             ~~~~~~~~~~~~~^~
socket.c:413:49: error: passing argument 1 of ‘udp_tunnel_sock_release’ from incompatible pointer type [-Wincompatible-pointer-types]
  413 |                         udp_tunnel_sock_release(new4);
      |                                                 ^~~~
      |                                                 |
      |                                                 struct socket *
/usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:179:43: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’
  179 | void udp_tunnel_sock_release(struct sock *sk);
      |                              ~~~~~~~~~~~~~^~
socket.c:421:44: error: passing argument 2 of ‘setup_udp_tunnel_sock’ from incompatible pointer type [-Wincompatible-pointer-types]
  421 |                 setup_udp_tunnel_sock(net, new6, &cfg);
      |                                            ^~~~
      |                                            |
      |                                            struct socket *
/usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:97:58: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’
   97 | void setup_udp_tunnel_sock(struct net *net, struct sock *sk,
      |                                             ~~~~~~~~~~~~~^~
make[3]: *** [/usr/src/linux-headers-7.1.9+deb14-common/scripts/Makefile.build:294: socket.o] Error 1
make[2]: *** [/usr/src/linux-headers-7.1.9+deb14-common/Makefile:2189: .] Error 2
make[1]: *** [/usr/src/linux-headers-7.1.9+deb14-common/Makefile:260: __sub-make] Error 2
make: *** [Makefile:27: module] Error 2

sudo make install returns:

  INSTALL /lib/modules/7.1.9+deb14-amd64/updates/amneziawg.ko
  SIGN    /lib/modules/7.1.9+deb14-amd64/updates/amneziawg.ko
At main.c:137:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-7.1.9+deb14-amd64/output/signing_key.pem
  XZ      /lib/modules/7.1.9+deb14-amd64/updates/amneziawg.ko.xz
  DEPMOD  /lib/modules/7.1.9+deb14-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.
depmod -b "/" -a 7.1.9+deb14-amd64
Originally created by @c0el on GitHub (Aug 23, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/220 Hello, I tried building from source on Debian sid 7.1.9+deb14-amd64 and make and make install returned the followind errors: make returns: ``` CC [M] main.o CC [M] noise.o CC [M] device.o CC [M] peer.o CC [M] timers.o CC [M] queueing.o CC [M] send.o CC [M] receive.o CC [M] socket.o socket.c: In function ‘sock_free’: socket.c:352:37: error: passing argument 1 of ‘udp_tunnel_sock_release’ from incompatible pointer type [-Wincompatible-pointer-types] 352 | udp_tunnel_sock_release(sock->sk_socket); | ~~~~^~~~~~~~~~~ | | | struct socket * In file included from socket.c:18: /usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:179:43: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’ 179 | void udp_tunnel_sock_release(struct sock *sk); | ~~~~~~~~~~~~~^~ socket.c: In function ‘wg_socket_init’: socket.c:406:36: error: passing argument 2 of ‘setup_udp_tunnel_sock’ from incompatible pointer type [-Wincompatible-pointer-types] 406 | setup_udp_tunnel_sock(net, new4, &cfg); | ^~~~ | | | struct socket * /usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:97:58: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’ 97 | void setup_udp_tunnel_sock(struct net *net, struct sock *sk, | ~~~~~~~~~~~~~^~ socket.c:413:49: error: passing argument 1 of ‘udp_tunnel_sock_release’ from incompatible pointer type [-Wincompatible-pointer-types] 413 | udp_tunnel_sock_release(new4); | ^~~~ | | | struct socket * /usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:179:43: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’ 179 | void udp_tunnel_sock_release(struct sock *sk); | ~~~~~~~~~~~~~^~ socket.c:421:44: error: passing argument 2 of ‘setup_udp_tunnel_sock’ from incompatible pointer type [-Wincompatible-pointer-types] 421 | setup_udp_tunnel_sock(net, new6, &cfg); | ^~~~ | | | struct socket * /usr/src/linux-headers-7.1.9+deb14-common/include/net/udp_tunnel.h:97:58: note: expected ‘struct sock *’ but argument is of type ‘struct socket *’ 97 | void setup_udp_tunnel_sock(struct net *net, struct sock *sk, | ~~~~~~~~~~~~~^~ make[3]: *** [/usr/src/linux-headers-7.1.9+deb14-common/scripts/Makefile.build:294: socket.o] Error 1 make[2]: *** [/usr/src/linux-headers-7.1.9+deb14-common/Makefile:2189: .] Error 2 make[1]: *** [/usr/src/linux-headers-7.1.9+deb14-common/Makefile:260: __sub-make] Error 2 make: *** [Makefile:27: module] Error 2 ``` sudo make install returns: ``` INSTALL /lib/modules/7.1.9+deb14-amd64/updates/amneziawg.ko SIGN /lib/modules/7.1.9+deb14-amd64/updates/amneziawg.ko At main.c:137: - SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67 - SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75 sign-file: /usr/src/linux-headers-7.1.9+deb14-amd64/output/signing_key.pem XZ /lib/modules/7.1.9+deb14-amd64/updates/amneziawg.ko.xz DEPMOD /lib/modules/7.1.9+deb14-amd64 Warning: modules_install: missing 'System.map' file. Skipping depmod. depmod -b "/" -a 7.1.9+deb14-amd64 ```
Author
Owner

@ulcuber commented on GitHub (Aug 25, 2026):

Same on 7.1.8-artix1-3 / 7.1.9-artix1-2


Workaround:

sudo pacman -S linux-lts linux-lts-headers
cd src
ln -s /usr/src/linux-lts kernel
...

On 6.18.46-1-lts still compiles

<!-- gh-comment-id:5405618334 --> @ulcuber commented on GitHub (Aug 25, 2026): Same on `7.1.8-artix1-3` / `7.1.9-artix1-2` --- Workaround: ```bash sudo pacman -S linux-lts linux-lts-headers cd src ln -s /usr/src/linux-lts kernel ... ``` On `6.18.46-1-lts` still compiles
Author
Owner

@c0el commented on GitHub (Aug 27, 2026):

Interesting, I'll check this solution when I have the time. Thanks!

<!-- gh-comment-id:5434125762 --> @c0el commented on GitHub (Aug 27, 2026): Interesting, I'll check this solution when I have the time. Thanks!
Author
Owner

@c0el commented on GitHub (Aug 27, 2026):

I was basically downloading the tar file for the kernel from debian repo with wget, and then ln -s to it.

<!-- gh-comment-id:5434137646 --> @c0el commented on GitHub (Aug 27, 2026): I was basically downloading the tar file for the kernel from debian repo with wget, and then ln -s to it.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#126
No description provided.