Closed hunterpl closed 8 years ago
These are the relevant lines from your output:
libxt_ts3init_get_puzzle.c:114:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < RANDOM_SEED_LEN; i++)
^
libxt_ts3init_get_puzzle.c:114:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
Something like this should work:
make CFLAGS='-std=c11'
This issue should be fixed in commit 1c800643d4d97ec5845f2184afb408b9e113f3f0 . Can you verify if this is true for you?
Hi new problem:
make -C src; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' CC [M] /root/ts3init/src/ts3init_module.o CC [M] /root/ts3init/src/ts3init_match.o CC [M] /root/ts3init/src/ts3init_cookie.o CC [M] /root/ts3init/src/ts3init_target.o CC [M] /root/ts3init/src/ts3init_cache.o CC [M] /root/ts3init/src/siphash24.o LD [M] /root/ts3init/src/xt_ts3init.o Building modules, stage 2. MODPOST 1 modules LD [M] /root/ts3init/src/xt_ts3init.ko make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables; make[1]: Entering directory '/root/ts3init/src' gcc -O2 -Wall -D_INIT=libxt_ts3init_init -fPIC -c -o libxt_ts3init.o libxt_ts3init.c; gcc -shared -fPIC -o libxt_ts3init.so libxt_ts3init.o; gcc -O2 -Wall -D_INIT=libxt_ts3init_get_cookie_init -fPIC -c -o libxt_ts3init_get_cookie.o libxt_ts3init_get _cookie.c; gcc -shared -fPIC -o libxt_ts3init_get_cookie.so libxt_ts3init_get_cookie.o; gcc -O2 -Wall -D_INIT=libxt_ts3init_get_puzzle_init -fPIC -c -o libxt_ts3init_get_puzzle.o libxt_ts3init_get _puzzle.c; gcc -shared -fPIC -o libxt_ts3init_get_puzzle.so libxt_ts3init_get_puzzle.o; gcc -O2 -Wall -D_INIT=libxt_TS3INIT_RESET_init -fPIC -c -o libxt_TS3INIT_RESET.o libxt_TS3INIT_RESET.c; gcc -shared -fPIC -o libxt_TS3INIT_RESET.so libxt_TS3INIT_RESET.o; gcc -O2 -Wall -D_INIT=libxt_TS3INIT_SET_COOKIE_init -fPIC -c -o libxt_TS3INIT_SET_COOKIE.o libxt_TS3INIT_SET _COOKIE.c; gcc -shared -fPIC -o libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_SET_COOKIE.o; make[1]: * No rule to make target 'libxt_TS3INIT_GET_COOKIE.so', needed by 'all'. Stop. rm libxt_TS3INIT_RESET.o libxt_ts3init.o libxt_ts3init_get_cookie.o libxt_TS3INIT_SET_COOKIE.o libxt_ts3init _get_puzzle.o make[1]: Leaving directory '/root/ts3init/src' Makefile:2: recipe for target 'all' failed make: * [all] Error 2
I am not sure how to help you there. What linux distro are you using (version) and what make version (make -v)?
version linux: root@ts3bahu:~# uname -a Linux ts3bahu 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
root@ts3bahu:~# make -v GNU Make 4.0 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
It should be Debian 8.6, but just to be sure, check the output of:
cat /etc/debian_version
root@ts3bahu:~# cat /etc/debian_version 8.6
I can't reproduce this issue on a fresh Debian 8.6 installation. All I did was installing the following packages (including dependencies). After that I was able to compile using the current master:
i think it is problem with packet: xtables-addons module-assistant auto-install xtables-addons-source
i did
apt-get install module-assistant xtables-addons-source xtables-addons-common
on debian and and it still compiles. I do not know what to do here. I did not know what you meant with auto-install
On 2-11-2016 14:17, Mateusz Gladosz wrote:
i think it is problem with packet: xtables-addons module-assistant auto-install xtables-addons-source
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TeamSpeak-Systems/ts3init_linux_netfilter_module/issues/3#issuecomment-257861114, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhVG23ygcidUSra6vpVe37zFGhHll9Lks5q6I1zgaJpZM4Km2QZ.
Niels Werensteijn CTO TeamSpeak Systems GmbH
Phone: +49 8825 920200-0 Fax: +49 8825 920200-99
Soiernstr. 1, 82494 Krün, Germany Registered: District Court of Munich, HRB 172523 Managing Director: Ralf Ludwig / Simon Galbierz
Hey still got one error:
root@ts3bahu:~/ts3init# make CFLAGS='-std=c11' make -C src; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' Building modules, stage 2. MODPOST 1 modules make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables; make[1]: Entering directory '/root/ts3init/src' make[1]: * No rule to make target 'libxt_TS3INIT_GET_COOKIE.so', needed by 'all'. Stop. make[1]: Leaving directory '/root/ts3init/src' Makefile:2: recipe for target 'all' failed make: * [all] Error 2
The additional CFLAGS argument I suggested earlier is no longer necessary. Try compiling (from scratch) without it.
Can you go to the src directory and issue
make -f Makefile.xtables clean
gcc -v
make --trace -p -f Makefile.xtables
and post the output here?
root@ts3bahu:~/ts3init/src# make -f Makefile.xtables clean rm -f libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
root@ts3bahu:~/ts3init/src# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.9.2 (Debian 4.9.2-10)
<D = $(patsubst %/,%,$(dir $<))
?F = $(notdir $?)
.SHELLFLAGS := -c
CWEAVE = cweave
?D = $(patsubst %/,%,$(dir $?))
@D = $(patsubst %/,%,$(dir $@))
@F = $(notdir $@)
MAKE_VERSION := 4.0
CURDIR := /root/ts3init/src
SHELL = /bin/sh
RM = rm -f
CO = co
COMPILE.mod = $(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)
_ = /usr/bin/make
PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F
LINK.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
OUTPUT_OPTION = -o $@
COMPILE.cpp = $(COMPILE.cc)
MAKEFILE_LIST := Makefile.xtables
GNUMAKEFLAGS :=
LINK.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
CC = cc
CHECKOUT,v = +$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@)
CPP = $(CC) -E
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
SSH_CONNECTION = 86.153.161.194 27544 178.217.186.148 65200
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LD = ld
TEXI2DVI = texi2dvi
YACC = yacc
SSH_TTY = /dev/pts/0
XDG_RUNTIME_DIR = /run/user/0
CFLAGS = -O2 -Wall
ARFLAGS = rv
LINK.r = $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LINT = lint
COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c
LINT.c = $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
YACC.m = $(YACC) $(YFLAGS)
YACC.y = $(YACC) $(YFLAGS)
AR = ar
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
TANGLE = tangle
GET = get
%F = $(notdir $%)
COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
CTANGLE = ctangle
.LIBPATTERNS = lib%.so lib%.a
LINK.C = $(LINK.cc)
PWD = /root/ts3init/src
define COMP_WORDBREAKS
"'><;|&(: endef
LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)
PREPROCESS.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F
D = $(patsubst %/,%,$(dir $))
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)
HOME = /root
LOGNAME = root
^D = $(patsubst %/,%,$(dir $^))
MAKELEVEL := 0
COMPILE.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
MAKE = $(MAKE_COMMAND)
SHLVL = 1
AS = as
PREPROCESS.S = $(CC) -E $(CPPFLAGS)
COMPILE.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
XDG_SESSION_ID = 17753
USER = root
FC = f77
.DEFAULT_GOAL := all
%D = $(patsubst %/,%,$(dir $%))
WEAVE = weave
MAKE_COMMAND := make
LINK.cpp = $(LINK.cc)
F77 = $(FC)
OLDPWD = /root/ts3init
.VARIABLES :=
PC = pc
F = $(notdir $)
NODE_PATH = /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
COMPILE.def = $(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)
LEX = lex
MAKEFLAGS = p --trace
MFLAGS = -p --trace
SSH_CLIENT = 86.153.161.194 27544 65200
MAIL = /var/mail/root
LEX.l = $(LEX) $(LFLAGS) -t
LEX.m = $(LEX) $(LFLAGS) -t
+D = $(patsubst %/,%,$(dir $+))
COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
+F = $(notdir $+)
M2C = m2c
MAKEFILES :=
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
<F = $(notdir $<)
CXX = g++
COFLAGS =
COMPILE.C = $(COMPILE.cc)
LIBS = libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
^F = $(notdir $^)
COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
SUFFIXES := .out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
COMPILE.s = $(AS) $(ASFLAGS) $(TARGET_MACH)
.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include
.RECIPEPREFIX :=
MAKEINFO = makeinfo
OBJC = cc
MAKE_HOST := x86_64-pc-linux-gnu
TEX = tex
LANG = en_US
TERM = xterm
F77FLAGS = $(FFLAGS)
LINK.f = $(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)
lib%.so: lib%.o
gcc -shared -fPIC -o $@ $^;
lib%.o: lib%.c
gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<;
%.out:
%.a:
%.ln:
%.o:
%: %.o
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.c:
%: %.c
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.ln: %.c
$(LINT.c) -C$* $<
%.o: %.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
%.cc:
%: %.cc
$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.cc
$(COMPILE.cc) $(OUTPUT_OPTION) $<
%.C:
%: %.C
$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.C
$(COMPILE.C) $(OUTPUT_OPTION) $<
%.cpp:
%: %.cpp
$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.cpp
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
%.p:
%: %.p
$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.p
$(COMPILE.p) $(OUTPUT_OPTION) $<
%.f:
%: %.f
$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.f
$(COMPILE.f) $(OUTPUT_OPTION) $<
%.F:
%: %.F
$(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.F
$(COMPILE.F) $(OUTPUT_OPTION) $<
%.f: %.F
$(PREPROCESS.F) $(OUTPUT_OPTION) $<
%.m:
%: %.m
$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.m
$(COMPILE.m) $(OUTPUT_OPTION) $<
%.r:
%: %.r
$(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.r
$(COMPILE.r) $(OUTPUT_OPTION) $<
%.f: %.r
$(PREPROCESS.r) $(OUTPUT_OPTION) $<
%.y:
%.ln: %.y
$(YACC.y) $<
$(LINT.c) -C$* y.tab.c
$(RM) y.tab.c
%.c: %.y
$(YACC.y) $<
mv -f y.tab.c $@
%.l:
%.ln: %.l
@$(RM) $*.c
$(LEX.l) $< > $*.c
$(LINT.c) -i $*.c -o $@
$(RM) $*.c
%.c: %.l
@$(RM) $@
$(LEX.l) $< > $@
%.r: %.l
$(LEX.l) $< > $@
mv -f lex.yy.r $@
%.ym:
%.m: %.ym
$(YACC.m) $<
mv -f y.tab.c $@
%.yl:
%.s:
%: %.s
$(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.s
$(COMPILE.s) -o $@ $<
%.S:
%: %.S
$(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.S
$(COMPILE.S) -o $@ $<
%.s: %.S
$(PREPROCESS.S) $< > $@
%.mod:
%: %.mod
$(COMPILE.mod) -o $@ -e $@ $^
%.o: %.mod
$(COMPILE.mod) -o $@ $<
%.sym:
%.def:
%.sym: %.def
$(COMPILE.def) -o $@ $<
%.h:
%.info:
%.dvi:
%.tex:
%.dvi: %.tex
$(TEX) $<
%.texinfo:
%.info: %.texinfo
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
%.dvi: %.texinfo
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
%.texi:
%.info: %.texi
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
%.dvi: %.texi
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
%.txinfo:
%.info: %.txinfo
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
%.dvi: %.txinfo
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
%.w:
%.c: %.w
$(CTANGLE) $< - $@
%.tex: %.w
$(CWEAVE) $< - $@
%.ch:
%.web:
%.p: %.web
$(TANGLE) $<
%.tex: %.web
$(WEAVE) $<
%.sh:
%: %.sh
cat $< >$@
chmod a+x $@
%.elc:
%.el:
(%): %
$(AR) $(ARFLAGS) $@ $<
%.out: %
@rm -f $@
cp $< $@
%.c: %.w %.ch
$(CTANGLE) $^ $@
%.tex: %.w %.ch
$(CWEAVE) $^ $@
%:: %,v
$(CHECKOUT,v)
%:: RCS/%,v
$(CHECKOUT,v)
%:: RCS/%
$(CHECKOUT,v)
%:: s.%
$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<
%:: SCCS/s.%
$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<
.web.p:
$(TANGLE) $<
.l.r:
$(LEX.l) $< > $@
mv -f lex.yy.r $@
libxt_TS3INIT_RESET.o: libxt_TS3INIT_RESET.c
gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<;
.dvi:
.ym:
.f.o:
$(COMPILE.f) $(OUTPUT_OPTION) $<
.l:
.m:
$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@
.ln:
.o:
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
.y:
.def.sym:
$(COMPILE.def) -o $@ $<
.p.o:
$(COMPILE.p) $(OUTPUT_OPTION) $<
.p:
$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@
.txinfo.dvi:
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
.a:
.yl:
.l.ln:
@$(RM) $*.c
$(LEX.l) $< > $*.c
$(LINT.c) -i $*.c -o $@
$(RM) $*.c
.F.o:
$(COMPILE.F) $(OUTPUT_OPTION) $<
.texi.info:
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
.w.c:
$(CTANGLE) $< - $@
.texi.dvi:
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
.ch:
.m.o:
$(COMPILE.m) $(OUTPUT_OPTION) $<
.cc:
$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
.cc.o:
$(COMPILE.cc) $(OUTPUT_OPTION) $<
.def:
.SUFFIXES: .out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
.c.o:
$(COMPILE.c) $(OUTPUT_OPTION) $<
.r.o:
$(COMPILE.r) $(OUTPUT_OPTION) $<
.r:
$(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@
libxt_ts3init_get_puzzle.c:
libxt_ts3init_get_puzzle.so: libxt_ts3init_get_puzzle.o
gcc -shared -fPIC -o $@ $^;
libxt_ts3init.o: libxt_ts3init.c
gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<;
.ym.m:
$(YACC.m) $<
mv -f y.tab.c $@
.y.ln:
$(YACC.y) $<
$(LINT.c) -C$* y.tab.c
$(RM) y.tab.c
.elc:
.l.c:
@$(RM) $@
$(LEX.l) $< > $@
.out:
all: libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
.C:
$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@
.r.f:
$(PREPROCESS.r) $(OUTPUT_OPTION) $<
Makefile.xtables:
.S:
$(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@
.texinfo.info:
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
.c:
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
.w.tex:
$(CWEAVE) $< - $@
.c.ln:
$(LINT.c) -C$* $<
.s.o:
$(COMPILE.s) -o $@ $<
.s:
$(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@
libxt_ts3init_get_cookie.o: libxt_ts3init_get_cookie.c
gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<;
.texinfo.dvi:
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
.el:
libxt_ts3init_get_cookie.c:
.lm.m:
@$(RM) $@
$(LEX.m) $< > $@
.y.c:
$(YACC.y) $<
mv -f y.tab.c $@
.web.tex:
$(WEAVE) $<
.texinfo:
libxt_TS3INIT_GET_COOKIE.so:
.DEFAULT:
.h:
libxt_TS3INIT_SET_COOKIE.c:
libxt_TS3INIT_SET_COOKIE.so: libxt_TS3INIT_SET_COOKIE.o
gcc -shared -fPIC -o $@ $^;
.tex.dvi:
$(TEX) $<
libxt_ts3init.c:
.cpp.o:
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
.cpp:
$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@
clean:
rm -f $(LIBS)
libxt_ts3init.so: libxt_ts3init.o
gcc -shared -fPIC -o $@ $^;
.C.o:
$(COMPILE.C) $(OUTPUT_OPTION) $<
.texi:
.txinfo:
.tex:
libxt_TS3INIT_SET_COOKIE.o: libxt_TS3INIT_SET_COOKIE.c
gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<;
.txinfo.info:
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
.sh:
cat $< >$@
chmod a+x $@
libxt_TS3INIT_RESET.c:
libxt_TS3INIT_RESET.so: libxt_TS3INIT_RESET.o
gcc -shared -fPIC -o $@ $^;
.S.s:
$(PREPROCESS.S) $< > $@
.mod:
$(COMPILE.mod) -o $@ -e $@ $^
.mod.o:
$(COMPILE.mod) -o $@ $<
.F.f:
$(PREPROCESS.F) $(OUTPUT_OPTION) $<
.w:
.S.o:
$(COMPILE.S) -o $@ $<
libxt_ts3init_get_cookie.so: libxt_ts3init_get_cookie.o
gcc -shared -fPIC -o $@ $^;
.F:
$(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@
.web:
libxt_ts3init_get_puzzle.o: libxt_ts3init_get_puzzle.c
gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<;
.sym:
.f:
$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@
.info:
install:
install -g root -o root -m 644 $(LIBS) /lib/xtables/
Somehow, build does not know how to make libxt_TS3INIT_GET_COOKIE.so . I do not know where to look any more.
For fun you can edit the file src/Makefile.xtables. Change the file order of
LIBS = libxt_ts3init.so libxt_ts3init_get_cookie.so
libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so
libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
and see what happens. I am unable to reproduce this.
On 3-11-2016 17:37, Mateusz Gladosz wrote:
root@ts3bahu:~/ts3init/src# make -f Makefile.xtables clean rm -f libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
root@ts3bahu:~/ts3init/src# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.9.2 (Debian 4.9.2-10)
GNU Make 4.0
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Make data base, printed on Thu Nov 3 18:37:26 2016
Variables
automatic
<D = $(patsubst %/,%,$(dir $<))
automatic
?F = $(notdir $?)
default
.SHELLFLAGS := -c
default
CWEAVE = cweave
automatic
?D = $(patsubst %/,%,$(dir $?))
automatic
@D https://github.com/D = $(patsubst %/,%,$(dir $@))
automatic
@F https://github.com/F = $(notdir $@)
default
MAKE_VERSION := 4.0
makefile
CURDIR := /root/ts3init/src
makefile
SHELL = /bin/sh
default
RM = rm -f
default
CO = co
default
COMPILE.mod = $(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)
environment
_ = /usr/bin/make
default
PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F
default
LINK.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
default
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
default
OUTPUT_OPTION = -o $@
default
COMPILE.cpp = $(COMPILE.cc)
makefile (from 'Makefile.xtables', line 1)
MAKEFILE_LIST := Makefile.xtables
'override' directive
GNUMAKEFLAGS :=
default
LINK.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
default
CC = cc
default
CHECKOUT,v = +$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@)
default
CPP = $(CC) -E
default
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
environment
SSH_CONNECTION = 86.153.161.194 27544 178.217.186.148 65200
environment
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
default
LD = ld
default
TEXI2DVI = texi2dvi
default
YACC = yacc
environment
SSH_TTY = /dev/pts/0
environment
XDG_RUNTIME_DIR = /run/user/0
makefile (from 'Makefile.xtables', line 1)
CFLAGS = -O2 -Wall
default
ARFLAGS = rv
default
LINK.r = $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
default
LINT = lint
default
COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c
default
LINT.c = $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
default
YACC.m = $(YACC) $(YFLAGS)
default
YACC.y = $(YACC) $(YFLAGS)
default
AR = ar
default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
default
TANGLE = tangle
default
GET = get
automatic
%F = $(notdir $%)
default
COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
default
CTANGLE = ctangle
default
.LIBPATTERNS = lib%.so lib%.a
default
LINK.C = $(LINK.cc)
environment
PWD = /root/ts3init/src
environment
define COMP_WORDBREAKS
"'><;|&(: endef
default
LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)
default
PREPROCESS.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F
automatic
/D = $(patsubst %/,%,$(dir $/))
default
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
default
LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)
environment
HOME = /root
environment
LOGNAME = root
automatic
^D = $(patsubst %/,%,$(dir $^))
environment
MAKELEVEL := 0
default
COMPILE.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
default
MAKE = $(MAKE_COMMAND)
environment
SHLVL = 1
default
AS = as
default
PREPROCESS.S = $(CC) -E $(CPPFLAGS)
default
COMPILE.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
environment
XDG_SESSION_ID = 17753
environment
USER = root
default
FC = f77
makefile
.DEFAULT_GOAL := all
automatic
%D = $(patsubst %/,%,$(dir $%))
default
WEAVE = weave
default
MAKE_COMMAND := make
default
LINK.cpp = $(LINK.cc)
default
F77 = $(FC)
environment
OLDPWD = /root/ts3init
default
.VARIABLES :=
default
PC = pc
automatic
/F = $(notdir $/)
environment
NODE_PATH = /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
default
COMPILE.def = $(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)
default
LEX = lex
makefile
MAKEFLAGS = p --trace
environment
MFLAGS = -p --trace
environment
SSH_CLIENT = 86.153.161.194 27544 65200
environment
MAIL = /var/mail/root
default
LEX.l = $(LEX) $(LFLAGS) -t
default
LEX.m = $(LEX) $(LFLAGS) -t
automatic
+D = $(patsubst %/,%,$(dir $+))
default
COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
automatic
+F = $(notdir $+)
default
M2C = m2c
default
MAKEFILES :=
default
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
automatic
<F = $(notdir $<)
default
CXX = g++
default
COFLAGS =
default
COMPILE.C = $(COMPILE.cc)
makefile (from 'Makefile.xtables', line 2)
LIBS = libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
automatic
^F = $(notdir $^)
default
COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
default
LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
default
SUFFIXES := .out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
default
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
default
COMPILE.s = $(AS) $(ASFLAGS) $(TARGET_MACH)
default
.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include
default
.RECIPEPREFIX :=
default
MAKEINFO = makeinfo
default
OBJC = cc
default
MAKE_HOST := x86_64-pc-linux-gnu
default
TEX = tex
environment
LANG = en_US
environment
TERM = xterm
default
F77FLAGS = $(FFLAGS)
default
LINK.f = $(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)
variable set hash-table stats:
Load=116/1024=11%, Rehash=0, Collisions=14/142=10%
Pattern-specific Variable Values
No pattern-specific variable values.
Directories
SCCS: could not be stat'd.
. (device 64768, inode 36962378): 56 files, 71 impossibilities.
RCS: could not be stat'd.
56 files, 71 impossibilities in 3 directories.
Implicit Rules
lib%.so: lib%.o
recipe to execute (from 'Makefile.xtables', line 12):
|gcc -shared -fPIC -o $@ $^; |
lib%.o: lib%.c
recipe to execute (from 'Makefile.xtables', line 15):
|gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<; |
%.out:
%.a:
%.ln:
%.o:
%: %.o
recipe to execute (built-in):
|$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.c:
%: %.c
recipe to execute (built-in):
|$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.ln: %.c
recipe to execute (built-in):
|$(LINT.c) -C$* $< |
%.o: %.c
recipe to execute (built-in):
|$(COMPILE.c) $(OUTPUT_OPTION) $< |
%.cc:
%: %.cc
recipe to execute (built-in):
|$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.cc
recipe to execute (built-in):
|$(COMPILE.cc) $(OUTPUT_OPTION) $< |
%.C:
%: %.C
recipe to execute (built-in):
|$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.C
recipe to execute (built-in):
|$(COMPILE.C) $(OUTPUT_OPTION) $< |
%.cpp:
%: %.cpp
recipe to execute (built-in):
|$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.cpp
recipe to execute (built-in):
|$(COMPILE.cpp) $(OUTPUT_OPTION) $< |
%.p:
%: %.p
recipe to execute (built-in):
|$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.p
recipe to execute (built-in):
|$(COMPILE.p) $(OUTPUT_OPTION) $< |
%.f:
%: %.f
recipe to execute (built-in):
|$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.f
recipe to execute (built-in):
|$(COMPILE.f) $(OUTPUT_OPTION) $< |
%.F:
%: %.F
recipe to execute (built-in):
|$(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.F
recipe to execute (built-in):
|$(COMPILE.F) $(OUTPUT_OPTION) $< |
%.f: %.F
recipe to execute (built-in):
|$(PREPROCESS.F) $(OUTPUT_OPTION) $< |
%.m:
%: %.m
recipe to execute (built-in):
|$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.m
recipe to execute (built-in):
|$(COMPILE.m) $(OUTPUT_OPTION) $< |
%.r:
%: %.r
recipe to execute (built-in):
|$(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.r
recipe to execute (built-in):
|$(COMPILE.r) $(OUTPUT_OPTION) $< |
%.f: %.r
recipe to execute (built-in):
|$(PREPROCESS.r) $(OUTPUT_OPTION) $< |
%.y:
%.ln: %.y
recipe to execute (built-in):
|$(YACC.y) $< $(LINT.c) -C$* y.tab.c $(RM) y.tab.c |
%.c: %.y
recipe to execute (built-in):
|$(YACC.y) $< mv -f y.tab.c $@ |
%.l:
%.ln: %.l
recipe to execute (built-in):
|@$(RM) $.c $(LEX.l) $< > $.c $(LINT.c) -i $.c -o $@ $(RM) $.c |
%.c: %.l
recipe to execute (built-in):
|@$(RM) $@ $(LEX.l) $< > $@ |
%.r: %.l
recipe to execute (built-in):
|$(LEX.l) $< > $@ mv -f lex.yy.r $@ |
%.ym:
%.m: %.ym
recipe to execute (built-in):
|$(YACC.m) $< mv -f y.tab.c $@ |
%.yl:
%.s:
%: %.s
recipe to execute (built-in):
|$(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.s
recipe to execute (built-in):
|$(COMPILE.s) -o $@ $< |
%.S:
%: %.S
recipe to execute (built-in):
|$(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
%.o: %.S
recipe to execute (built-in):
|$(COMPILE.S) -o $@ $< |
%.s: %.S
recipe to execute (built-in):
|$(PREPROCESS.S) $< > $@ |
%.mod:
%: %.mod
recipe to execute (built-in):
|$(COMPILE.mod) -o $@ -e $@ $^ |
%.o: %.mod
recipe to execute (built-in):
|$(COMPILE.mod) -o $@ $< |
%.sym:
%.def:
%.sym: %.def
recipe to execute (built-in):
|$(COMPILE.def) -o $@ $< |
%.h:
%.info:
%.dvi:
%.tex:
%.dvi: %.tex
recipe to execute (built-in):
|$(TEX) $< |
%.texinfo:
%.info: %.texinfo
recipe to execute (built-in):
|$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ |
%.dvi: %.texinfo
recipe to execute (built-in):
|$(TEXI2DVI) $(TEXI2DVI_FLAGS) $< |
%.texi:
%.info: %.texi
recipe to execute (built-in):
|$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ |
%.dvi: %.texi
recipe to execute (built-in):
|$(TEXI2DVI) $(TEXI2DVI_FLAGS) $< |
%.txinfo:
%.info: %.txinfo
recipe to execute (built-in):
|$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ |
%.dvi: %.txinfo
recipe to execute (built-in):
|$(TEXI2DVI) $(TEXI2DVI_FLAGS) $< |
%.w:
%.c: %.w
recipe to execute (built-in):
|$(CTANGLE) $< - $@ |
%.tex: %.w
recipe to execute (built-in):
|$(CWEAVE) $< - $@ |
%.ch:
%.web:
%.p: %.web
recipe to execute (built-in):
|$(TANGLE) $< |
%.tex: %.web
recipe to execute (built-in):
|$(WEAVE) $< |
%.sh:
%: %.sh
recipe to execute (built-in):
|cat $< >$@ chmod a+x $@ |
%.elc:
%.el:
(%): %
recipe to execute (built-in):
|$(AR) $(ARFLAGS) $@ $< |
%.out: %
recipe to execute (built-in):
|@rm -f $@ cp $< $@ |
%.c: %.w %.ch
recipe to execute (built-in):
|$(CTANGLE) $^ $@ |
%.tex: %.w %.ch
recipe to execute (built-in):
|$(CWEAVE) $^ $@ |
%:: %,v
recipe to execute (built-in):
|$(CHECKOUT,v) |
%:: RCS/%,v
recipe to execute (built-in):
|$(CHECKOUT,v) |
%:: RCS/%
recipe to execute (built-in):
|$(CHECKOUT,v) |
%:: s.%
recipe to execute (built-in):
|$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $< |
%:: SCCS/s.%
recipe to execute (built-in):
|$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $< |
94 implicit rules, 5 (5.3%) terminal.
Files
Not a target:
.web.p:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(TANGLE) $< |
Not a target:
.l.r:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LEX.l) $< > $@ mv -f lex.yy.r $@ |
libxt_TS3INIT_RESET.o: libxt_TS3INIT_RESET.c
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_TS3INIT_RESET'
File is an intermediate prerequisite.
File does not exist.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 15):
|gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<; |
Not a target:
.dvi:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.ym:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.f.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.f) $(OUTPUT_OPTION) $< |
Not a target:
.l:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.m:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.ln:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.y:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.def.sym:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.def) -o $@ $< |
Not a target:
.p.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.p) $(OUTPUT_OPTION) $< |
Not a target:
.p:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.txinfo.dvi:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(TEXI2DVI) $(TEXI2DVI_FLAGS) $< |
Not a target:
.a:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.yl:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.l.ln:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|@$(RM) $.c $(LEX.l) $< > $.c $(LINT.c) -i $.c -o $@ $(RM) $.c |
Not a target:
.F.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.F) $(OUTPUT_OPTION) $< |
Not a target:
.texi.info:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ |
Not a target:
.w.c:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(CTANGLE) $< - $@ |
Not a target:
.texi.dvi:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(TEXI2DVI) $(TEXI2DVI_FLAGS) $< |
Not a target:
.ch:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.m.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.m) $(OUTPUT_OPTION) $< |
Not a target:
.cc:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.cc.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.cc) $(OUTPUT_OPTION) $< |
Not a target:
.def:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.SUFFIXES: .out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.c.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.c) $(OUTPUT_OPTION) $< |
Not a target:
.r.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.r) $(OUTPUT_OPTION) $< |
Not a target:
.r:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
libxt_ts3init_get_puzzle.c:
Implicit rule search has been done.
Last modified 2016-11-02 01:54:40
File has been updated.
Successfully updated.
libxt_ts3init_get_puzzle.so: libxt_ts3init_get_puzzle.o
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_ts3init_get_puzzle'
Last modified 2016-11-03 18:36:16.653296913
File has been updated.
Successfully updated.
recipe to execute (from 'Makefile.xtables', line 12):
|gcc -shared -fPIC -o $@ $^; |
libxt_ts3init.o: libxt_ts3init.c
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_ts3init'
File is an intermediate prerequisite.
File does not exist.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 15):
|gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<; |
Not a target:
.ym.m:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(YACC.m) $< mv -f y.tab.c $@ |
Not a target:
.y.ln:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(YACC.y) $< $(LINT.c) -C$* y.tab.c $(RM) y.tab.c |
Not a target:
.elc:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.l.c:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|@$(RM) $@ $(LEX.l) $< > $@ |
Not a target:
.out:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
all: libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so
Implicit rule search has been done.
File does not exist.
File has not been updated.
Not a target:
.C:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.r.f:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(PREPROCESS.r) $(OUTPUT_OPTION) $< |
Not a target:
Makefile.xtables:
Implicit rule search has been done.
Last modified 2016-11-02 01:54:40
File has been updated.
Successfully updated.
Not a target:
.S:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.texinfo.info:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ |
Not a target:
.c:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.w.tex:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(CWEAVE) $< - $@ |
Not a target:
.c.ln:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINT.c) -C$* $< |
Not a target:
.s.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.s) -o $@ $< |
Not a target:
.s:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
libxt_ts3init_get_cookie.o: libxt_ts3init_get_cookie.c
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_ts3init_get_cookie'
File is an intermediate prerequisite.
File does not exist.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 15):
|gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<; |
Not a target:
.texinfo.dvi:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(TEXI2DVI) $(TEXI2DVI_FLAGS) $< |
Not a target:
.el:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
libxt_ts3init_get_cookie.c:
Implicit rule search has been done.
Last modified 2016-11-02 01:54:40
File has been updated.
Successfully updated.
Not a target:
.lm.m:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|@$(RM) $@ $(LEX.m) $< > $@ |
Not a target:
.y.c:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(YACC.y) $< mv -f y.tab.c $@ |
Not a target:
.web.tex:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(WEAVE) $< |
Not a target:
.texinfo:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
libxt_TS3INIT_GET_COOKIE.so:
Implicit rule search has been done.
File does not exist.
File has not been updated.
Not a target:
.DEFAULT:
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.h:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
libxt_TS3INIT_SET_COOKIE.c:
Implicit rule search has been done.
Last modified 2016-11-02 01:54:40
File has been updated.
Successfully updated.
libxt_TS3INIT_SET_COOKIE.so: libxt_TS3INIT_SET_COOKIE.o
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_TS3INIT_SET_COOKIE'
Last modified 2016-11-03 18:36:16.861294547
File has been updated.
Successfully updated.
recipe to execute (from 'Makefile.xtables', line 12):
|gcc -shared -fPIC -o $@ $^; |
Not a target:
.tex.dvi:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(TEX) $< |
Not a target:
libxt_ts3init.c:
Implicit rule search has been done.
Last modified 2016-11-02 01:54:40
File has been updated.
Successfully updated.
Not a target:
.cpp.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.cpp) $(OUTPUT_OPTION) $< |
Not a target:
.cpp:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
clean:
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 6):
|rm -f $(LIBS) |
libxt_ts3init.so: libxt_ts3init.o
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_ts3init'
Last modified 2016-11-03 18:36:16.369300146
File has been updated.
Successfully updated.
recipe to execute (from 'Makefile.xtables', line 12):
|gcc -shared -fPIC -o $@ $^; |
Not a target:
.C.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.C) $(OUTPUT_OPTION) $< |
Not a target:
.texi:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.txinfo:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.tex:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
libxt_TS3INIT_SET_COOKIE.o: libxt_TS3INIT_SET_COOKIE.c
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_TS3INIT_SET_COOKIE'
File is an intermediate prerequisite.
File does not exist.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 15):
|gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<; |
Not a target:
.txinfo.info:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ |
Not a target:
.sh:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|cat $< >$@ chmod a+x $@ |
Not a target:
libxt_TS3INIT_RESET.c:
Implicit rule search has been done.
Last modified 2016-11-02 01:54:40
File has been updated.
Successfully updated.
libxt_TS3INIT_RESET.so: libxt_TS3INIT_RESET.o
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_TS3INIT_RESET'
Last modified 2016-11-03 18:36:16.741295912
File has been updated.
Successfully updated.
recipe to execute (from 'Makefile.xtables', line 12):
|gcc -shared -fPIC -o $@ $^; |
Not a target:
.S.s:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(PREPROCESS.S) $< > $@ |
Not a target:
.mod:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.mod) -o $@ -e $@ $^ |
Not a target:
.mod.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.mod) -o $@ $< |
Not a target:
.F.f:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(PREPROCESS.F) $(OUTPUT_OPTION) $< |
Not a target:
.w:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.S.o:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(COMPILE.S) -o $@ $< |
libxt_ts3init_get_cookie.so: libxt_ts3init_get_cookie.o
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_ts3init_get_cookie'
Last modified 2016-11-03 18:36:16.505298598
File has been updated.
Successfully updated.
recipe to execute (from 'Makefile.xtables', line 12):
|gcc -shared -fPIC -o $@ $^; |
Not a target:
.F:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.web:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
libxt_ts3init_get_puzzle.o: libxt_ts3init_get_puzzle.c
Implicit rule search has been done.
Implicit/static pattern stem: 'xt_ts3init_get_puzzle'
File is an intermediate prerequisite.
File does not exist.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 15):
|gcc ${CFLAGS} -D_INIT=lib$*_init -fPIC -c -o $@ $<; |
Not a target:
.sym:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
Not a target:
.f:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (built-in):
|$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
Not a target:
.info:
Builtin rule
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
install:
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.
recipe to execute (from 'Makefile.xtables', line 9):
|install -g root -o root -m 644 $(LIBS) /lib/xtables/ |
files hash-table stats:
Load=92/1024=9%, Rehash=0, Collisions=529/1992=27%
VPATH Search Paths
No 'vpath' search paths.
No general ('VPATH' variable) search path.
strcache buffers: 2 (0) / strings = 681 / storage = 13198 B / avg = 19 B
current buf: size = 8162 B / used = 5055 B / count = 168 / avg = 30 B
other used: total = 5036 B / count = 513 / avg = 9 B
other free: total = 19 B / max = 19 B / min = 19 B / avg = 19 B
strcache performance: lookups = 1063 / hit rate = 35%
hash-table stats:
Load=681/8192=8%, Rehash=0, Collisions=296/1063=28%
Finished Make data base on Thu Nov 3 18:37:26 2016
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TeamSpeak-Systems/ts3init_linux_netfilter_module/issues/3#issuecomment-258198728, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhVG5ImozSmln7aY2DkJ8smo9HhprVhks5q6g3ngaJpZM4Km2QZ.
Niels Werensteijn CTO TeamSpeak Systems GmbH
Phone: +49 8825 920200-0 Fax: +49 8825 920200-99
Soiernstr. 1, 82494 Krün, Germany Registered: District Court of Munich, HRB 172523 Managing Director: Ralf Ludwig / Simon Galbierz
Hi @nwerensteijn i found the problem it is because files must be named same like in Makefile.xtables so i changed the name file from "libxt_ts3init_get_cookie.so" to "libxt_TS3INIT_GET_COOKIE.so"
Output:
root@ts3bahu:~/ts3init# make make -C src; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' Building modules, stage 2. MODPOST 1 modules make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables; make[1]: Entering directory '/root/ts3init/src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/root/ts3init/src' make -C test; make[1]: Entering directory '/root/ts3init/test' gcc -c -g test_siphash.c -o test_siphash_test.o gcc -c -g siphash24_ref.c -o siphash24_ref_test.o gcc -c -g ../src/siphash24.c -o ../src/siphash24_test.o gcc -g -o test_siphash test_siphash_test.o siphash24_ref_test.o ../src/siphash24_test.o make[1]: Leaving directory '/root/ts3init/test'
sudo make install:
root@ts3bahu:~/ts3init# sudo make install make -C src modules_install; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD modules_install; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' INSTALL /root/ts3init/src/xt_ts3init.ko DEPMOD 3.16.0-4-amd64 make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables install; make[1]: Entering directory '/root/ts3init/src' install -g root -o root -m 644 libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so /lib/xtables/ make[1]: Leaving directory '/root/ts3init/src'
Can you tell me how can i create this rules in webmin iptables?
[recommended] Disable connection tracking with the help of raw table Create ipset: ts3_authorized with a timeout of 30 seconds If a source ip address is in the ipset ts3_authorized, renew the entry in the set to update the timeout then accept the packet. Use ts3init_get_cookie matches to get connection requests and reply with TS3INIT_SET_COOKIE. Use ts3init_get_puzzle matches to get the cookie replies from the client. If they match, add the source ip address to the ts3_authorizing ipset and then reply with TS3INIT_RESET Drop all other packets
This seems wrong to me. We have 2 xtables so's. libxt_ts3init_get_cookie.so (which is for the match extension) and libxt_TS3INIT_GET_COOKIE.so (which is for the Target extension).
On 3-11-2016 20:42, Mateusz Gladosz wrote:
Hi @nwerensteijn https://github.com/nwerensteijn i found the problem it is because files must be named same like in xtables make file so i changed the file name from "libxt_ts3init_get_cookie" to "libxt_TS3INIT_GET_COOKIE.so"
Output:
root@ts3bahu:~/ts3init# make make -C src; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' Building modules, stage 2. MODPOST 1 modules make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables; make[1]: Entering directory '/root/ts3init/src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/root/ts3init/src' make -C test; make[1]: Entering directory '/root/ts3init/test' gcc -c -g test_siphash.c -o test_siphash_test.o gcc -c -g siphash24_ref.c -o siphash24_ref_test.o gcc -c -g ../src/siphash24.c -o ../src/siphash24_test.o gcc -g -o test_siphash test_siphash_test.o siphash24_ref_test.o ../src/siphash24_test.o make[1]: Leaving directory '/root/ts3init/test'
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TeamSpeak-Systems/ts3init_linux_netfilter_module/issues/3#issuecomment-258252280, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhVGyIivZPc3hZxhtESpJqYPf8q4cCeks5q6jkZgaJpZM4Km2QZ.
Niels Werensteijn CTO TeamSpeak Systems GmbH
Phone: +49 8825 920200-0 Fax: +49 8825 920200-99
Soiernstr. 1, 82494 Krün, Germany Registered: District Court of Munich, HRB 172523 Managing Director: Ralf Ludwig / Simon Galbierz
why i had one file in folder can you tell me? i had only this file " libxt_ts3init_get_cookie.so " not " libxt_TS3INIT_GET_COOKIE.so " when i make everything from the begining from branch master and execute command " make " the file appear " libxt_ts3init_get_cookie.so " and i can't see " libxt_TS3INIT_GET_COOKIE.so " after renamed this file to " libxt_TS3INIT_GET_COOKIE.so " and execute command " make " the file " libxt_ts3init_get_cookie.so " shows again, it's seems working and no errors appear, maybe record the video for you to see this steps?
why i had one file in folder can you tell me?
I do not know. Unless your file system is somehow case insensitive.
Is there any progress on this? If not I am closing this issue
Hey @nwerensteijn Im stuck on this coz this doesnt work for me one file doesnt create thats why :( i have no idea to fix it or tell you what else i give you everything what i had information with ts3 netfilter.
How did you get the source? Via git or via download and extracting in Linux. Note that you should not use windows for this, since it uses a case sensitive file system.
Can you show me what a 'ls -lh' looks like after a 'git clone https://github.com/TeamSpeak-Systems/ts3init_linux_netfilter_module.git' or 'unzip ts3init_linux_netfilter_module-master.zip' on your linux system?
I download via download and extract from windows to linux by WinSCP but winrar always prompt me to rewrite some file from 1 mb to 4 mb i think there is a problem but at this moment i did like you wrote copy and paste by git clone and this is output from command ls- lh:
root@ts3bahu:~/ts3init/ts3init_linux_netfilter_module# ls -lh total 68K -rw-r--r-- 1 root root 3.6K Nov 11 11:28 cookie.md drwxr-xr-x 4 root root 4.0K Nov 11 11:28 examples -rw-r--r-- 1 root root 35K Nov 11 11:28 LICENSE.md -rw-r--r-- 1 root root 264 Nov 11 11:28 Makefile -rw-r--r-- 1 root root 9.1K Nov 11 11:28 README.md drwxr-xr-x 2 root root 4.0K Nov 11 11:28 src drwxr-xr-x 2 root root 4.0K Nov 11 11:28 test
I am sorry. I meant the src directory. 'ls -lh src' . Anyway, doing it via Windows explains it. NTFS and FAT32 (the windows file system) can not handle 2 files with the same name, only different in upper/lower case. Do all the file processing on linux please.
Okay after doing command " make " it makes good Output from linux git clone, could you pack it to tgz file not zip i think it should help to extract in windows and do not make mess:
root@ts3bahu:~/ts3init/ts3init_linux_netfilter_module# make
make -C src;
make[1]: Entering directory '/root/ts3init/ts3init_linux_netfilter_module/src'
make -C /lib/modules/3.16.0-4-amd64/build M=$PWD;
make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
make[1]: Entering directory /usr/src/linux-headers-3.16.0-4-amd64' LD /root/ts3init/ts3init_linux_netfilter_module/src/built-in.o CC [M] /root/ts3init/ts3init_linux_netfilter_module/src/ts3init_module.o CC [M] /root/ts3init/ts3init_linux_netfilter_module/src/ts3init_match.o CC [M] /root/ts3init/ts3init_linux_netfilter_module/src/ts3init_cookie.o CC [M] /root/ts3init/ts3init_linux_netfilter_module/src/ts3init_target.o CC [M] /root/ts3init/ts3init_linux_netfilter_module/src/ts3init_cache.o CC [M] /root/ts3init/ts3init_linux_netfilter_module/src/siphash24.o LD [M] /root/ts3init/ts3init_linux_netfilter_module/src/xt_ts3init.o Building modules, stage 2. MODPOST 1 modules WARNING: "hash_algo_name" [/root/ts3init/ts3init_linux_netfilter_module/src/xt_ts3init.ko] undefined! CC /root/ts3init/ts3init_linux_netfilter_module/src/xt_ts3init.mod.o LD [M] /root/ts3init/ts3init_linux_netfilter_module/src/xt_ts3init.ko make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/ts3init_linux_netfilter_module/src' make -C src -f Makefile.xtables; make[1]: Entering directory '/root/ts3init/ts3init_linux_netfilter_module/src' gcc -O2 -Wall -D_INIT=libxt_ts3init_init -fPIC -c -o libxt_ts3init.o libxt_ts3init.c; gcc -shared -fPIC -o libxt_ts3init.so libxt_ts3init.o; gcc -O2 -Wall -D_INIT=libxt_ts3init_get_cookie_init -fPIC -c -o libxt_ts3init_get_cookie.o libxt_ts3init_get_cookie .c; gcc -shared -fPIC -o libxt_ts3init_get_cookie.so libxt_ts3init_get_cookie.o; gcc -O2 -Wall -D_INIT=libxt_ts3init_get_puzzle_init -fPIC -c -o libxt_ts3init_get_puzzle.o libxt_ts3init_get_puzzle .c; gcc -shared -fPIC -o libxt_ts3init_get_puzzle.so libxt_ts3init_get_puzzle.o; gcc -O2 -Wall -D_INIT=libxt_TS3INIT_RESET_init -fPIC -c -o libxt_TS3INIT_RESET.o libxt_TS3INIT_RESET.c; gcc -shared -fPIC -o libxt_TS3INIT_RESET.so libxt_TS3INIT_RESET.o; gcc -O2 -Wall -D_INIT=libxt_TS3INIT_SET_COOKIE_init -fPIC -c -o libxt_TS3INIT_SET_COOKIE.o libxt_TS3INIT_SET_COOKIE .c; gcc -shared -fPIC -o libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_SET_COOKIE.o; gcc -O2 -Wall -D_INIT=libxt_TS3INIT_GET_COOKIE_init -fPIC -c -o libxt_TS3INIT_GET_COOKIE.o libxt_TS3INIT_GET_COOKIE .c; gcc -shared -fPIC -o libxt_TS3INIT_GET_COOKIE.so libxt_TS3INIT_GET_COOKIE.o; rm libxt_TS3INIT_GET_COOKIE.o libxt_TS3INIT_RESET.o libxt_ts3init.o libxt_ts3init_get_cookie.o libxt_TS3INIT_SET_CO OKIE.o libxt_ts3init_get_puzzle.o make[1]: Leaving directory '/root/ts3init/ts3init_linux_netfilter_module/src' make -C test; make[1]: Entering directory '/root/ts3init/ts3init_linux_netfilter_module/test' gcc -c -g test_siphash.c -o test_siphash_test.o gcc -c -g siphash24_ref.c -o siphash24_ref_test.o gcc -c -g ../src/siphash24.c -o ../src/siphash24_test.o gcc -g -o test_siphash test_siphash_test.o siphash24_ref_test.o ../src/siphash24_test.o make[1]: Leaving directory '/root/ts3init/ts3init_linux_netfilter_module/test' root@ts3bahu:~/ts3init/ts3init_linux_netfilter_module# sudo make install make -C src modules_install; make[1]: Entering directory '/root/ts3init/ts3init_linux_netfilter_module/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD modules_install; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory
/usr/src/linux-headers-3.16.0-4-amd64'
INSTALL /root/ts3init/ts3init_linux_netfilter_module/src/xt_ts3init.ko
DEPMOD 3.16.0-4-amd64
make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
make[1]: Leaving directory '/root/ts3init/ts3init_linux_netfilter_module/src'
make -C src -f Makefile.xtables install;
make[1]: Entering directory '/root/ts3init/ts3init_linux_netfilter_module/src'
install -g root -o root -m 644 libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3IN IT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so /lib/xtables/
make[1]: Leaving directory '/root/ts3init/ts3init_linux_netfilter_module/src'
Good to hear.
Hi there
Thanks for user from Github named " svenpaulsen " for fixed first issue with netfilter ts3init " Fix "expected declaration specifiers or '...' before string constant" build issues #1 " now i have 2 more bugs with instalation:
Output:
after make command:
make -C src; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' Building modules, stage 2. MODPOST 1 modules make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables; make[1]: Entering directory '/root/ts3init/src' gcc -O2 -Wall -D_INIT=libxt_ts3init_get_puzzle_init -fPIC -c -o libxt_ts3init_get_puzzle.o libxt_ts3init_get_puzzle.c; libxt_ts3init_get_puzzle.c: In function 'ts3init_get_puzzle_save': libxt_ts3init_get_puzzle.c:114:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < RANDOM_SEED_LEN; i++) ^ libxt_ts3init_get_puzzle.c:114:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Makefile.xtables:15: recipe for target 'libxt_ts3init_get_puzzle.o' failed make[1]: [libxt_ts3init_get_puzzle.o] Error 1 make[1]: Leaving directory '/root/ts3init/src' Makefile:2: recipe for target 'all' failed make: [all] Error 2
after make install command:
make -C src modules_install; make[1]: Entering directory '/root/ts3init/src' make -C /lib/modules/3.16.0-4-amd64/build M=$PWD modules_install; make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64' INSTALL /root/ts3init/src/xt_ts3init.ko DEPMOD 3.16.0-4-amd64 make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' make[1]: Leaving directory '/root/ts3init/src' make -C src -f Makefile.xtables install; make[1]: Entering directory '/root/ts3init/src' install -g root -o root -m 644 libxt_ts3init.so libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_TS3INIT_RESET.so libxt_TS3INIT_SET_COOKIE.so libxt_TS3INIT_GET_COOKIE.so /lib/xtables/ install: cannot stat 'libxt_ts3init_get_puzzle.so': No such file or directory install: cannot stat 'libxt_TS3INIT_RESET.so': No such file or directory install: cannot stat 'libxt_TS3INIT_SET_COOKIE.so': No such file or directory install: cannot stat 'libxt_TS3INIT_GET_COOKIE.so': No such file or directory Makefile.xtables:9: recipe for target 'install' failed make[1]: [install] Error 1 make[1]: Leaving directory '/root/ts3init/src' Makefile:12: recipe for target 'install' failed make: [install] Error 2