You are not logged in.
I am trying to compile this ksb26 downloaded from official site http://ksb.sourceforge.net/ but no success.
Please help. I dont know if thats right, but I have already tried doing "s/asm\/semaphore.h/linux\/semaphore.h" in the source code but no success.
shadyabhi@archlinux-N210 ~/Downloads/ksb26 $ ./install.sh
Kernel Socks Bouncer for 2.6.x kernels Installer v0.0.1
Checking components of ksb26:
kernel/ksb26.c -> found!
user/ksb26manager.c -> found!
Building kernel/ksb26.c
make: Entering directory `/usr/src/linux-2.6.35-ARCH'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/shadyabhi/Downloads/ksb26/kernel/.tmp_versions ; rm -f /home/shadyabhi/Downloads/ksb26/kernel/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/shadyabhi/Downloads/ksb26/kernel
gcc -Wp,-MD,/home/shadyabhi/Downloads/ksb26/kernel/.ksb26.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include -I/usr/src/linux-2.6.35-ARCH/arch/x86/include -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ksb26)" -D"KBUILD_MODNAME=KBUILD_STR(ksb26)" -c -o /home/shadyabhi/Downloads/ksb26/kernel/ksb26.o /home/shadyabhi/Downloads/ksb26/kernel/ksb26.c
In file included from /home/shadyabhi/Downloads/ksb26/kernel/ksb26.c:20:0:
/home/shadyabhi/Downloads/ksb26/kernel/ksb26.h:29:27: fatal error: asm/semaphore.h: No such file or directory
compilation terminated.
make[1]: *** [/home/shadyabhi/Downloads/ksb26/kernel/ksb26.o] Error 1
make: *** [_module_/home/shadyabhi/Downloads/ksb26/kernel] Error 2
make: Leaving directory `/usr/src/linux-2.6.35-ARCH'
shadyabhi@archlinux-N210 ~/Downloads/ksb26 $
Changing it to linux/semaphore.h gives me another set of errors.
In file included from /home/shadyabhi/Downloads/ksb26/kernel/ksb26.h:108:0,
from /home/shadyabhi/Downloads/ksb26/kernel/ksb26.c:20:
/home/shadyabhi/Downloads/ksb26/kernel/ksb26_core.h: In function 'ksb26_socks5hs':
/home/shadyabhi/Downloads/ksb26/kernel/ksb26_core.h:118:4: warning: format '%c' expects type 'int', but argument 5 has type 'size_t'
/home/shadyabhi/Downloads/ksb26/kernel/ksb26.c: In function 'patch_unix_stream_connect':
/home/shadyabhi/Downloads/ksb26/kernel/ksb26.c:37:45: warning: assignment discards qualifiers from pointer target type
/home/shadyabhi/Downloads/ksb26/kernel/ksb26.c: In function 'modcleanup':
/home/shadyabhi/Downloads/ksb26/kernel/ksb26.c:124:2: error: void value not ignored as it ought to be
make[1]: *** [/home/shadyabhi/Downloads/ksb26/kernel/ksb26.o] Error 1
make: *** [_module_/home/shadyabhi/Downloads/ksb26/kernel] Error 2
make: Leaving directory `/usr/src/linux-2.6.35-ARCH'
shadyabhi@archlinux-N210 ~/Downloads/ksb26 $
Last edited by shadyabhi (2010-11-23 16:13:39)
My blog:-
http://blog.abhijeetr.com
Offline