apernet / tcp-brutal

GNU General Public License v3.0
619 stars 67 forks source link

libc.so.6: version `GLIBC_2.38' not found #18

Closed AkramiPro closed 3 months ago

AkramiPro commented 3 months ago

hi . i get this error

output for bash <(curl -fsSL https://tcp.hy2.sh/)

Checking linux-headers ... ok
Cleaning old installations ...
Checking installed version ... v1.0.2
Checking latest version ... v1.0.2
Rebuilding DKMS modules as needed ...
Sign command: /lib/modules/6.8.10-x64v4-xanmod1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j2 KERNELRELEASE=6.8.10-x64v4-xanmod1 KERNEL_DIR=/lib/modules/6.8.10-x64v4-xanmod1/build all...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.10-x64v4-xanmod1 (x86_64)
Consult /var/lib/dkms/tcp-brutal/1.0.2/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
bash <(curl -fsSL https://tcp.hy2.sh): warning: Error occurred in 'dkms autoinstall', please check above output.
Enabling auto load kernel module brutal on system boot ... ok
Loading kernel module brutal ... modprobe: FATAL: Module brutal not found in directory /lib/modules/6.8.10-x64v4-xanmod1
bash <(curl -fsSL https://tcp.hy2.sh): error: Failed to load kernel module, kernel module might not be installed successfully.
bash <(curl -fsSL https://tcp.hy2.sh): warning: tcp-brutal is installed but failed to load.
There is nothing to do today.

output for cat /var/lib/dkms/tcp-brutal/1.0.2/build/make.log

DKMS make.log for tcp-brutal-1.0.2 for kernel 6.8.10-x64v4-xanmod1 (x86_64)
Tue May 21 09:14:34 PM CEST 2024
make -C /lib/modules/6.8.10-x64v4-xanmod1/build M=/var/lib/dkms/tcp-brutal/1.0.2/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.10-x64v4-xanmod1'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-13 (Debian 13.2.0-24) 13.2.0
  You are using:           gcc (Debian 12.2.0-14) 12.2.0
  CC [M]  /var/lib/dkms/tcp-brutal/1.0.2/build/brutal.o
/var/lib/dkms/tcp-brutal/1.0.2/build/brutal.c:38:5: warning: no previous prototype for ‘tcp_sock_get_sec’ [-Wmissing-prototypes]
   38 | u64 tcp_sock_get_sec(const struct tcp_sock *tp)
      |     ^~~~~~~~~~~~~~~~
./tools/objtool/objtool: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./tools/objtool/objtool)
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/tcp-brutal/1.0.2/build/brutal.o] Error 1
make[3]: *** Deleting file '/var/lib/dkms/tcp-brutal/1.0.2/build/brutal.o'
make[2]: *** [/usr/src/linux-headers-6.8.10-x64v4-xanmod1/Makefile:2073: /var/lib/dkms/tcp-brutal/1.0.2/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.10-x64v4-xanmod1'
make: *** [Makefile:13: all] Error 2

output for uname -a

Linux s02 6.8.10-x64v4-xanmod1 #0~20240517.g2e7da9e SMP PREEMPT_DYNAMIC Fri May 17 18:22:26 UTC x86_64 GNU/Linux
AkramiPro commented 3 months ago

I fix this issue by upgrading my debian release from bookwormto trixie.

  1. sudo nano /etc/apt/sources.list
  2. change all bookworm to trixie
  3. sudo apt update && sudo apt upgrade -y

image

*credit: https://github.com/apernet/tcp-brutal/issues/7#issuecomment-2064348689

Michaol commented 3 months ago

Nice! It looks the similar way on Ubuntu.

charliez0 commented 3 months ago

warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-13 (Debian 13.2.0-24) 13.2.0 You are using: gcc (Debian 12.2.0-14) 12.2.0

解决这个吧

Michaol commented 3 months ago

warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-13 (Debian 13.2.0-24) 13.2.0 You are using: gcc (Debian 12.2.0-14) 12.2.0

解决这个吧

https://github.com/apernet/tcp-brutal/issues/7#issue-2028197881