[ndnSIM] Getting error while compiling

Alex Afanasyev aa at CS.UCLA.EDU
Sat Nov 19 11:07:48 PST 2016


> On Nov 19, 2016, at 4:55 AM, Aniket Yeole <anikety97 at gmail.com> wrote:
> 
> Greetings all,
> 
> I am trying to install ndnsim as mentioned on the website (http://ndnsim.net/2.2/ <http://ndnsim.net/2.2/>). But while doing so I am facing some problems like there are error while installation. 
> 
> when I executed "./waf configure --enable-examples" i got following errors 
> 
> 
> PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
> Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
> MPI Support                   : not enabled (option --enable-mpi not selected)
> ndnSIM                        : enabled
> NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
> SQlite stats data output      : enabled
> Tap Bridge                    : enabled
> PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)
> Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
> Build tests                   : not enabled (defaults to disabled)
> Build examples                : enabled
> GNU Scientific Library (GSL)  : not enabled (GSL not found)
> 'configure' finished successfully (16.575s)
> 
> Should I ignore them ? 

Hi Aniket,

If you see that "ndnSIM" is enabled and 'configure' finished successfully, there is no reason to panic :)  Everything got configured correctly and the script just reporting what has been found and what has not.


> I continued the installation process ignoring the error and while compiling the program ndn-simple.cpp I got following error
> 
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: error: ld returned 1 exit status
> 
> Waf: Leaving directory `/home/a/KL/ndnsim/ns-3/build'
> Build failed
>  -> task in 'RemoteSystemsTempFiles' failed (exit status 1): 
> 	{task 140133562240336: cxxprogram  -> RemoteSystemsTempFiles}
> ['/usr/bin/g++', '-pthread', '-pthread', '-o', '/home/a/KL/ndnsim/ns-3/build/scratch/RemoteSystemsTempFiles/RemoteSystemsTempFiles', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-lns3-dev-lr-wpan-debug', '-lns3-dev-netanim-debug', '-lns3-dev-lte-debug', '-lns3-dev-spectrum-debug', '-lns3-dev-antenna-debug', '-lns3-dev-aodv-debug', '-lns3-dev-dsr-debug', '-lns3-dev-mesh-debug', '-lns3-dev-ndnSIM-debug', '-lns3-dev-test-debug', '-lns3-dev-wave-debug', '-lns3-dev-wifi-debug', '-lns3-dev-applications-debug', '-lns3-dev-csma-layout-debug', '-lns3-dev-dsdv-debug', '-lns3-dev-flow-monitor-debug', '-lns3-dev-point-to-point-layout-debug', '-lns3-dev-wimax-debug', '-lns3-dev-nix-vector-routing-debug', '-lns3-dev-olsr-debug', '-lns3-dev-sixlowpan-debug', '-lns3-dev-tap-bridge-debug', '-lns3-dev-internet-debug', '-lns3-dev-bridge-debug', '-lns3-dev-point-to-point-debug', '-lns3-dev-mpi-debug', '-lns3-dev-buildings-debug', '-lns3-dev-config-store-debug', '-lns3-dev-propagation-debug', '-lns3-dev-uan-debug', '-lns3-dev-mobility-debug', '-lns3-dev-energy-debug', '-lns3-dev-csma-debug', '-lns3-dev-fd-net-device-debug', '-lns3-dev-virtual-net-device-debug', '-lns3-dev-topology-read-debug', '-lns3-dev-network-debug', '-lns3-dev-stats-debug', '-lns3-dev-core-debug', '-lrt', '-lpthread', '-lsqlite3', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-lpangocairo-1.0', '-latk-1.0', '-lcairo', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpango-1.0', '-lgobject-2.0', '-lglib-2.0', '-lfontconfig', '-lfreetype', '-lxml2', '-lboost_graph', '-lboost_thread', '-lboost_unit_test_framework', '-lboost_system', '-lboost_random', '-lboost_date_time', '-lboost_iostreams', '-lboost_regex', '-lboost_program_options', '-lboost_chrono', '-lboost_filesystem', '-lboost_system', '-lboost_signals', '-lboost_filesystem', '-lcryptopp']
> 
>  
> what should I do to eliminate this errors. 
> 
> Please help.

The error is not related to ndn-simple.cpp, but to RemoteSystemTempFiles "scenario" that you have in your NS-3's scratch folder.  The scratch folder assumptions about how it handles .cpp files directly placed in the scratch folder (those assumed to be complete scenarios and must include main() function) and files places in a subdirectory in the scratch folder (those will be compiled into a single scenario and one of the files must have main() function).  From the error, I see that you haven't defined main() function in any of the scenario files in /home/a/KL/ndnsim/ns-3/build/scratch/RemoteSystemsTempFiles/RemoteSystemsTempFiles/ folder

--
Alex


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161119/3c8780eb/attachment.html>


More information about the ndnSIM mailing list