[Click] linking issues

Eddie Kohler kohler at cs.ucla.edu
Fri Sep 14 11:15:39 EDT 2007


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