[Click] Compile issues on RHEL 6.4 (2.6.32)

Keith Schoenefeld keith at schoenefeld.org
Fri Feb 22 23:41:51 EST 2013


I'm running RHEL 6.4 with a RedHat kernel.  I've worked through
various compile issues working on the 2.0.1 release code, including
having to recompile the kernel from source with NR_CPUS set to 8
instead of 4096, adding the NETREG line to fixincludes.pl, etc.  I
have 2.0.1 compiling now with no issues, but once I install and run
insmod click.ko I get the error "insmod: error inserting 'click.ko':
-1 Cannot allocate memory".  I tried running strip -g as suggested in
another post, but then I get "insmod: error inserting 'click.ko': -1
Unknown symbol in module".  I've also tried using the latest git
repository.  Using the following configure command:

./configure --prefix=/opt/click-kohler-6aa1787 --disable-userlevel
--enable-multithread

I end up with the following errors (I ran make once to compile
everything that would compile, then again to just get the list of
errors):


# make linuxmodule
make[1]: Entering directory `/root/kohler-click-6aa1787/linuxmodule'
make -C /lib/modules/2.6.32-358.el6.click.x86_64/build
M=/root/kohler-click-6aa1787/linuxmodule  modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-358.el6.click.x86_64'
  CXX [M] tohost.o
In file included from
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/linux/tcp.h:186,
                 from
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/linux/ipv6.h:220,
                 from
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/ip.h:344,
                 from
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/xfrm.h:23,
                 from
/root/kohler-click-6aa1787/linuxmodule/../elements/linuxmodule/tohost.cc:28:
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:
In function ‘void inet_csk_clear_xmit_timer(sock*, int)’:
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:208:
error: ‘DEBUG_HASH’ was not declared in this scope
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:208:
error: ‘DEBUG_HASH2’ was not declared in this scope
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:208:
error: too many initializers for ‘_ddebug’
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:
In function ‘void inet_csk_reset_xmit_timer(sock*, int, long unsigned
int, long unsigned int)’:
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:224:
error: ‘DEBUG_HASH’ was not declared in this scope
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:224:
error: ‘DEBUG_HASH2’ was not declared in this scope
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:224:
error: too many initializers for ‘_ddebug’
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:241:
error: ‘DEBUG_HASH’ was not declared in this scope
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:241:
error: ‘DEBUG_HASH2’ was not declared in this scope
/root/kohler-click-6aa1787/include/click-linuxmodule/include0/net/inet_connection_sock.h:241:
error: too many initializers for ‘_ddebug’
  CREATE /root/kohler-click-6aa1787/linuxmodule/ksyms.c
nm: 'tohost.o': No such file
  CC [M] ksyms.o
  LD [M]  /root/kohler-click-6aa1787/linuxmodule/click.o
ld: /root/kohler-click-6aa1787/linuxmodule/tohost.o: No such file: No
such file or directory
make[3]: *** [/root/kohler-click-6aa1787/linuxmodule/click.o] Error 1
make[2]: *** [_module_/root/kohler-click-6aa1787/linuxmodule] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.32-358.el6.click.x86_64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/kohler-click-6aa1787/linuxmodule'
make: *** [linuxmodule] Error 2

I'm not sure where to go with the DEBUG_HASH, DEBUG_HASH2, etc. errors
and google hasn't helped me at all.  Does anyone have any
recommendations for getting this working?

-- KS



More information about the click mailing list