[Click] Problem building nsclick

Harald Schioeberg harald at net.t-labs.tu-berlin.de
Fri Dec 22 08:02:36 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bart Braem wrote:
> On Friday 22 December 2006 12:22, Harald Schioeberg wrote:
>> building nsclick fails for me.
>> problem is the libnsclick.so:
>>
>>
>> $ nm libnsclick.so  | grep srandom
>> 000b3090 T _Z20click_random_srandomv
>>          U _ZN5Click20click_random_srandomEv
>>          U srandom@@GLIBC_2.0
>>
> I might be wrong here, but this output makes me think the symbol 
> Click::click_random_srandom is defined?

click_.. is defined (T=text-seg) but Click::click_.. is undefined (U)
if i interpret this correctly.


> 
>> and the build of ns fails with:
>>
>> /afs/net.t-labs.tu-berlin.de/home/harald/opt32/lib/libnsclick.so:
>> undefined reference to `Click::click_random_srandom()'
>> collect2: ld returned 1 exit status
>>
>> because only click_random_srandom, but not Click::click_random_srandom
>> is defined.... anyone has seen this problem?
>>
> We didn't see it yet, altough we use nsclick quite often. Did you apply any 
> other patches? Which platform are you using to build?

no other patches, debian-testing ia32,
step-by-step from click-1.5.0/INSTALL

> 
>> i'm using ns-2.30, not the recommended 2.29 because 2.29 does not build
>> on my debian-testing, but the click patch applies without rejects, and i
>> can't imagine how that should be related.
> 
> 2.29 revision 3 should build fine on recent systems, which error do you get? 

i didn't know there are sub-revisions, i used the 2.29 tarball from
sf.net with the patch from click-1.5.0

ns-2.29$ ./configure --prefix=${HOME}/opt32 --with-click=${HOME}/opt32
[..]
checking for tk.h... no
[..]
configure: error: Installation of tk seems incomplete or can't be found
automatically.

# ln -s /usr/include/tcl8.4/tk.h /usr/include/

ns-2.29$ ./configure --prefix=${HOME}/opt32 --with-click=${HOME}/opt32
**OK**

ns-2.29$ make
g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
- -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DCLICK_NS -DHAVE_LIBNSCLICK
- -DHAVE_CLICK_SIMCLICK_H -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
- -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H
- -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION
- -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test
- -DALLOW_RANDOM -I.
- -I/afs/net.t-labs.tu-berlin.de/home/harald/opt32/include
- -I/afs/net.t-labs.tu-berlin.de/home/harald/opt32/include
- -I/afs/net.t-labs.tu-berlin.de/home/harald/opt32/include -I/usr/include
- -I/usr/include/tcl8.4 -I/usr/include/pcap -I./tcp -I./sctp -I./common
- -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace
- -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main
- -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
- -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite
- -I./wpan -o trace/trace.o trace/trace.cc
./sctp/sctp.h:705: error: extra qualification 'SctpAgent::' on member
'DumpSendBuffer'
make: *** [trace/trace.o] Error 1


> 
> Regards,
> Bart
> 

Thanks
	Harald

> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFi9drJgyxs71kcx4RAvttAJ4hrNGdBW/62/RSSW5BimfESJ6IyQCgnAJN
zpTreq5+AQbKMa/b9A/2yME=
=znNN
-----END PGP SIGNATURE-----


More information about the click mailing list