kohler / click

The Click modular router: fast modular packet processing and analysis
Other
748 stars 321 forks source link

Error while configure . Please help me #184

Closed pvc468 closed 9 years ago

pvc468 commented 9 years ago

I have already loaded click kernel but unfortunately i it not working now. I tried to reinstall but it is showing error message

./configure --enable-linuxmodule --disable-userlevel checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for g++... g++ checking for gcc... (cached) 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 how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -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 sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking for endian.h... yes checking for machine/endian.h... no checking for byteswap.h... yes checking for strings.h... (cached) yes checking for time.h... yes checking for termio.h... yes checking for netdb.h... yes checking for sys/event.h... no checking for pwd.h... yes checking for grp.h... yes checking for execinfo.h... yes checking for poll.h... yes checking for dlfcn.h... yes checking for sys/mman.h... yes checking for stdlib.h... (cached) yes checking for sys/param.h... yes checking for ifaddrs.h... yes checking for linux/if_tun.h... yes checking for net/if_dl.h... no checking for net/if_tap.h... no checking for net/if_tun.h... no checking for net/if_types.h... no checking for net/bpf.h... no checking for netpacket/packet.h... yes checking whether the C compiler accepts -W -Wall... yes checking whether the C compiler accepts -Werror... yes checking how to run the C preprocessor... gcc -E checking for inline... inline checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether works... yes checking whether the C++ compiler understands constexpr... no checking whether the C++ compiler understands rvalue references... no checking whether the C++ compiler understands static_assert... no checking whether the C++ compiler understands template alias... no checking whether the C++ compiler understands #pragma interface... yes checking how to run the C++ preprocessor... g++ -E checking for ar... ar checking for ld... ld checking for nm... nm checking for objcopy... objcopy checking for ranlib... ranlib checking for strip... strip checking whether we are compiling for Linux... yes checking for strerror... yes checking for random... yes checking for snprintf... yes checking for strnlen... yes checking for strtof... yes checking for strtold... yes checking for strtoul... yes checking for tcgetpgrp... yes checking for vsnprintf... yes checking size of int... 4 checking size of long... 8 checking size of size_t... 8 checking size of ptrdiff_t... 8 checking size of void *... 8 checking whether char is unsigned... no checking whether machine is indifferent to alignment... yes checking size of long long... 8 checking for long long... yes checking for int64_t... yes checking for uint64_t... yes checking whether long and int64_t are the same type... yes checking whether long long and int64_t are the same type... no checking whether byte ordering is bigendian... no checking whether signed right shift is arithmetic... yes checking for addressable va_list type... no checking for builtin_clz... yes checking for builtin_clzl... yes checking for __builtin_clzll... yes checking for builtin_ffs... yes checking for builtin_ffsl... yes checking for __builtin_ffsll... yes checking for sync_synchronize... yes checking whether __sync_synchronize supports arguments... no checking for has_trivial_copy... yes checking for thread storage class support... yes checking for ffs... yes checking for ffsl... yes checking for ffsll... yes checking size of struct timeval... 16 checking for struct timespec... yes checking size of struct timespec... 16 checking whether clock_gettime is declared... yes checking for library containing clock_gettime... none required checking for clock_gettime... yes checking whether is emulated... no checking for pselect... yes checking for sigaction... yes checking for kqueue... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether linker accepts the -rdynamic flag... yes checking compiler flags for building loadable modules... -shared checking for large file support in C library... yes checking size of off_t... 8 checking for getpagesize... yes checking for working mmap... yes checking for madvise... yes checking whether madvise is declared... yes checking for Linux System.map... /boot/System.map-3.16.0-31-generic checking Linux version... 3.16.7 checking for Click Linux kernel extensions... no checking for Click Linux kernel extensions for transmit notification... no checking for read_net_skbcount kernel extension... no checking for strlen kernel symbol... yes checking for tulip_interrupt_hook kernel symbol... no checking for files_lock kernel symbol... no checking for files_lglock kernel symbol... no checking for sb_lock kernel symbol... no checking for dev_ioctl kernel symbol... no checking for devinet_ioctl kernel symbol... no checking for inet_ioctl kernel symbol... yes checking for inet_ctl_sock_create kernel symbol... yes checking for <linux/ktime.h>... yes checking whether struct if_data has ifi_datalen... no checking whether struct sockaddr_in has sin_len... no checking expat.h usability... no checking expat.h presence... no checking for expat.h... no checking for XML_ParserCreateNS in -lexpat... no checking for Linux kernel compilation flags... -I./arch/x86/include -I/lib/modules/3.16.0-31-generic/build/arch/x86/include/generated -I/lib/modules/3.16.0-31-generic/build/include -I./arch/x86/include/uapi -I/lib/modules/3.16.0-31-generic/build/arch/x86/include/generated/uapi -I./include/uapi -I/lib/modules/3.16.0-31-generic/build/include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -I./arch/x86/include -I/lib/modules/3.16.0-31-generic/build/arch/x86/include/generated -I/lib/modules/3.16.0-31-generic/build/include -I./arch/x86/include/uapi -I/lib/modules/3.16.0-31-generic/build/arch/x86/include/generated/uapi -I./include/uapi -I/lib/modules/3.16.0-31-generic/build/include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL -DKERNEL -Wall -Wundef -Wno-trigraphs -fno-strict-aliasing -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -Wall -Wundef -Wno-trigraphs -fno-strict-aliasing -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO configure: making C++-safe versions of Linux kernel headers (may take a while) checking for C++-includable kernel header files... no

configure: error:

Your Linux kernel header files cause errors when included by a C++ program.

Click modifies the Linux kernel's header files to make them work with C++, using the program 'linuxmodule/fixincludes.pl'. It looks like your kernel header files have features that 'linuxmodule/fixincludes.pl' doesn't know how to fix. You can report this error to us on the Click mailing list, or, even better, try to fix the error. See the config.log file for more information on the error.

config.log

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by click configure 2.1, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --enable-linuxmodule --disable-userlevel

---------

Platform.

---------

hostname = router1-HVM uname -m = x86_64 uname -r = 3.16.0-31-generic uname -s = Linux uname -v = #41~14.04.1-Ubuntu SMP Wed Feb 11 19:30:13 UTC 2015

/usr/bin/uname -p = unknown /bin/uname -X = unknown

/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown

PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games

-----------

Core tests.

-----------

configure:3290: checking build system type configure:3304: result: x86_64-unknown-linux-gnu configure:3324: checking host system type configure:3337: result: x86_64-unknown-linux-gnu configure:3357: checking target system type configure:3370: result: x86_64-unknown-linux-gnu configure:3441: checking for gcc configure:3457: found /usr/bin/gcc configure:3468: result: gcc configure:3533: checking for g++ configure:3549: found /usr/bin/g++ configure:3560: result: g++ configure:3631: checking for gcc configure:3658: result: gcc configure:3887: checking for C compiler version configure:3896: gcc --version >&5 gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3907: $? = 0 configure:3896: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --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.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --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.8.2 (Ubuntu 4.8.2-19ubuntu1) configure:3907: $? = 0 configure:3896: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3907: $? = 4 configure:3896: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3907: $? = 4 configure:3927: checking whether the C compiler works configure:3949: gcc conftest.c >&5 configure:3953: $? = 0 configure:4001: result: yes configure:4004: checking for C compiler default output file name configure:4006: result: a.out configure:4012: checking for suffix of executables configure:4019: gcc -o conftest conftest.c >&5 configure:4023: $? = 0 configure:4045: result: configure:4067: checking whether we are cross compiling configure:4075: gcc -o conftest conftest.c >&5 configure:4079: $? = 0 configure:4086: ./conftest configure:4090: $? = 0 configure:4105: result: no configure:4110: checking for suffix of object files configure:4132: gcc -c conftest.c >&5 configure:4136: $? = 0 configure:4157: result: o configure:4161: checking whether we are using the GNU C compiler configure:4189: result: yes configure:4198: checking whether gcc accepts -g configure:4218: gcc -c -g conftest.c >&5 configure:4218: $? = 0 configure:4259: result: yes configure:4276: checking for gcc option to accept ISO C89 configure:4339: gcc -c -g -O2 conftest.c >&5 configure:4339: $? = 0 configure:4352: result: none needed configure:4378: checking how to run the C preprocessor configure:4409: gcc -E conftest.c configure:4409: $? = 0 configure:4423: gcc -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory

include

                        ^

compilation terminated. configure:4423: $? = 1 configure: failed program was: | /* confdefs.h _/ | #define PACKAGE_NAME "click" | #define PACKAGE_TARNAME "click" | #define PACKAGE_VERSION "2.1" | #define PACKAGE_STRING "click 2.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define CLICK_VERSION "2.1" | #define CLICK_VERSION_CODE CLICK_MAKE_VERSIONCODE(2,1,0) | / end confdefs.h. _/ | #include configure:4448: result: gcc -E configure:4468: gcc -E conftest.c configure:4468: $? = 0 configure:4482: gcc -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory

include

compilation terminated. configure:4482: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "click" | #define PACKAGE_TARNAME "click" | #define PACKAGE_VERSION "2.1" | #define PACKAGE_STRING "click 2.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define CLICK_VERSION "2.1" | #define CLICK_VERSION_CODE CLICK_MAKE_VERSIONCODE(2,1,0) | / end confdefs.h. _/ | #include configure:4511: checking for grep that handles long lines and -e configure:4569: result: /bin/grep configure:4574: checking for egrep configure:4636: result: /bin/grep -E configure:4641: checking for ANSI C header files configure:4661: gcc -c -g -O2 conftest.c >&5 configure:4661: $? = 0 configure:4734: gcc -o conftest -g -O2 conftest.c >&5 configure:4734: $? = 0 configure:4734: ./conftest configure:4734: $? = 0 configure:4745: result: yes configure:4758: checking for sys/types.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for sys/stat.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for stdlib.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for string.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for memory.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for strings.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for inttypes.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for stdint.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4758: checking for unistd.h configure:4758: gcc -c -g -O2 conftest.c >&5 configure:4758: $? = 0 configure:4758: result: yes configure:4776: checking for sys/types.h configure:4776: result: yes configure:4776: checking for unistd.h configure:4776: result: yes configure:4776: checking for stdint.h configure:4776: result: yes configure:4776: checking for inttypes.h configure:4776: result: yes configure:4776: checking for endian.h configure:4776: gcc -c -g -O2 conftest.c >&5 configure:4776: $? = 0 configure:4776: result: yes configure:4776: checking for machine/endian.h configure:4776: gcc -c -g -O2 conftest.c >&5 configure:4776: gcc -c -g -O2 conftest.c >&5 conftest.c:60:28: fatal error: machine/endian.h: No such file or directory

include <machine/endian.h>

                        ^
compilation terminated. configure:4776: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "click" #define PACKAGE_TARNAME "click" #define PACKAGE_VERSION "2.1" #define PACKAGE_STRING "click 2.1" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define CLICK_VERSION "2.1" #define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE(2,1,0) #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define HAVE_STDINT_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_ENDIAN_H 1 / end confdefs.h. / #include #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif
#include <machine/endian.h>
configure:4776: result: no configure:4776: checking for byteswap.h configure:4776: gcc -c -g -O2 conftest.c >&5 configure:4776: $? = 0 configure:4776: result: yes configure:4776: checking for strings.h ... #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif
#include <net/if_dl.h>

configure:4776: result: no configure:4776: checking for net/if_tap.h configure:4776: gcc -c -g -O2 conftest.c >&5 conftest.c:75:24: fatal error: net/if_tap.h: No such file or directory

include <net/if_tap.h>

                    ^

compilation terminated. configure:4776: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "click" | #define PACKAGE_TARNAME "click" | #define PACKAGE_VERSION "2.1" | #define PACKAGE_STRING "click 2.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define CLICK_VERSION "2.1" | #define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE(2,1,0) | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_ENDIAN_H 1 | #define HAVE_BYTESWAP_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_TIME_H 1 | #define HAVE_TERMIO_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_PWD_H 1 | #define HAVE_GRP_H 1 | #define HAVE_EXECINFO_H 1 | #define HAVE_POLL_H 1 | #define HAVE_DLFCN_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_IFADDRS_H 1 | #define HAVE_LINUX_IF_TUNH 1 | / end confdefs.h. _/ | #include | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif configure:4776: result: no configure:4776: checking for net/if_tun.h configure:4776: gcc -c -g -O2 conftest.c >&5 conftest.c:75:24: fatal error: net/if_tun.h: No such file or directory

include <net/if_tun.h>

                    ^

compilation terminated. configure:4776: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "click" | #define PACKAGE_TARNAME "click" | #define PACKAGE_VERSION "2.1" | #define PACKAGE_STRING "click 2.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define CLICK_VERSION "2.1" | #define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE(2,1,0) | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 ... configure:4776: result: no configure:4776: checking for net/if_types.h configure:4776: gcc -c -g -O2 conftest.c >&5 conftest.c:75:26: fatal error: net/if_types.h: No such file or directory

include <net/if_types.h>

                      ^

compilation terminated. configure:4776: $? = 1 configure: failed program was: | /_ confdefs.h */ | #define PACKAGE_NAME "click" | #define PACKAGE_TARNAME "click" | #define PACKAGE_VERSION "2.1" | #define PACKAGE_STRING "click 2.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define CLICK_VERSION "2.1" | #define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE(2,1,0) | #define STDC_HEADERS 1

-----------------

Output variables.

-----------------

AR='ar' AR_CREATEFLAGS='cru' AUTOCONF='' AWK='' BUILD_AR='' BUILD_CC='' BUILD_CXX='' BUILD_DL_LDFLAGS='' BUILD_DL_LIBS='' BUILD_RANLIB='' CC='gcc' CFLAGS='' CLEAN_TARGETS='' CLICKINSTALL='' CLICKLINUX_FIXINCLUDES_PROGRAM='| sed -e s,/lib/modules/3.16.0-31-generic/build/include,${clickbuild_prefix}/include/click-linuxmodule/include1 , -e s,/lib/modules/3.16.0-31-generic/build/include/generated/uapi,${clickbuild_prefix}/include/click-linuxmodule/include3, -e s,/lib/modules/3 .16.0-31-generic/build/arch/x86/include/generated,${clickbuild_prefix}/include/click-linuxmodule/include0, -e s,/lib/modules/3.16.0-31-generic/ build/arch/x86/include/generated/uapi,${clickbuild_prefix}/include/click-linuxmodule/include2, -e s,\ -I,\ -isystem\ ,g' CLICK_BUILD_INSTALL='' CLICK_BUILD_INSTALL_IF_CHANGED='' CLICK_VERSION='2.1' CPP='gcc -E' CPPFLAGS=' -I./arch/x86/include -I/home/router1/click/include/click-linuxmodule/include0 -I/home/router1/click/include/click-linuxmodule/include1 -I./arch/x86/include/uapi -I/home/router1/click/include/click-linuxmodule/include2 -I./include/uapi -I/home/router1/click/include/click-linuxmodule/include3 -include ./include/linux/kconfig.h -Iubuntu/include -I./arch/x86/include -I/home/router1/click/include/click-linuxmodule/include0 -I/home/router1/click/include/click-linuxmodule/include1 -I./arch/x86/include/uapi -I/home/router1/click/include/click-linuxmodule/include2 -I./include/uapi -I/home/router1/click/include/click-linuxmodule/include3 -include ./include/linux/kconfig.h -Iubuntu/include -DKERNEL -DKERNEL -Wall -Wundef -Wno-trigraphs -fno-strict-aliasing -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-strict-overflow -fconserve-stack -Werror=implicit-int -DCC_HAVE_ASM_GOTO -Wall -Wundef -Wno-trigraphs -fno-strict-aliasing -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -w' CXX='g++' CXXCPP='g++ -E' CXXFLAGS=' -O2 -fno-exceptions -fno-rtti -fpermissive -Wno-undef -Wno-pointer-arith' DEFS='' DEPCFLAGS='-MD -MP' DEPDIRFLAG='-MF $(DEPDIR)/$*.d' DL_LDFLAGS='-rdynamic' DL_LIBS='-ldl' DRIVERS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EXEEXT='' EXPAT_INCLUDES='' EXPAT_LIBS='' EXTRA_DRIVER_OBJS='' EXTRA_TOOL_OBJS='' FINDELEMFLAGS='' GMAKE='' GREP='/bin/grep' HAVE_BSDMODULE_DRIVER='0' HAVE_LINUXMODULE_DRIVER='0' HAVE_MINIOS_DRIVER='0' HAVE_USERLEVEL_DRIVER='0' HOST_TOOLS='host' INCLUDE_KSYMS='yes' INSTALL_DATA='' INSTALL_IF_CHANGED='' INSTALL_INFO='' INSTALL_PROGRAM='' INSTALL_SCRIPT='' INSTALL_TARGETS='' KERNEL_CC='gcc' KERNEL_CFLAGS=' -O2 -Wno-undef' KERNEL_CXX='g++' KERNEL_CXXFLAGS=' -O2 -fno-exceptions -fno-rtti -fpermissive -Wno-undef -Wno-pointer-arith' LD='ld' LDFLAGS='' LDMODULEFLAGS='-shared' LIBOBJS='' LIBS='' LINUXMODULE_2_6='1' LINUXMODULE_FIXINCLUDES='1' LINUX_DEBUG_FLAGS='' LINUX_FIXINCLUDES_PROGRAM='| sed -e s,/lib/modules/3.16.0-31-generic/build/include,/home/router1/click/include/click-linuxmodule/include1, -e s,/lib/modules/3.16.0-31-generic/build/include/generated/uapi,/home/router1/click/include/click-linuxmodule/include3, -e s,/lib/modules/3.16.0-31-generic/build/arch/x86/include/generated,/home/router1/click/include/click-linuxmodule/include0, -e s,/lib/modules/3.16.0-31-generic/build/arch/x86/include/generated/uapi,/home/router1/click/include/click-linuxmodule/include2, -e s,\ -I,\ -isystem\ ,g' LTLIBOBJS='' MAKEINFO='' MD5SUM='' NETMAP_INCLUDES='' NM='nm' OBJCOPY='objcopy' OBJEXT='o' OTHER_TARGETS='' PACKAGE_BUGREPORT='' PACKAGE_NAME='click' PACKAGE_STRING='click 2.1' PACKAGE_TARNAME='click' PACKAGE_URL='' PACKAGE_VERSION='2.1' PATH_SEPARATOR=':' PCAP_INCLUDES='' PCAP_LIBS='' PERL='' POD2MAN='' POSIX_CLOCK_LIBS='' POSSIBLE_DRIVERS=' bsdmodule linuxmodule ns userlevel minios' PROPER_INCLUDES='' PROPER_LIBS='' PTHREAD_LIBS='' RANLIB='ranlib' SHELL='/bin/bash' SOCKET_LIBS='' SOSUFFIX='so' STRIP='strip' SUBMAKE='' TEXI2DVI='' TOOLDIRS=' click-align click-check click-combine click-devirtualize click-fastclassifier click-flatten click-mkmindriver click-pretty click-undead click-xform click2xml click-install' TOOL_CLEAN_TARGETS='' TOOL_INSTALL_TARGETS='' TOOL_TARGETS=' click-align click-check click-combine click-devirtualize click-fastclassifier click-flatten click-mkmindriver click-pretty click-undead click-xform click2xml' XML2CLICK='' ac_configure_args=' '\''--enable-linuxmodule'\'' '\''--disable-userlevel'\''' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='/usr/local/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='unknown' clickbuild_bindir='${clickbuild_prefix}/bin' clickbuild_clickdatadir='${clickbuild_prefix}/share/click' clickbuild_datadir='${clickbuild_prefix}/share' clickbuild_includedir='${clickbuild_prefix}/include' clickbuild_libdir='${clickbuild_prefix}/lib' clickbuild_sbindir='${clickbuild_prefix}/sbin' clickdatadir='/usr/local/share/click' conf_auxdir='$(top_srcdir)' datadir='/usr/local/share' datarootdir='/usr/local/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' element_groups=' analysis app aqm ethernet icmp ip simple standard tcpudp test threads' exec_prefix='${prefix}' freebsd_includedir='/usr/include' freebsd_srcdir='NONE' host='x86_64-unknown-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' htmldir='${docdir}' includedir='/usr/local/include' infodir='${datarootdir}/info' libdir='/usr/local/lib' libexecdir='${exec_prefix}/libexec' linux_builddir='/lib/modules/3.16.0-31-generic/build' linux_makeargs='' linux_srcdir='/lib/modules/3.16.0-31-generic/build/' localedir='${datarootdir}/locale' localperl5='' localstatedir='${prefix}/var' lwip_dir='' mandir='${datarootdir}/man' minios_dir='' newlib_dir='' oldincludedir='/usr/include' pdfdir='${docdir}' perl5='' prefix='/usr/local' program_transform_name='s,x,x,' provisions='' psdir='${docdir}' sbindir='/usr/local/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='x86_64-unknown-linux-gnu' target_alias='' target_cpu='x86_64' target_os='linux-gnu' target_vendor='unknown' xen_dir=''

-----------

confdefs.h.

-----------

/* confdefs.h */

define PACKAGE_NAME "click"

define PACKAGE_TARNAME "click"

define PACKAGE_VERSION "2.1"

define PACKAGE_STRING "click 2.1"

define PACKAGE_BUGREPORT ""

define PACKAGE_URL ""

define CLICK_VERSION "2.1"

define CLICK_VERSION_CODE CLICK_MAKE_VERSION_CODE(2,1,0)

define STDC_HEADERS 1

define HAVE_SYS_TYPES_H 1

define HAVE_SYS_STAT_H 1

define HAVE_STDLIB_H 1

define HAVE_STRING_H 1

define HAVE_MEMORY_H 1

define HAVE_STRINGS_H 1

define HAVE_INTTYPES_H 1

define HAVE_STDINT_H 1

define HAVE_UNISTD_H 1

define HAVE_SYS_TYPES_H 1

define HAVE_UNISTD_H 1

define HAVE_STDINT_H 1

define HAVE_INTTYPES_H 1

define HAVE_ENDIAN_H 1

define HAVE_BYTESWAP_H 1

... efine HAVE___BUILTIN_CLZL 1

define HAVE___BUILTIN_CLZLL 1

define HAVE___BUILTIN_FFS 1

define HAVE___BUILTIN_FFSL 1

define HAVE___BUILTIN_FFSLL 1

define HAVE___SYNC_SYNCHRONIZE 1

define HAVE___HAS_TRIVIAL_COPY 1

define HAVE___THREAD_STORAGE_CLASS 1

define HAVE_FFS 1

define HAVE_FFSL 1

define HAVE_FFSLL 1

define SIZEOF_STRUCT_TIMEVAL 16

define HAVE_STRUCT_TIMESPEC 1

define SIZEOF_STRUCT_TIMESPEC 16

define HAVE_DECL_CLOCK_GETTIME 1

define HAVE_CLOCK_GETTIME 1

define HAVE_NANOTIMESTAMP_ENABLED 1

define HAVE_POLL_H 1

define HAVE_PSELECT 1

define HAVE_SIGACTION 1

define HAVE_DYNAMIC_LINKING 1

define HAVE_LARGE_FILE_SUPPORT 1

define SIZEOF_OFF_T 8

define HAVE_GETPAGESIZE 1

define HAVE_MMAP 1

define HAVE_MADVISE 1

define HAVE_DECL_MADVISE 1

define HAVE_LINUXMODULE_2_6 1

define HAVE_LINUX_STRLEN_EXPOSED 1

define HAVE_LINUX_INET_IOCTL 1

define HAVE_LINUX_INET_CTL_SOCK_CREATE 1

define HAVE_LINUX_KTIME_H 1

define CLICK_STATS 0

define HAVE_STRIDE_SCHED 1

configure: exit 1

tbarbette commented 9 years ago

Hi,

Debian/Ubuntu splits kernel headers in two folders, "common header" and "platform-specific heads". It seems that click doesn't like that.

cd /usr/src cp -rf linux-headers-3.16.0-4-common linux-headers-3.16.0-4-merged cp -rf linux-headers-3.16.0-4-amd64/* linux-headers-3.16.0-4-merged/

Then specify the header path with : ./configure --with-linux=/usr/src/linux-headers-3.16.0-4-merged/ --with-linux-map=/boot/System.map-3.16.0-4-amd64 --disable-userlevel --enable-linuxmodule --enable-multithread

It seems from my own comment on #104 that you also need to do : ln -s /usr/src/linux-source-3.14/include/linux linux-headers-3.16.0-4-merged/generated/autoconf.h But I don't remember if this is still needed, it's quite old and we use that "merged" folder since that time...

You'll probably get an error about preempt_enable_no_resched(). Click try to do something with preemption but module can't mess with it since 3.14, those functions are unexported for modules. Anyway it is called when the router is stopped so change "preempt_enable_no_resched();" by "preempt_enable();" EDIT : see #185

And, with 3.16 there is a last error about alternative() not being defined in barrier.h . I didn't looked too much and I just added in include/click-linuxmodule/include0/asm/barrier.h just before the locaton of the error :

define alternative(oldinstr, newinstr, feature) \

    asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory");

And it should work. Please let me know if the autconf.h link is still needed, I'm curious.

pvc468 commented 9 years ago

Cannot find kernel headers in two folders Just found only one folder anyway I think it problem in linux kernel version 3.16 because when I have update it I got the problem. I solved it by restoring to previous kernel version.

georgeparisis commented 9 years ago

the autoconf.h link was needed in my case (debian jessie - 3.16.0-4-amd64):

ln -s /usr/src/linux-headers-3.16.0-4-merged/include/generated/autoconf.h /usr/src/linux-headers-3.16.0-4-merged/include/linux/