[Click] linking issues

Adam Greenhalgh a.greenhalgh at cs.ucl.ac.uk
Fri Sep 14 12:21:00 EDT 2007


Eddie,

Unfortuately that doesn't help. With a colleague (Mickael Hoerdt) ,
we've  been looking into this further. We've found the following,
click compiles on 2.6.16.33 but only partially compile on 2.6.19.2, if
you compile on 2.6.19.2 you need to change the following lines
linuxmodule/Makefile by adding -g you are able to compile again
(stripping the binary afterwards).

CLICKCC = gcc -g -w -W -Wall
CLICKCXX = g++ -g -w -W -Wall -fno-exceptions -fno-rtti  -D__SMP__

Mickael and I spent some time looking into how the templates were
being generated because looked related to templates not being
correctly linked, but we haven't been able to spot anything concrete.

A bit more investigation has revealled that there i a new .smp_locks
entry in the 2.6.19.2 kernel (scripts/mod/modpost.c line 922) , not
present in 2.6.16.33.

Adam

On 9/14/07, Eddie Kohler <kohler at cs.ucla.edu> wrote:
> Adam,
>
> Could you also try with a compile line that points into /lib/modules?  I
> assume you haven't got a crosscompiler or anything.
>
> Eddie
>
>
> Adam Greenhalgh wrote:
> > I am seeing this too now, I'm trying to figure out what is going on here.
> >
> > Adam
> >
> > build script is
> >
> > LINUX_SRC="/export/filesystems/hoerdt/vrouters/sources/kernels/linux/linux-2.6.19.2-latest_click-dell1950.SMP/"
> > NUM_THREADS="8"
> > PREFIX="$PWD/install-dell1950-smp"
> > OPTIONS="--enable-multithread=$NUM_THREADS"
> > mkdir -p $PREFIX
> > make clean
> > ./configure --with-linux=$LINUX_SRC --prefix=$PREFIX $OPTIONS
> > make -j8
> >
> >
> > On 9/13/07, Eddie Kohler <kohler at cs.ucla.edu> wrote:
> >> Hi Roman,
> >>
> >> How frustrating that you only get the warnings sometimes!
> >>
> >> So my ./configure line refers to a Linux build tree under /lib/modules.
> >>   Have you tried a --with-linux line like that?  e.g.
> >> --with-linux=/lib/modules/2.6.19.2-whatever/build ?
> >>
> >> Eddie
> >>
> >>
> >> rchertov at purdue.edu wrote:
> >>> Quoting Eddie Kohler <kohler at cs.ucla.edu>:
> >>>
> >>>> Hi Roman,
> >>>>
> >>>> I should have resolved this last night by adding Linux's $(CPPFLAGS) to
> >>>> the link line; at least it worked for Adam.  Are you at HEAD?  (git
> >>>> pull)  Have you "make clean"ed?
> >>> Just did the git pull, make clean, and make and got the warnings.  Although
> >>> sometimes I don't get them.
> >>>
> >>> This is my config line just in case.
> >>> ./configure --prefix=/home/rchertov/ \
> >>> --with-linux=/scratch/rchertov/linux-2.6.19.2/ \
> >>> --enable-intel-cpu --enable-multithread=8 \
> >>> --disable-userlevel --enable-experimental
> >>>
> >>> Roman
> >>>
> >>>> E
> >>>>
> >>>>
> >>>> rchertov at purdue.edu wrote:
> >>>>> Hello,
> >>>>>    I got the latest Click with git today and I am having some interesting
> >>>>> messages during linking.  I am not too strong on linking but these
> >>>> messages
> >>>>> imply that not all is well in the linking land.  Any idea what this could
> >>>> be?
> >>>>>   CC [M] ksyms.o
> >>>>>   LD [M]  /home/rchertov/click-1.6/linuxmodule/click.o
> >>>>>   LD [M]  /home/rchertov/click-1.6/linuxmodule/proclikefs.o
> >>>>> ld: `.gnu.linkonce.t._ZN19ContextErrorHandlerD1Ev' referenced in section
> >>>>> `.smp_locks' of /home/rchertov/click-1.6/linuxmodule/confparse.o: defined
> >>>> in
> >>>>> discarded section `.gnu.linkonce.t._ZN19ContextErrorHandlerD1Ev' of
> >>>>> /home/rchertov/click-1.6/linuxmodule/confparse.o
> >>>>>
> >>>>> ld: `.gnu.linkonce.t._ZN6VectorI6StringED1Ev' referenced in section
> >>>> `.smp_locks'
> >>>>> of /home/rchertov/click-1.6/linuxmodule/lexer.o: defined in discarded
> >>>> section
> >>>>> `.gnu.linkonce.t._ZN6VectorI6StringED1Ev' of
> >>>>> /home/rchertov/click-1.6/linuxmodule/lexer.o
> >>>>>
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Roman
> >>>>> _______________________________________________
> >>>>> click mailing list
> >>>>> click at amsterdam.lcs.mit.edu
> >>>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/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