[Tinyos-help] Cannot compile TOSSIM application

Bernd-Christian Renner christian.renner at tuhh.de
Wed Nov 15 07:17:43 PST 2006


| > | to the web. I'll do that now.
| >
| > well, this only givesme some new error-messages:
| >
| > ---
| >
| > g++ -g -c -o sim.o sim.cpp -I/opt/tinyos-2.x/tos/lib/tossim/
| > g++ -o sim sim.o build/micaz/tossim.o build/micaz/sim.o
| > build/micaz/c-support.o
|
| Works fine for me.... what version of TinyOS are you using?

I'm using the newest version available for download, as on the site 
http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html. I used the 
beta before, which worked without problems.

The system is (K)Ubuntu (6.06), rpms converted to deb via alien, installed 
with dpkg (--force-overwrite, since there we're some files contained in more 
than one packet).


| > build/micaz/tossim.o: In function
| > `Variable':/opt/tinyos-2.x/tos/lib/tossim/tossim.c:69: undefined
| > reference to
| > `sim_mote_get_variable_info'
|
| These errors are weird: sim_mote_get_variable_info is defined in
| SimMoteP.nc as C,spontaneous function. I'd check the symbol tables of
| the generated objects (obdjump --syms). That will let you find out if
| it is defined and where.

This gives me:


build/micaz$ objdump --syms tossim.o | grep sim_
00000bfc l     F .text  00000053 _Z11tossim_hashPv
00000c50 l     F .text  00000032 _Z14tossim_hash_eqPvS_
00000000         *UND*  00000000 sim_csma_init_high
00000000         *UND*  00000000 sim_csma_init_low
00000000         *UND*  00000000 sim_csma_high
00000000         *UND*  00000000 sim_csma_low
00000000         *UND*  00000000 sim_csma_symbols_per_sec
00000000         *UND*  00000000 sim_csma_bits_per_symbol
00000000         *UND*  00000000 sim_csma_preamble_length
00000000         *UND*  00000000 sim_csma_exponent_base
00000000         *UND*  00000000 sim_csma_max_iterations
00000000         *UND*  00000000 sim_csma_min_free_samples
00000000         *UND*  00000000 sim_csma_rxtx_delay
00000000         *UND*  00000000 sim_csma_ack_time
00000000         *UND*  00000000 sim_csma_set_init_high
00000000         *UND*  00000000 sim_csma_set_init_low
00000000         *UND*  00000000 sim_csma_set_high
00000000         *UND*  00000000 sim_csma_set_low
00000000         *UND*  00000000 sim_csma_set_symbols_per_sec
00000000         *UND*  00000000 sim_csma_set_bits_per_symbol
00000000         *UND*  00000000 sim_csma_set_preamble_length
00000000         *UND*  00000000 sim_csma_set_exponent_base
00000000         *UND*  00000000 sim_csma_set_max_iterations
00000000         *UND*  00000000 sim_csma_set_min_free_samples
00000000         *UND*  00000000 sim_csma_set_rxtx_delay
00000000         *UND*  00000000 sim_csma_set_ack_time
00000000         *UND*  00000000 sim_gain_add
00000000         *UND*  00000000 sim_gain_value
00000000         *UND*  00000000 sim_gain_connected
00000000         *UND*  00000000 sim_gain_remove
00000000         *UND*  00000000 sim_gain_set_noise_floor
00000000         *UND*  00000000 sim_gain_set_sensitivity
00000000         *UND*  00000000 sim_packet_allocate
000004da g     F .text  00000046 _ZN6PacketC2EP10sim_packet
00000520 g     F .text  00000046 _ZN6PacketC1EP10sim_packet
00000000         *UND*  00000000 sim_packet_free
00000000         *UND*  00000000 sim_packet_set_destination
00000000         *UND*  00000000 sim_packet_destination
00000000         *UND*  00000000 sim_packet_set_length
00000000         *UND*  00000000 sim_packet_length
00000000         *UND*  00000000 sim_packet_set_type
00000000         *UND*  00000000 sim_packet_type
00000000         *UND*  00000000 sim_packet_data
00000000         *UND*  00000000 sim_packet_max_length
00000000         *UND*  00000000 sim_packet_set_strength
00000000         *UND*  00000000 sim_packet_deliver
00000000         *UND*  00000000 sim_mote_get_variable_info
00000000         *UND*  00000000 sim_mote_euid
00000000         *UND*  00000000 sim_mote_set_euid
00000000         *UND*  00000000 sim_mote_start_time
00000000         *UND*  00000000 sim_mote_set_start_time
00000000         *UND*  00000000 sim_mote_enqueue_boot_event
00000000         *UND*  00000000 sim_mote_is_on
00000000         *UND*  00000000 sim_mote_turn_off
00000000         *UND*  00000000 sim_mote_turn_on
00000000         *UND*  00000000 sim_end
00000000         *UND*  00000000 sim_init
00000000         *UND*  00000000 sim_time
00000000         *UND*  00000000 sim_ticks_per_sec
00000000         *UND*  00000000 sim_print_now
00000000         *UND*  00000000 sim_set_time
00000000         *UND*  00000000 sim_node
00000000         *UND*  00000000 sim_set_node
00000000         *UND*  00000000 sim_add_channel
00000000         *UND*  00000000 sim_remove_channel
00000000         *UND*  00000000 sim_random_seed
00000000         *UND*  00000000 sim_run_next_event


What exactly does this mean or imply?

---
Christian


More information about the Tinyos-help mailing list