OpenWrt Forum Archive

Topic: Can't compile the trunk for atheros

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Here's the log.
Any idea?

make[6]: Entering directory `/home/user/kamikaze/trunk/build_dir/linux-atheros/iptables-1.4.1.1'
depbase=`echo libiptc/libip4tc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
    if mips-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/home/user/kamikaze/trunk/staging_dir/mips/usr/include -I/home/user/kamikaze/trunk/staging_dir/mips/include  -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64     -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations     -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes     -Winline -pipe     -DXTABLES_LIBDIR=\"/usr/lib/iptables\" -DXTABLES_INTERNAL -I./include -I./include  -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -fpic  -MT libiptc/libip4tc.o -MD -MP -MF "$depbase.Tpo" -c -o libiptc/libip4tc.o libiptc/libip4tc.c; \
    then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
In file included from libiptc/libip4tc.c:29:
/home/user/kamikaze/trunk/staging_dir/mips/usr/include/libiptc/libiptc.h:157: warning: function declaration isn't a prototype
In file included from libiptc/libip4tc.c:118:
libiptc/libiptc.c:1325: warning: no previous prototype for 'dump_entries'
libiptc/libiptc.c: In function 'dump_entries':
libiptc/libiptc.c:1330: error: 'XTABLES_VERSION' undeclared (first use in this function)
libiptc/libiptc.c:1330: error: (Each undeclared identifier is reported only once
libiptc/libiptc.c:1330: error: for each function it appears in.)
libiptc/libiptc.c: At top level:
libiptc/libiptc.c:2633: warning: no previous prototype for 'iptc_get_raw_socket'
make[6]: *** [libiptc/libip4tc.o] Error 1
make[6]: Leaving directory `/home/user/kamikaze/trunk/build_dir/linux-atheros/iptables-1.4.1.1'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/user/kamikaze/trunk/build_dir/linux-atheros/iptables-1.4.1.1'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/user/kamikaze/trunk/build_dir/linux-atheros/iptables-1.4.1.1'
make[3]: *** [/home/user/kamikaze/trunk/build_dir/linux-atheros/iptables-1.4.1.1/.built] Error 2
make[3]: Leaving directory `/home/user/kamikaze/trunk/package/iptables'
make[2]: *** [package/iptables/compile] Error 2
make[2]: Leaving directory `/home/user/kamikaze/trunk'
make[1]: *** [/home/user/kamikaze/trunk/staging_dir/mips/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/user/kamikaze/trunk'
make: *** [world] Error 2

Try cleaning you build env first:

make dirclean

--
kurkku

Thanks!
"make distclean" solve the problem

The discussion might have continued from here.