[Click] HELP. configure problem

shule ney neyshule at gmail.com
Mon Mar 14 13:02:11 EDT 2011


*Hi,all,I can't configure click 1.6 on linux-2.6.24.7correctly*:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for g++... g++
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 -W -Wall -E
checking for inline... inline
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether <new> works... yes
checking how to run the C++ preprocessor... g++ -W -Wall  -E
checking for ar... ar
checking for ld... ld
checking for ranlib... ranlib
checking for strip... strip
checking whether we are compiling for Linux... yes
checking for strerror... yes
checking for snprintf... yes
checking for strtoul... yes
checking for tcgetpgrp... yes
checking for vsnprintf... yes
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 int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for inttypes.h... (cached) yes
checking whether machine is indifferent to alignment... yes
checking for long long... yes
checking size of long long... 8
checking for long long... (cached) yes
checking for int64_t typedef... yes
checking for uint64_t typedef... yes
checking whether long and int64_t are the same type... no
checking whether long long and int64_t are the same type... yes
checking for struct timeval... yes
checking size of struct timeval... 8
checking for struct timespec... yes
checking for struct timespec... (cached) yes
checking size of struct timespec... 8
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking endianness... 1234
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking whether signed right shift is arithmetic... yes
checking for addressable va_list type... yes
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 strings.h... (cached) yes
checking for ffs... yes
checking for ffsl... yes
checking for ffsll... yes
checking for unistd.h... (cached) yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking whether <poll.h> is emulated... no
checking for sigaction... yes
checking for kqueue... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking compiler flags for building loadable modules... -shared
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking whether accept() uses socklen_t... yes
checking for large file support in C library... yes
checking for off_t... yes
checking size of off_t... 8
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for madvise... yes
checking whether madvise is declared... yes
checking for Linux 2.6... 1
checking for Click Linux kernel extensions... yes
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 device polling kernel extension... yes
checking for atomic_set_mask... no
checking for SMP... yes
checking for <asm/alternative.h>... yes
checking linux/if_tun.h usability... yes
checking linux/if_tun.h presence... yes
checking for linux/if_tun.h... yes
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking net/if_tap.h usability... no
checking net/if_tap.h presence... no
checking for net/if_tap.h... no
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking for pcap.h... not found
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 2.6 compilation flags...
checking for C++-includable kernel header files... no
checking whether long and int64_t are the same type in the Linux kernel...
no
checking whether long long and int64_t are the same type in the Linux
kernel... yes
checking whether struct sk_buff has a security member... no
checking whether struct sk_buff has an fclone member... no
checking whether skb_shinfo has a tso_size member... no
checking whether skb_shinfo has a gso_size member... no
checking whether skb_shinfo has a ufo_size member... no
checking whether skb_shinfo has an ip6_frag_id member... no
checking whether net_enable_timestamp is declared... no
checking whether netif_tx_lock is declared... no
configure: WARNING:
=========================================

Your Linux kernel header files cause errors when included by a C++ program,
so I won't try to compile the linuxmodule driver.

There are two common reasons for this error:
1. You have not applied the Linux kernel patch that comes with this
   distribution.  Apply the right patch and try again.  See the INSTALL
   file for more information.
2. Your Linux configuration enables some functionality that is not yet
   covered by our patches.  Turn off this functionality and try again,
   or fix the error and tell us how you did it.  See the config.log file
   for more detailed information on the error.

=========================================
checking for a BSD-compatible install... /usr/bin/install -c
checking whether install accepts -C... no
checking for GNU make... make
checking for working autoconf... found
checking for perl5... no
checking for perl... perl
checking for working makeinfo... missing
checking for working texi2dvi... missing
checking for install-info... /usr/sbin/install-info
checking for working install-info... found
checking for working pod2man... found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating click-buildtool
config.status: creating click-compile
config.status: creating config.mk
config.status: creating installch
config.status: creating tools/Makefile
config.status: creating tools/lib/Makefile
config.status: creating doc/Makefile
config.status: creating etc/libclick/Makefile
config.status: creating etc/pkg-config.mk
config.status: creating bsdmodule/Makefile
config.status: creating linuxmodule/Makefile
config.status: creating ns/Makefile
config.status: creating userlevel/Makefile
config.status: creating tools/click-align/Makefile
config.status: creating tools/click-check/Makefile
config.status: creating tools/click-combine/Makefile
config.status: creating tools/click-devirtualize/Makefile
config.status: creating tools/click-fastclassifier/Makefile
config.status: creating tools/click-flatten/Makefile
config.status: creating tools/click-mkmindriver/Makefile
config.status: creating tools/click-pretty/Makefile
config.status: creating tools/click-undead/Makefile
config.status: creating tools/click-xform/Makefile
config.status: creating tools/click2xml/Makefile
config.status: creating tools/click-install/Makefile
config.status: creating include/click/config.h
config.status: include/click/config.h is unchanged
config.status: creating include/click/pathvars.h
config.status: include/click/pathvars.h is unchanged
config.status: creating include/click/config-bsdmodule.h
config.status: include/click/config-bsdmodule.h is unchanged
config.status: creating include/click/config-linuxmodule.h
config.status: include/click/config-linuxmodule.h is unchanged
config.status: creating include/click/config-ns.h
config.status: include/click/config-ns.h is unchanged
config.status: creating include/click/config-userlevel.h
config.status: include/click/config-userlevel.h is unchanged
config.status: executing default-1 commands

*The error messgae in config.log are as below:*

 conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.cpp:10:28: error: ac_nonexistent.h: No such file or directory
conftest.cpp:10:28: error: ac_nonexistent.h: No such file or directory
configure:5242: checking for strerror
conftest.cpp:39: error: redefinition of 'void f1(int64_t)'
conftest.cpp:37: error: 'void f1(long long int)' previously defined here
conftest.cpp:43: error: size of array 'x' is negative
conftest.cpp:91:23: error: sys/event.h: No such file or directory
conftest.cpp:58:23: error: sys/event.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
conftest.cpp:115:24: error: net/if_tun.h: No such file or directory
conftest.cpp:82:24: error: net/if_tun.h: No such file or directory
conftest.cpp:115:24: error: net/if_tap.h: No such file or directory
conftest.cpp:82:24: error: net/if_tap.h: No such file or directory
conftest.cpp:115:21: error: net/bpf.h: No such file or directory
conftest.cpp:82:21: error: net/bpf.h: No such file or directory
conftest.cpp:82:18: error: pcap.h: No such file or directory
conftest.cpp:84:24: error: net/if_var.h: No such file or directory
conftest.cpp:89: error: aggregate 'if_msghdr ifm' has incomplete type and
cannot be defined
conftest.cpp:89: error: 'struct sockaddr_in' has no member named 'sin_len'
conftest.cpp:116:19: error: expat.h: No such file or directory
conftest.cpp:83:19: error: expat.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
was not declared in this scope
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:9: error: 'MAX_MP_BUSSES'
was not declared in this scope
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:10: error: 'MAX_MP_BUSSES'
was not declared in this scope
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:12: error: 'MAX_MP_BUSSES'
was not declared in this scope
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' was not declared in this scope
/lib/modules/2.6.24/build/include/asm/io_apic_32.h:114: error:
'MAX_IRQ_SOURCES' was not declared in this scope
/lib/modules/2.6.24/build/include/asm/smp_32.h:161: error: 'GET_APIC_ID' was
not declared in this scope
conftest.cpp:102: error: redefinition of 'void f1(int64_t)'
conftest.cpp:100: error: 'void f1(long long int)' previously defined here
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
conftest.c:104: error: 'struct sk_buff' has no member named 'security'
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
conftest.c:104: error: 'struct skb_shared_info' has no member named
'tso_size'
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
conftest.c:104: error: 'struct skb_shared_info' has no member named
'ufo_size'
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:6:25: error:
mach_mpspec.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:8: error: 'MAX_MP_BUSSES'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/mpspec_32.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.24/build/include/asm/smp_32.h:157:26: error:
mach_apicdef.h: No such file or directory
/lib/modules/2.6.24/build/include/asm/dma-mapping_32.h: In function
'dma_mapping_error':
/lib/modules/2.6.24/build/include/asm/irq_32.h:15:25: error: irq_vectors.h:
No such file or directory
/lib/modules/2.6.24/build/include/asm/irq_32.h:49: error: 'NR_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/irq.h:180: error: 'NR_IRQS'
undeclared here (not in a function)
/lib/modules/2.6.24/build/include/linux/backing-dev.h: In function
'bdi_stat_error':
Your Linux kernel header files cause errors when included by a C++ program,
There are two common reasons for this error:
   or fix the error and tell us how you did it.  See the config.log file
   for more detailed information on the error.
ac_cv_func_strerror=yes

can you guys help me out of this trouble, this really annoy me a lot.Thanks
very much.


More information about the click mailing list