[Click] 2.6.11.6 kernel level compile error

Yun Mao maoy at cis.upenn.edu
Tue Apr 5 17:23:30 EDT 2005


This will probably help.

$ cvs diff sync.hh
Index: sync.hh
===================================================================
RCS file: /cvs/click/release/one/include/click/sync.hh,v
retrieving revision 1.16
diff -r1.16 sync.hh
8a9
> #  define smp_num_cpus      num_possible_cpus()


Yun


On Sat, 2 Apr 2005, Tomas Mahoney wrote:

> hi eddie,
>
> i am able to install userlevel fine on 2.6.11.6 but
> when i do a gmake install to get kernel level also, it
> crashes with the error.
>
> /home/click/linuxmodule/../include/click/sync.hh:285:
> error: `smp_num_cpus' undeclared (first use this
> function)
>
> i just got latest code from cvs. any ideas?
> thanks
>
>
>
>
> -----------------------------------------------------
>
> gmake[2]: Entering directory `/usr/src/linux-2.6.11.6'
>  CC [M] crc32.o
>  CC [M] in_cksum.o
>  CXX [M] string.o
>  CXX [M] straccum.o
>  CXX [M] nameinfo.o
> In file included from
> /home/click/linuxmodule/../include/click/timer.hh:4,
>                 from
> /home/click/linuxmodule/../include/click/router.hh:5,
>                 from
> /home/click/linuxmodule/../lib/nameinfo.cc:23:
> /home/click/linuxmodule/../include/click/sync.hh: In
> constructor `ReadWriteLock::ReadWriteLock()':
> /home/click/linuxmodule/../include/click/sync.hh:229:
> error: `smp_num_cpus' undeclared (first use this
> function)
> /home/click/linuxmodule/../include/click/sync.hh:229:
> error: (Each undeclared identifier is reported only
> once for each function it appears in.)
> /home/click/linuxmodule/../include/click/sync.hh: In
> member function `void ReadWriteLock::acquire_write()':
> /home/click/linuxmodule/../include/click/sync.hh:262:
> error: `smp_num_cpus' undeclared (first use this
> function)
> /home/click/linuxmodule/../include/click/sync.hh: In
> member function `bool ReadWriteLock::attempt_write()':
> /home/click/linuxmodule/../include/click/sync.hh:271:
> error: `smp_num_cpus' undeclared (first use this
> function)
> /home/click/linuxmodule/../include/click/sync.hh: In
> member function `void ReadWriteLock::release_write()':
> /home/click/linuxmodule/../include/click/sync.hh:285:
> error: `smp_num_cpus' undeclared (first use this
> function)
> gmake[3]: *** [/home/click/linuxmodule/nameinfo.o]
> Error 1
> gmake[2]: *** [_module_/home/click/linuxmodule] Error
> 2
> gmake[2]: Leaving directory `/usr/src/linux-2.6.11.6'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/home/click/linuxmodule'
> gmake: *** [install] Error 1
>
> ------------------------------------------------------
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list