linker error during building NS3.19

394 views
Skip to first unread message

K' Dash

unread,
Mar 19, 2014, 9:21:38 AM3/19/14
to ns-3-...@googlegroups.com
dear fellows

there is an error when i was building the NS3.19. please guide me.

[1680/1730] cxxshlib: src/internet/bindings/ns3module.cc.7.o -> bindings/python/ns/internet.so
[1681/1730] cxxshlib: src/flow-monitor/bindings/ns3module.cc.7.o -> bindings/python/ns/flow_monitor.so
./libns3.19-mobility-debug.so: undefined reference to `ns3::PositionAllocator::GetNext() const'
./libns3.19-mobility-debug.so: undefined reference to `ns3::PositionAllocator::AssignStreams(long)'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/adnan/porting/ns-allinone-3.19/ns-3.19/build'
Build failed
 -> task in 'test-runner' failed (exit status 1):
    {task 45092752: cxxprogram test-runner.cc.1.o -> ns3.19-test-runner-debug}
['/usr/bin/g++', '-pthread', '-pthread', 'utils/test-runner.cc.1.o', '-o', '/home/adnan/porting/ns-allinone-3.19/ns-3.19/build/utils/ns3.19-test-runner-debug', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-lns3.19-test-debug', '-lns3.19-csma-layout-debug', '-lns3.19-point-to-point-layout-debug', '-lns3.19-netanim-debug', '-lns3.19-lte-debug', '-lns3.19-spectrum-debug', '-lns3.19-antenna-debug', '-lns3.19-aodv-debug', '-lns3.19-dsdv-debug', '-lns3.19-dsr-debug', '-lns3.19-mesh-debug', '-lns3.19-olsr-debug', '-lns3.19-csma-debug', '-lns3.19-wimax-debug', '-lns3.19-wave-debug', '-lns3.19-applications-debug', '-lns3.19-virtual-net-device-debug', '-lns3.19-uan-debug', '-lns3.19-energy-debug', '-lns3.19-flow-monitor-debug', '-lns3.19-medeha-debug', '-lns3.19-nix-vector-routing-debug', '-lns3.19-sixlowpan-debug', '-lns3.19-tap-bridge-debug', '-lns3.19-internet-debug', '-lns3.19-bridge-debug', '-lns3.19-point-to-point-debug', '-lns3.19-mpi-debug', '-lns3.19-wifi-debug', '-lns3.19-buildings-debug', '-lns3.19-propagation-debug', '-lns3.19-mobility-debug', '-lns3.19-config-store-debug', '-lns3.19-emu-debug', '-lns3.19-fd-net-device-debug', '-lns3.19-topology-read-debug', '-lns3.19-network-debug', '-lns3.19-stats-debug', '-lns3.19-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lxml2']

18:18:13 Build Finished (took 11s.848ms)

Tommaso Pecorella

unread,
Mar 19, 2014, 2:32:03 PM3/19/14
to ns-3-...@googlegroups.com
Hi,

it seems a linking error. Check that you didn't add module's dependencies. In case, you have to modify the wscipt to tell the linker which libraries have to be added.

E.g., the wifi/wscript file starts with:
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-


def build(bld):
    obj
= bld.create_ns3_module('wifi', ['network', 'propagation'])

meaning that the module have to be linked with "network" and "propagation" modules.

T.

K' Dash

unread,
Mar 19, 2014, 5:49:48 PM3/19/14
to ns-3-...@googlegroups.com
I understand this sir, you already told me this thing when i was creating new module. and i rechecked this thing again but error still exists. :(

is the error related to these two functions GetNext() const and AssignStreams(long)



--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/rd8Vg2YujFw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
ADNAN RASHID


Reply all
Reply to author
Forward
0 new messages