Open rahulhada opened 7 years ago
Lynne salameh forked this repo and made some fixes: https://github.com/kusoof/ns-3-dev-git/tree/mptcp Other than that, you shoulkd disable warnings as error when compiling and enable C++11 see https://github.com/teto/ns-3-dev-git/wiki/How-to-use-the-implementation-%3F -Wno-error=unused-variable
Error : in kusoof while running the scenario script....
./waf --run scratch/mptcp-test
Waf: Entering directory /home/tiger/OpenLab/NS3/NS3ContributedCode/ns-3-dev-git-mptcp/build' [2171/2191] Linking build/scratch/mp-onoff-application /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../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/tiger/OpenLab/NS3/NS3ContributedCode/ns-3-dev-git-mptcp/build' Build failed -> task in 'mp-onoff-application' failed (exit status 1): {task 140676502741904: cxxprogram mp-onoff-application.cc.4.o -> mp-onoff-application} ['/usr/bin/g++', '-pthread', 'scratch/mp-onoff-application.cc.4.o', '-o', '/home/tiger/OpenLab/NS3/NS3ContributedCode/ns-3-dev-git-mptcp/build/scratch/mp-onoff-application', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-lns3-dev-test-debug', '-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-applications-debug', '-lns3-dev-csma-layout-debug', '-lns3-dev-dsdv-debug', '-lns3-dev-dsr-debug', '-lns3-dev-flow-monitor-debug', '-lns3-dev-internet-apps-debug', '-lns3-dev-mesh-debug', '-lns3-dev-wimax-debug', '-lns3-dev-nix-vector-routing-debug', '-lns3-dev-olsr-debug', '-lns3-dev-point-to-point-layout-debug', '-lns3-dev-sixlowpan-debug', '-lns3-dev-tap-bridge-debug', '-lns3-dev-wave-debug', '-lns3-dev-internet-debug', '-lns3-dev-bridge-debug', '-lns3-dev-point-to-point-debug', '-lns3-dev-mpi-debug', '-lns3-dev-traffic-control-debug', '-lns3-dev-wifi-debug', '-lns3-dev-buildings-debug', '-lns3-dev-propagation-debug', '-lns3-dev-uan-debug', '-lns3-dev-mobility-debug', '-lns3-dev-energy-debug', '-lns3-dev-config-store-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', '-lxml2']
scratch/mptcp-test-two.cc.3.o: In function ns3::Ptr<ns3::MpOnOffApplication> ns3::CreateObject<ns3::MpOnOffApplication>()': mptcp-test-two.cc:(.text._ZN3ns312CreateObjectINS_18MpOnOffApplicationEEENS_3PtrIT_EEv[_ZN3ns312CreateObjectINS_18MpOnOffApplicationEEENS_3PtrIT_EEv]+0x20): undefined reference to
ns3::MpOnOffApplication::MpOnOffApplication()'
scratch/mptcp-test-two.cc.3.o: In function ns3::Ptr<ns3::MpOnOffApplication> ns3::CompleteConstruct<ns3::MpOnOffApplication>(ns3::MpOnOffApplication*)': mptcp-test-two.cc:(.text._ZN3ns317CompleteConstructINS_18MpOnOffApplicationEEENS_3PtrIT_EEPS3_[_ZN3ns317CompleteConstructINS_18MpOnOffApplicationEEENS_3PtrIT_EEPS3_]+0x19): undefined reference to
ns3::MpOnOffApplication::GetTypeId()'
collect2: error: ld returned 1 exit status
Kindly look into this error and let know the possible solutions....
Please guide me the solution for the error facing while installation. Error as follows:
../src/internet/model/tcp-socket-base.cc:2022:10: error: unused variable ‘idsn’ [-Werror=unused-variable] uint64_t idsn; ^ ../src/internet/model/tcp-socket-base.cc:2023:10: error: unused variable ‘localToken’ [-Werror=unused-variable] uint32_t localToken; ^ ../src/internet/model/tcp-socket-base.cc: In member function ‘virtual ns3::Ptrns3::TcpSocketBase ns3::TcpSocketBase::Fork()’: ../src/internet/model/tcp-socket-base.cc:4032:32: error: ‘aligned_storage’ is not a member of ‘std’ char addr = new char[sizeof(std::aligned_storage<sizeof(MpTcpSocketBase)>::type)]; ^ ../src/internet/model/tcp-socket-base.cc:4032:77: error: ‘::type’ has not been declared char addr = new char[sizeof(std::aligned_storage<sizeof(MpTcpSocketBase)>::type)]; ^ cc1plus: all warnings being treated as errors