Open KacperKsiez opened 1 year ago
I'm having the same problem
git reset --hard f79dffb49b567a854c4f510a93a6d901caf63342
Yes, need to revert the latest PR.
Errors after make command
/home/kacper/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated.
Full log
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.0.12-arch1-1/build M=/home/kacper/rtl8188eus modules make[1]: Entering directory '/usr/lib/modules/6.0.12-arch1-1/build' CC [M] /home/kacper/rtl8188eus/core/rtw_cmd.o /home/kacper/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:249: /home/kacper/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1852: /home/kacper/rtl8188eus] Error 2 make[1]: Leaving directory '/usr/lib/modules/6.0.12-arch1-1/build' make: *** [Makefile:2062: modules] Error 2
try this in driver dir then try build again and show screenshot
sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile
yea i have the same error too
yea i have the same error too
try the solution in my comment
┌──(loai㉿kali)-[~/rtl8188eus]
└─$ sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile
┌──(loai㉿kali)-[~/rtl8188eus]
└─$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/loai/rtl8188eus modules
make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-amd64'
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.2.0-19) 11.2.0
You are using: gcc-11 (Debian 11.3.0-8) 11.3.0
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
CC [M] /home/loai/rtl8188eus/core/rtw_cmd.o
/home/loai/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory
17 | #include <drv_types.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-5.16.0-kali7-common/scripts/Makefile.build:292: /home/loai/rtl8188eus/core/rtw_cmd.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:1870: /home/loai/rtl8188eus] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali7-amd64'
make: *** [Makefile:2062: modules] Error 2
Same Error
┌──(loai㉿kali)-[~/rtl8188eus] └─$ sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile ┌──(loai㉿kali)-[~/rtl8188eus] └─$ sudo make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/loai/rtl8188eus modules make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-amd64' /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-11 (Debian 11.2.0-19) 11.2.0 You are using: gcc-11 (Debian 11.3.0-8) 11.3.0 /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found CC [M] /home/loai/rtl8188eus/core/rtw_cmd.o /home/loai/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [/usr/src/linux-headers-5.16.0-kali7-common/scripts/Makefile.build:292: /home/loai/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:1870: /home/loai/rtl8188eus] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali7-amd64' make: *** [Makefile:2062: modules] Error 2
Same Error
sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
┌──(loai㉿kali)-[~/rtl8188eus]
└─$ sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile
i had just do it before make cmd
Still the same Error
┌──(loai㉿kali)-[~/rtl8188eus] └─$ sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile
i had just do it before make cmd
it's different, show me current bug
┌──(loai㉿kali)-[~/rtl8188eus]
└─$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/loai/rtl8188eus modules
make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-amd64'
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.2.0-19) 11.2.0
You are using: gcc-11 (Debian 11.3.0-8) 11.3.0
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
CC [M] /home/loai/rtl8188eus/core/rtw_cmd.o
/home/loai/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory
17 | #include <drv_types.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-5.16.0-kali7-common/scripts/Makefile.build:292: /home/loai/rtl8188eus/core/rtw_cmd.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:1870: /home/loai/rtl8188eus] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali7-amd64'
make: *** [Makefile:2062: modules] Error 2
┌──(loai㉿kali)-[~/rtl8188eus] └─$ sudo make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/loai/rtl8188eus modules make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-amd64' /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-11 (Debian 11.2.0-19) 11.2.0 You are using: gcc-11 (Debian 11.3.0-8) 11.3.0 /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found CC [M] /home/loai/rtl8188eus/core/rtw_cmd.o /home/loai/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [/usr/src/linux-headers-5.16.0-kali7-common/scripts/Makefile.build:292: /home/loai/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:1870: /home/loai/rtl8188eus] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali7-amd64' make: *** [Makefile:2062: modules] Error 2
ok let's use default path for now, I'll also try something to avoid this bug for 5.4 kernels
sed -i 's/$(pwd)/$(src)/'g Makefile
bro, i have executed this sed -i 's/$(pwd)/$(src)/'g Makefile
for like 20 times in ~/rtl8188eus
directory and nothing works
┌──(loai㉿kali)-[~/rtl8188eus] └─$ sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile ┌──(loai㉿kali)-[~/rtl8188eus] └─$ sudo make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/loai/rtl8188eus modules make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-amd64' /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-11 (Debian 11.2.0-19) 11.2.0 You are using: gcc-11 (Debian 11.3.0-8) 11.3.0 /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found CC [M] /home/loai/rtl8188eus/core/rtw_cmd.o /home/loai/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [/usr/src/linux-headers-5.16.0-kali7-common/scripts/Makefile.build:292: /home/loai/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:1870: /home/loai/rtl8188eus] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali7-amd64' make: *** [Makefile:2062: modules] Error 2
Same Error
sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
wait i think this command is wrong, i added $(srctree)/$(src)
but it's aready removed by previous command https://github.com/aircrack-ng/rtl8188eus/issues/220#issuecomment-1358935037
bro, i have executed this
sed -i 's/$(pwd)/$(src)/'g Makefile
for like 20 times in~/rtl8188eus
directory and nothing works
you didn't read it, there are different stuff if you take a look
ok , i will remove the repo
and try to git clone
again and try the sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
ok , i will remove the
repo
and try togit clone
again and try thesed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
don't lol, do sed -i 's/$(pwd)/$(pwd)\/$(src)/'g Makefile
i have already delete it 😁
Thanks a lot. It worked
Thanks a lot. It worked
do grep -r "/include" Makefile
and show me screenshot
┌──(kali㉿kali)-[~/rtl8188eus]
└─$ grep -r "/include" Makefile
EXTRA_CFLAGS += -I$(pwd)/$(src)/include
Hello, coincidentally I'm having the same problem as I'm too trying to compile the driver with a nethunter kernel.
I tried your suggestion of sed -i 's/$(pwd)/$(pwd)\/$(src)/'g Makefile
but it's yielding the same error of:
rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
The full compilation log:
paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error"
make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules
make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter'
WARNING: Symbol version dump ./Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o
/home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
#include <drv_types.h>
^
compilation terminated.
make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2
make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter'
make: *** [Makefile:2062: modules] Error 2
Any idea how I can fix that? Would really appreciate it if there's a remedy to this :D
Hello, coincidentally I'm having the same problem as I'm too trying to compile the driver with a nethunter kernel. I tried your suggestion of
sed -i 's/$(pwd)/$(pwd)\/$(src)/'g Makefile
but it's yielding the same error of:rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
The full compilation log:
paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error" make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter' WARNING: Symbol version dump ./Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o /home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory #include <drv_types.h> ^ compilation terminated. make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2 make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter' make: *** [Makefile:2062: modules] Error 2
Any idea how I can fix that? Would really appreciate it if there's a remedy to this :D
sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
Hello, coincidentally I'm having the same problem as I'm too trying to compile the driver with a nethunter kernel. I tried your suggestion of
sed -i 's/$(pwd)/$(pwd)\/$(src)/'g Makefile
but it's yielding the same error of:rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
The full compilation log:paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error" make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter' WARNING: Symbol version dump ./Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o /home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory #include <drv_types.h> ^ compilation terminated. make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2 make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter' make: *** [Makefile:2062: modules] Error 2
Any idea how I can fix that? Would really appreciate it if there's a remedy to this :D
sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
Thanks for the help :DD Still the same thing apparently:
paimon@buildsrv:~/rtl8188eus$ sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error"
make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules
make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter'
WARNING: Symbol version dump ./Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o
/home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
#include <drv_types.h>
^
compilation terminated.
make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2
make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter'
make: *** [Makefile:2062: modules] Error 2
Hello, coincidentally I'm having the same problem as I'm too trying to compile the driver with a nethunter kernel. I tried your suggestion of
sed -i 's/$(pwd)/$(pwd)\/$(src)/'g Makefile
but it's yielding the same error of:rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
The full compilation log:paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error" make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter' WARNING: Symbol version dump ./Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o /home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory #include <drv_types.h> ^ compilation terminated. make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2 make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter' make: *** [Makefile:2062: modules] Error 2
Any idea how I can fix that? Would really appreciate it if there's a remedy to this :D
sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile
Thanks for the help :DD Still the same thing apparently:
paimon@buildsrv:~/rtl8188eus$ sed -i 's/$(srctree)\/$(src)/$(pwd)\/$(src)/'g Makefile paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error" make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter' WARNING: Symbol version dump ./Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o /home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory #include <drv_types.h> ^ compilation terminated. make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2 make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter' make: *** [Makefile:2062: modules] Error 2
dot this https://github.com/aircrack-ng/rtl8188eus/issues/220#issuecomment-1359117072
What it shows:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile
EXTRA_CFLAGS += -I$(src)/include
What it shows:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(src)/include
sed -i 's/$(src)/$(pwd)\/$(src)/'g Makefile
Still yields the same:
paimon@buildsrv:~/rtl8188eus$ sed -i 's/$(src)/$(pwd)\/$(src)/'g Makefile
paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error"
make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules
make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter'
WARNING: Symbol version dump ./Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o
/home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory
#include <drv_types.h>
^
compilation terminated.
make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2
make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter'
make: *** [Makefile:2062: modules] Error 2
the output of:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile
EXTRA_CFLAGS += -I$(pwd)/$(pwd)/$(src)/include
Still yields the same:
paimon@buildsrv:~/rtl8188eus$ sed -i 's/$(src)/$(pwd)\/$(src)/'g Makefile paimon@buildsrv:~/rtl8188eus$ make KSRC=~/santoni_headers/lib/modules/*/build EXTRA_CFLAGS="-Wno-error" make ARCH=arm64 CROSS_COMPILE=/home/paimon/santoni_kernel_nethunter/toolchain/bin/aarch64-linux-android- -C /home/paimon/santoni_headers/lib/modules/*/build M=/home/paimon/rtl8188eus modules make[1]: Entering directory '/home/paimon/santoni_kernel_nethunter' WARNING: Symbol version dump ./Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/paimon/rtl8188eus/core/rtw_cmd.o /home/paimon/rtl8188eus/core/rtw_cmd.c:17:23: fatal error: drv_types.h: No such file or directory #include <drv_types.h> ^ compilation terminated. make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2 make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter' make: *** [Makefile:2062: modules] Error 2
the output of:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(pwd)/$(pwd)/$(src)/include
you broke the path dude
sed -i 's/$(pwd)\/$(pwd)\/$(src)/$(pwd)\/$(src)/'g Makefile
be carefully when typing it this time
I double-checked it and welp, still no progress
This time though:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile
EXTRA_CFLAGS += -I$(pwd)/$(src)/include
I double-checked it and welp, still no progress
This time though:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(pwd)/$(src)/include
tried build now?
I double-checked it and welp, still no progress This time though:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(pwd)/$(src)/include
tried build now?
Yes I did and the result is still the same
I double-checked it and welp, still no progress This time though:
paimon@buildsrv:~/rtl8188eus$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(pwd)/$(src)/include
tried build now?
Yes I did and the result is still the same
try this https://github.com/aircrack-ng/rtl8188eus/issues/220#issuecomment-1359104073
don't forget to show me /include output also
@Quang-vip @JpvMaking
try apply this patch and build again, i will also try it on kernel source
wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < *patch && rm -rf *patch
@Quang-vip @JpvMaking
try apply this patch and build again, i will also try it on kernel source
wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < *patch && rm -rf *patch
it worked for me!
@Quang-vip @JpvMaking
try apply this patch and build again, i will also try it on kernel source
wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < *patch && rm -rf *patch
Thanks, it worked
@Quang-vip @JpvMaking
try apply this patch and build again, i will also try it on kernel source
wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < *patch && rm -rf *patch
frustratingly enough, still the same issue after I had repulled the source and applied your patch perhaps it's something wrong with my kernel headers?
the output of /include after the patch :
paimon@paimon:~/rtl8188eus$ grep -r "/include" Makefile
EXTRA_CFLAGS += -I$(src)/include
EXTRA_CFLAGS += -I$(srctree)/$(src)/include
@Quang-vip @JpvMaking try apply this patch and build again, i will also try it on kernel source
wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < *patch && rm -rf *patch
frustratingly enough, still the same issue after I had repulled the source and applied your patch perhaps it's something wrong with my kernel headers?
the output of /include after the patch :
paimon@paimon:~/rtl8188eus$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(src)/include EXTRA_CFLAGS += -I$(srctree)/$(src)/include
try build with default kernel headers not phone one
try build with default kernel headers not phone one
now it succeeds, so it's my nethunter kernel headers' fault
nevertheless, thanks a lot for your contribution :D seems like my problem is much deeper than that
try build with default kernel headers not phone one
now it succeeds, so it's my nethunter kernel headers' fault
nevertheless, thanks a lot for your contribution :D seems like my problem is much deeper than that
you can give this a try with your phone kernel header https://github.com/aircrack-ng/rtl8188eus/pull/222/commits/3a4ce2bde940b02a476577acf87087dacbffe34c
wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < patch && rm -rf patch
Thank you so much, patch worked perfectly!
try build with default kernel headers not phone one
now it succeeds, so it's my nethunter kernel headers' fault nevertheless, thanks a lot for your contribution :D seems like my problem is much deeper than that
you can give this a try with your phone kernel header 3a4ce2b
if I remove the EXTRA_CFLAGS="-Wno-error"
, it'd go smoothly until this point:
...
CC [M] /home/paimon/rtl8188eus/os_dep/linux/xmit_linux.o
CC [M] /home/paimon/rtl8188eus/os_dep/linux/mlme_linux.o
CC [M] /home/paimon/rtl8188eus/os_dep/linux/recv_linux.o
CC [M] /home/paimon/rtl8188eus/os_dep/linux/ioctl_cfg80211.o
/home/paimon/rtl8188eus/os_dep/linux/ioctl_cfg80211.c: In function 'cfg80211_rtw_change_iface':
/home/paimon/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:2376:2: warning: empty declaration
error, forbidden warning: ioctl_cfg80211.c:2376
make[2]: *** [scripts/Makefile.build:258: /home/paimon/rtl8188eus/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1408: _module_/home/paimon/rtl8188eus] Error 2
make[1]: Leaving directory '/home/paimon/santoni_kernel_nethunter'
make: *** [Makefile:2062: modules] Error 2
I googled this and that's the purpose of the -Wno-error
flag I suppose
but then it wouldn't be able to find _drvtypes.h if I pass that flag in
really confusing tbh
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9]
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali5-amd64/build M=/home/kali/Desktop/rtl8188eus-5.3.9 modules
make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0
You are using: gcc-11 (Debian 11.3.0-8) 11.3.0
CC [M] /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o
/home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory
17 | #include ~~~~
compilation terminated.
make[2]: [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o] Error 1
make[1]: [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /home/kali/Desktop/rtl8188eus-5.3.9] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
make: *** [Makefile:2062: modules] Error 2
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ sed -i 's/$(srctree)\/$(src)/$(pwd)/'g Makefile
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9]
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali5-amd64/build M=/home/kali/Desktop/rtl8188eus-5.3.9 modules
make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0
You are using: gcc-11 (Debian 11.3.0-8) 11.3.0
CC [M] /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o
/home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory
17 | #include ~~~~
compilation terminated.
make[2]: [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o] Error 1
make[1]: [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /home/kali/Desktop/rtl8188eus-5.3.9] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
make: *** [Makefile:2062: modules] Error 2
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ So i tried the above suggestions and i still get the same error ### messages.So i tried the patch and got...
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < patch && rm -rf patch --2022-12-23 22:39:22-- https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1113 (1.1K) [text/plain] Saving to: ‘5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch.1’
5e3cfb4be0258dbca0ad553be5dc04d0829dbd04. 100%[===================================================================================>] 1.09K --.-KB/s in 0s
2022-12-23 22:39:23 (11.1 MB/s) - ‘5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch.1’ saved [1113/1113]
patching file Makefile Hunk #1 FAILED at 19. Hunk #2 FAILED at 226. 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej so tried the flag call and got...
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9]
└─$ grep -r "/include" Makefile
EXTRA_CFLAGS += -I$(pwd)/$(src)/include
EXTRA_CFLAGS += -I$(srctree)/$(pwd)/$(src)/include EXTRA_CFLAGS: command not found
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali5-amd64/build M=/home/kali/Desktop/rtl8188eus-5.3.9 modules make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-amd64' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0 You are using: gcc-11 (Debian 11.3.0-8) 11.3.0 CC [M] /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include
| ^ ~~~~ compilation terminated. make[2]: [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o] Error 1 make[1]: [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /home/kali/Desktop/rtl8188eus-5.3.9] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-amd64' make: *** [Makefile:2062: modules] Error 2┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ sed -i 's/$(srctree)/$(src)/$(pwd)/'g Makefile
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali5-amd64/build M=/home/kali/Desktop/rtl8188eus-5.3.9 modules make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-amd64' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0 You are using: gcc-11 (Debian 11.3.0-8) 11.3.0 CC [M] /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include
| ^ ~~~~ compilation terminated. make[2]: [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /home/kali/Desktop/rtl8188eus-5.3.9/core/rtw_cmd.o] Error 1 make[1]: [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /home/kali/Desktop/rtl8188eus-5.3.9] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-amd64' make: *** [Makefile:2062: modules] Error 2┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ So i tried the above suggestions and i still get the same error ### messages.So i tried the patch and got...
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ wget https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch && patch -p1 < patch && rm -rf patch --2022-12-23 22:39:22-- https://github.com/MrRob0-X/rtl8188eus/commit/5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1113 (1.1K) [text/plain] Saving to: ‘5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch.1’
5e3cfb4. 100%[===================================================================================>] 1.09K --.-KB/s in 0s
2022-12-23 22:39:23 (11.1 MB/s) - ‘5e3cfb4be0258dbca0ad553be5dc04d0829dbd04.patch.1’ saved [1113/1113]
patching file Makefile Hunk #1 FAILED at 19. Hunk #2 FAILED at 226. 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej so tried the flag call and got...
┌──(kali㉿kali)-[~/Desktop/rtl8188eus-5.3.9] └─$ grep -r "/include" Makefile EXTRA_CFLAGS += -I$(pwd)/$(src)/include
EXTRA_CFLAGS += -I$(srctree)/$(pwd)/$(src)/include EXTRA_CFLAGS: command not found
you broke Makefile, reclone rtl8188eus and do this
wget https://github.com/aircrack-ng/rtl8188eus/commit/3a4ce2bde940b02a476577acf87087dacbffe34c.patch && patch -p1 < *patch && rm -rf *patch
Thank you....it works
thanks bro it works
make && sudo make install
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.0.0-kali3-amd64/build M=/home/san/rtl8188eus modules
make[1]: /lib/modules/6.0.0-kali3-amd64/build: No such file or directory. Stop.
make: [Makefile:2065: modules] Error 2
wget https://github.com/aircrack-ng/rtl8188eus/commit/3a4ce2bde940b02a476577acf87087dacbffe34c.patch && patch -p1 < patch && rm -rf patch --2023-01-18 00:33:27-- https://github.com/aircrack-ng/rtl8188eus/commit/3a4ce2bde940b02a476577acf87087dacbffe34c.patch Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1294 (1.3K) [text/plain] Saving to: ‘3a4ce2bde940b02a476577acf87087dacbffe34c.patch’
3a4ce2bde940b02a476577acf87087dacbffe34c.patch 100%[=========================================================================================================================================>] 1.26K --.-KB/s in 0s
2023-01-18 00:33:28 (45.1 MB/s) - ‘3a4ce2bde940b02a476577acf87087dacbffe34c.patch’ saved [1294/1294]
patching file Makefile Hunk #1 FAILED at 19. Hunk #2 FAILED at 226. 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej patching file Makefile Hunk #1 FAILED at 19. Hunk #2 FAILED at 226. 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
wget https://github.com/aircrack-ng/rtl8188eus/commit/3a4ce2bde940b02a476577acf87087dacbffe34c.patch && patch -p1 < patch && rm -rf patch --2023-01-18 00:33:27-- https://github.com/aircrack-ng/rtl8188eus/commit/3a4ce2bde940b02a476577acf87087dacbffe34c.patch Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1294 (1.3K) [text/plain] Saving to: ‘3a4ce2bde940b02a476577acf87087dacbffe34c.patch’
3a4ce2b.patch 100%[=========================================================================================================================================>] 1.26K --.-KB/s in 0s
2023-01-18 00:33:28 (45.1 MB/s) - ‘3a4ce2bde940b02a476577acf87087dacbffe34c.patch’ saved [1294/1294]
patching file Makefile Hunk #1 FAILED at 19. Hunk #2 FAILED at 226. 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej patching file Makefile Hunk #1 FAILED at 19. Hunk #2 FAILED at 226. 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
No need to apply the patch, aready merged in repo
Errors after make command
/home/kacper/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated.
Full log
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.0.12-arch1-1/build M=/home/kacper/rtl8188eus modules make[1]: Entering directory '/usr/lib/modules/6.0.12-arch1-1/build' CC [M] /home/kacper/rtl8188eus/core/rtw_cmd.o /home/kacper/rtl8188eus/core/rtw_cmd.c:17:10: fatal error: drv_types.h: No such file or directory 17 | #include <drv_types.h> | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:249: /home/kacper/rtl8188eus/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1852: /home/kacper/rtl8188eus] Error 2 make[1]: Leaving directory '/usr/lib/modules/6.0.12-arch1-1/build' make: *** [Makefile:2062: modules] Error 2