Can't build iptables (git as of today)
Hi!
I'm trying to build the most recent iptables version but the build fails with:
make[2]: *** No rule to make target ../extensions/libext.a', needed by xtables-multi'. Stop.
It this a known problem?
Full build log is attached.
Thanks,
//richard
rw@raccoon:~/src/iptables (master)> ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:13: installing `./compile'
configure.ac:15: installing `./config.guess'
configure.ac:15: installing `./config.sub'
configure.ac:10: installing `./install-sh'
configure.ac:11: installing `./missing'
iptables/Makefile.am: installing `./depcomp'
rw@raccoon:~/src/iptables (master)> ./configure --prefix=/opt/iptables-dev/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... x86_64-suse-linux-gnu
checking host system type... x86_64-suse-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether the linker accepts -Wl,--no-as-needed... yes
checking linux/dccp.h usability... yes
checking linux/dccp.h presence... yes
checking for linux/dccp.h... yes
checking linux/ip_vs.h usability... yes
checking linux/ip_vs.h presence... yes
checking for linux/ip_vs.h... yes
checking linux/magic.h usability... yes
checking linux/magic.h presence... yes
checking for linux/magic.h... yes
checking linux/proc_fs.h usability... no
checking linux/proc_fs.h presence... no
checking for linux/proc_fs.h... no
checking size of struct ip6_hdr... 40
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnfnetlink... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating extensions/GNUmakefile
config.status: creating include/Makefile
config.status: creating iptables/Makefile
config.status: creating iptables/xtables.pc
config.status: creating libipq/Makefile
config.status: creating libipq/libipq.pc
config.status: creating libiptc/Makefile
config.status: creating libiptc/libiptc.pc
config.status: creating utils/Makefile
config.status: creating include/xtables.h
config.status: creating include/iptables/internal.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rw@raccoon:~/src/iptables (master)> make
make all-recursive
make[1]: Entering directory `/home/rw/src/iptables'
Making all in libiptc
make[2]: Entering directory `/home/rw/src/iptables/libiptc'/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libip4tc.lo -MD -MP -MF .deps/libip4tc.Tpo -c -o libip4tc.lo libip4tc.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libip4tc.lo -MD -MP -MF .deps/libip4tc.Tpo -c libip4tc.c -fPIC -DPIC -o .libs/libip4tc.o mv -f .deps/libip4tc.Tpo .deps/libip4tc.Plo/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -version-info 1:0:1 -o libip4tc.la -rpath /opt/iptables-dev/lib libip4tc.lo
libtool: link: gcc -shared .libs/libip4tc.o -Wl,-soname -Wl,libip4tc.so.0 -o .libs/libip4tc.so.0.1.0
libtool: link: (cd ".libs" && rm -f "libip4tc.so.0" && ln -s "libip4tc.so.0.1.0" "libip4tc.so.0")
libtool: link: (cd ".libs" && rm -f "libip4tc.so" && ln -s "libip4tc.so.0.1.0" "libip4tc.so")
libtool: link: ( cd ".libs" && rm -f "libip4tc.la" && ln -s "../libip4tc.la" "libip4tc.la" )/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libip6tc.lo -MD -MP -MF .deps/libip6tc.Tpo -c -o libip6tc.lo libip6tc.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libip6tc.lo -MD -MP -MF .deps/libip6tc.Tpo -c libip6tc.c -fPIC -DPIC -o .libs/libip6tc.o mv -f .deps/libip6tc.Tpo .deps/libip6tc.Plo/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -version-info 1:0:1 -Wl,--no-as-needed -o libip6tc.la -rpath /opt/iptables-dev/lib libip6tc.lo
libtool: link: gcc -shared .libs/libip6tc.o -Wl,--no-as-needed -Wl,-soname -Wl,libip6tc.so.0 -o .libs/libip6tc.so.0.1.0
libtool: link: (cd ".libs" && rm -f "libip6tc.so.0" && ln -s "libip6tc.so.0.1.0" "libip6tc.so.0")
libtool: link: (cd ".libs" && rm -f "libip6tc.so" && ln -s "libip6tc.so.0.1.0" "libip6tc.so")
libtool: link: ( cd ".libs" && rm -f "libip6tc.la" && ln -s "../libip6tc.la" "libip6tc.la" )/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -version-info 0:0:0 -Wl,--no-as-needed -o libiptc.la -rpath /opt/iptables-dev/lib libip4tc.la libip6tc.la
libtool: link: gcc -shared -Wl,-rpath -Wl,/home/rw/src/iptables/libiptc/.libs -Wl,-rpath -Wl,/opt/iptables-dev/lib ./.libs/libip4tc.so ./.libs/libip6tc.so -Wl,--no-as-needed -Wl,-soname -Wl,libiptc.so.0 -o .libs/libiptc.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libiptc.so.0" && ln -s "libiptc.so.0.0.0" "libiptc.so.0")
libtool: link: (cd ".libs" && rm -f "libiptc.so" && ln -s "libiptc.so.0.0.0" "libiptc.so")
libtool: link: ( cd ".libs" && rm -f "libiptc.la" && ln -s "../libiptc.la" "libiptc.la" )
make[2]: Leaving directory `/home/rw/src/iptables/libiptc'
Making all in iptables
make[2]: Entering directory `/home/rw/src/iptables/iptables'/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libxtables_la-xtables.lo -MD -MP -MF .deps/libxtables_la-xtables.Tpo -c -o libxtables_la-xtables.lo test -f 'xtables.c' || echo './'xtables.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libxtables_la-xtables.lo -MD -MP -MF .deps/libxtables_la-xtables.Tpo -c xtables.c -fPIC -DPIC -o .libs/libxtables_la-xtables.o mv -f .deps/libxtables_la-xtables.Tpo .deps/libxtables_la-xtables.Plo/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libxtables_la-xtoptions.lo -MD -MP -MF .deps/libxtables_la-xtoptions.Tpo -c -o libxtables_la-xtoptions.lo test -f 'xtoptions.c' || echo './'xtoptions.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -MT libxtables_la-xtoptions.lo -MD -MP -MF .deps/libxtables_la-xtoptions.Tpo -c xtoptions.c -fPIC -DPIC -o .libs/libxtables_la-xtoptions.o mv -f .deps/libxtables_la-xtoptions.Tpo .deps/libxtables_la-xtoptions.Plo/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -g -O2 -version-info 7:0:0 -o libxtables.la -rpath /opt/iptables-dev/lib libxtables_la-xtables.lo libxtables_la-xtoptions.lo -ldl
libtool: link: gcc -shared .libs/libxtables_la-xtables.o .libs/libxtables_la-xtoptions.o -ldl -Wl,-soname -Wl,libxtables.so.7 -o .libs/libxtables.so.7.0.0
libtool: link: (cd ".libs" && rm -f "libxtables.so.7" && ln -s "libxtables.so.7.0.0" "libxtables.so.7")
libtool: link: (cd ".libs" && rm -f "libxtables.so" && ln -s "libxtables.so.7.0.0" "libxtables.so")
libtool: link: ( cd ".libs" && rm -f "libxtables.la" && ln -s "../libxtables.la" "libxtables.la" )
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-xtables-multi.o -MD -MP -MF .deps/xtables_multi-xtables-multi.Tpo -c -o xtables_multi-xtables-multi.o test -f 'xtables-multi.c' || echo './'xtables-multi.c
mv -f .deps/xtables_multi-xtables-multi.Tpo .deps/xtables_multi-xtables-multi.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-iptables-xml.o -MD -MP -MF .deps/xtables_multi-iptables-xml.Tpo -c -o xtables_multi-iptables-xml.o test -f 'iptables-xml.c' || echo './'iptables-xml.c
mv -f .deps/xtables_multi-iptables-xml.Tpo .deps/xtables_multi-iptables-xml.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-iptables-save.o -MD -MP -MF .deps/xtables_multi-iptables-save.Tpo -c -o xtables_multi-iptables-save.o test -f 'iptables-save.c' || echo './'iptables-save.c
mv -f .deps/xtables_multi-iptables-save.Tpo .deps/xtables_multi-iptables-save.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-iptables-restore.o -MD -MP -MF .deps/xtables_multi-iptables-restore.Tpo -c -o xtables_multi-iptables-restore.o test -f 'iptables-restore.c' || echo './'iptables-restore.c
mv -f .deps/xtables_multi-iptables-restore.Tpo .deps/xtables_multi-iptables-restore.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-iptables-standalone.o -MD -MP -MF .deps/xtables_multi-iptables-standalone.Tpo -c -o xtables_multi-iptables-standalone.o test -f 'iptables-standalone.c' || echo './'iptables-standalone.c
mv -f .deps/xtables_multi-iptables-standalone.Tpo .deps/xtables_multi-iptables-standalone.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-iptables.o -MD -MP -MF .deps/xtables_multi-iptables.Tpo -c -o xtables_multi-iptables.o test -f 'iptables.c' || echo './'iptables.c
mv -f .deps/xtables_multi-iptables.Tpo .deps/xtables_multi-iptables.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-ip6tables-save.o -MD -MP -MF .deps/xtables_multi-ip6tables-save.Tpo -c -o xtables_multi-ip6tables-save.o test -f 'ip6tables-save.c' || echo './'ip6tables-save.c
mv -f .deps/xtables_multi-ip6tables-save.Tpo .deps/xtables_multi-ip6tables-save.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-ip6tables-restore.o -MD -MP -MF .deps/xtables_multi-ip6tables-restore.Tpo -c -o xtables_multi-ip6tables-restore.o test -f 'ip6tables-restore.c' || echo './'ip6tables-restore.c
mv -f .deps/xtables_multi-ip6tables-restore.Tpo .deps/xtables_multi-ip6tables-restore.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-ip6tables-standalone.o -MD -MP -MF .deps/xtables_multi-ip6tables-standalone.Tpo -c -o xtables_multi-ip6tables-standalone.o test -f 'ip6tables-standalone.c' || echo './'ip6tables-standalone.c
mv -f .deps/xtables_multi-ip6tables-standalone.Tpo .deps/xtables_multi-ip6tables-standalone.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-ip6tables.o -MD -MP -MF .deps/xtables_multi-ip6tables.Tpo -c -o xtables_multi-ip6tables.o test -f 'ip6tables.c' || echo './'ip6tables.c
mv -f .deps/xtables_multi-ip6tables.Tpo .deps/xtables_multi-ip6tables.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/opt/iptables-dev/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DENABLE_IPV4 -DENABLE_IPV6 -g -O2 -MT xtables_multi-xshared.o -MD -MP -MF .deps/xtables_multi-xshared.Tpo -c -o xtables_multi-xshared.o test -f 'xshared.c' || echo './'xshared.c
mv -f .deps/xtables_multi-xshared.Tpo .deps/xtables_multi-xshared.Po
make[2]: *** No rule to make target ../extensions/libext.a', needed by xtables-multi'. Stop.
make[2]: Leaving directory `/home/rw/src/iptables/iptables'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rw/src/iptables'
make: *** [all] Error 2
Quoted 9 lines · Richard Weinberger
Hi!
I'm trying to build the most recent iptables version but the build fails with:
make[2]: *** No rule to make target
../extensions/libext.a', needed byxtables-multi'. Stop.It this a known problem?
Now it is; and this is the fix
git://dev.medozas.de/iptables master
parent 0ab10b11093ec250b404e3bead1d39177d1cbfa0 (v1.4.12.1-28-g0ab10b1) commit f65d798473255d1bc1a5cd31bb586a60ad8fdf3d
Author: Jan Engelhardt <[email protected]> Date: Sun Sep 18 15:06:05 2011 +0200
build: restore build order of modules
iptables(exe) requires libext.a, but extensions/ require libxtables.la (in iptables/). This circular dependency does not work out, so separate libxtables into its own directory and put it in front.
---
Makefile.am | 5 ++++-
configure.ac | 2 +-
iptables/Makefile.am | 18 +-----------------
libxtables/Makefile.am | 20 ++++++++++++++++++++
{iptables => libxtables}/xtables.c | 0
{iptables => libxtables}/xtoptions.c | 0
6 files changed, 26 insertions(+), 19 deletions(-)
create mode 100644 libxtables/Makefile.am
rename {iptables => libxtables}/xtables.c (100%)
rename {iptables => libxtables}/xtoptions.c (100%)Makefile.am +4 -1
@@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = foreign subdir-objects -SUBDIRS = libiptc iptables +SUBDIRS = libiptc libxtables if ENABLE_DEVEL SUBDIRS += include endif
@@ -13,7 +13,10 @@ endif if HAVE_LIBNFNETLINK SUBDIRS += utils endif +# Depends on libxtables: SUBDIRS += extensions +# Depends on extensions/libext.a: +SUBDIRS += iptables .PHONY: tarball tarball:
configure.ac +1 -1
@@ -112,6 +112,6 @@ AC_SUBST([libxtables_vmajor]) AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile iptables/Makefile iptables/xtables.pc libipq/Makefile libipq/libipq.pc - libiptc/Makefile libiptc/libiptc.pc utils/Makefile + libiptc/Makefile libiptc/libiptc.pc libxtables/Makefile utils/Makefile include/xtables.h include/iptables/internal.h]) AC_OUTPUT
iptables/Makefile.am +1 -17
@@ -3,22 +3,6 @@ AM_CFLAGS = ${regular_CFLAGS} AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} -lib_LTLIBRARIES = libxtables.la -libxtables_la_SOURCES = xtables.c xtoptions.c -libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage} -libxtables_la_LIBADD = -if ENABLE_STATIC -# With --enable-static, shipped extensions are linked into the main executable, -# so we need all the LIBADDs here too -libxtables_la_LIBADD += -lm -endif -if ENABLE_SHARED -libxtables_la_CFLAGS = ${AM_CFLAGS} -libxtables_la_LIBADD += -ldl -else -libxtables_la_CFLAGS = ${AM_CFLAGS} -DNO_SHARED_LIBS=1 -endif - xtables_multi_SOURCES = xtables-multi.c iptables-xml.c xtables_multi_CFLAGS = ${AM_CFLAGS} xtables_multi_LDADD = ../extensions/libext.a
@@ -38,7 +22,7 @@ xtables_multi_CFLAGS += -DENABLE_IPV6 xtables_multi_LDADD += ../libiptc/libip6tc.la ../extensions/libext6.a endif xtables_multi_SOURCES += xshared.c -xtables_multi_LDADD += libxtables.la -lm +xtables_multi_LDADD += ../libxtables/libxtables.la -lm sbin_PROGRAMS = xtables-multi man_MANS = iptables.8 iptables-restore.8 iptables-save.8 \
libxtables/Makefile.am new file +20 -0
@@ -0,0 +1,20 @@ +# -*- Makefile -*- + +AM_CFLAGS = ${regular_CFLAGS} +AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include -I${top_srcdir}/iptables ${kinclude_CPPFLAGS} + +lib_LTLIBRARIES = libxtables.la +libxtables_la_SOURCES = xtables.c xtoptions.c +libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage} +libxtables_la_LIBADD = +if ENABLE_STATIC +# With --enable-static, shipped extensions are linked into the main executable, +# so we need all the LIBADDs here too +libxtables_la_LIBADD += -lm +endif +if ENABLE_SHARED +libxtables_la_CFLAGS = ${AM_CFLAGS} +libxtables_la_LIBADD += -ldl +else +libxtables_la_CFLAGS = ${AM_CFLAGS} -DNO_SHARED_LIBS=1 +endif
libxtables/xtables.c renamed from iptables/xtables.c +0 -0
libxtables/xtoptions.c renamed from iptables/xtoptions.c +0 -0
Signature · 1 line
# Created with git-export-patch
Am 18.09.2011 15:12, schrieb Jan Engelhardt:
Quoted 7 lines · Richard Weinberger
Quoted 6 lines
Hi!
I'm trying to build the most recent iptables version but the build fails with:
Quoted 6 lines
Quoted 4 lines
make[2]: *** No rule to make target
../extensions/libext.a', needed byxtables-multi'. Stop.It this a known problem?
Now it is; and this is the fix
Not really.
CHECK unknown symbols in .so files/bin/sh: line 1: ../iptables/libxtables.la: No such file or directory make[2]: *** [check] Error 1
make[2]: Leaving directory `/home/rw/src/iptables/extensions' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rw/src/iptables'
make: *** [all] Error 2
extensions/GNUmakefile.in contains a wrong path.
Shouldn't it be ../libxtables/libxtables.la?
Thanks,
//richard
Quoted 15 lines · Richard Weinberger
Am 18.09.2011 15:12, schrieb Jan Engelhardt:
Quoted 7 lines · Richard Weinberger
Quoted 6 lines
Hi!
I'm trying to build the most recent iptables version but the build fails with:
Quoted 6 lines
Quoted 4 lines
make[2]: *** No rule to make target
../extensions/libext.a', needed byxtables-multi'. Stop.It this a known problem?
Now it is; and this is the fix
Quoted 7 lines
Not really.
CHECK unknown symbols in .so files
/bin/sh: line 1: ../iptables/libxtables.la: No such file or directory make[2]: *** [check] Error 1Shouldn't it be ../libxtables/libxtables.la?
Yeah, changed now. Thanks for testing.