[Click] Linux 2.6.24.7 module kernel compilation problem

Eddie Kohler kohler at cs.ucla.edu
Mon Nov 3 17:20:20 EST 2008


Thanks for the bug report, Javier.  This problem should be fixed.
Eddie


Javier Sánchez wrote:
> Hi list,
> 
>  I downloaded, patched, complied and booted a 2.6.24.7 vanilla kernel
>  under debian etch.
> 
> When i run configure:
> 
>  ./configure --enable-wifi --enable-local --enable-radio
>  --with-linux=/usr/src/linux-2.6.24.7
> 
>  The configure throws errors, it seems to me that compilation flags are
>  not readed correctly ( the line linux 2.6 compilation flags is empty,
>  it's not normal)  , but certainly i have no idea what is wrong.
> 
>  I attached config.log from click and makefile from 2.6.24.7 vanilla kernel.
> 
>  Salutations
>  Javier
> 
> 
>  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 -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 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 <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 random... yes
>  checking for snprintf... yes
>  checking for strtoul... yes
>  checking for tcgetpgrp... yes
>  checking for vsnprintf... yes
>  checking for int... yes
>  checking size of int... 4
>  checking for long... yes
>  checking size of long... 4
>  checking for size_t... yes
>  checking size of size_t... 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... yes
>  checking for uint64_t... 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 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 time.h usability... yes
>  checking time.h presence... yes
>  checking for time.h... 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 whether clock_gettime is declared... yes
>  checking for library containing clock_gettime... -lrt
>  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 <linux/ktime.h>... yes
>  checking for device polling kernel extension... yes
>  checking for atomic_set_mask... no
>  checking for atomic_add_return... no
>  checking for <asm/alternative.h>... yes
>  checking for <asm/system.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... found
>  checking whether pcap.h works... yes
>  checking for bpf_timeval in pcap.h... no
>  checking whether pcap_setnonblock is declared... yes
>  checking for -lpcap... found
>  checking for pcap_setnonblock... 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 2.6 compilation flags...
>  checking for C++-includable kernel header files... yes
>  checking whether -fpermissive is required... yes
>  checking whether -fpermissive is allowed... 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 uintptr_t is defined 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 gawk... gawk
>  checking for grep that handles long lines and -e... (cached) /bin/grep
>  checking for egrep... (cached) /bin/grep -E
>  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 exopc/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: creating include/click/pathvars.h
>  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
>  dhcppc0:/nfs_shared/click#
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list