How to ficx this issue

176 views
Skip to first unread message

Burke Geceyatmaz

unread,
Sep 17, 2023, 5:28:50 AM9/17/23
to ns-3-users
/usr/bin/ld: /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so: undefined reference to `typeinfo for ns3::PfFfMacScheduler'
/usr/bin/ld: /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so: undefined reference to `ns3::PfFfMacScheduler::TransmissionModeConfigurationUpdate(unsigned short, unsigned char)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [utils/CMakeFiles/test-runner.dir/build.make:133: /home/bg/ns-allinone-3.39/ns-3.39/build/utils/ns3.39-test-runner-default] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:17100: utils/CMakeFiles/test-runner.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Finished executing the following commands:
cd cmake-cache; /usr/bin/cmake --build . -j 3 ; cd ..
bg@bg-virtual-machine:~/ns-allinone-3.39/ns-3.39$

Tommaso Pecorella

unread,
Sep 17, 2023, 12:14:01 PM9/17/23
to ns-3-users
Hi,
strange error (PfFfMacScheduler is defined in the LTE module, which should be linked to the LTE tests automatically).
 
Please share your configuration (the command you used, like ./ns3 configure [....], we need to know what you added after "configure"), and if there are other errors before the one you posted. Usually it's the first one that is relevant.
Also, make sure that your VM does have enough memory and disk - exhausting them can cause weird errors.

Burke Geceyatmaz

unread,
Sep 18, 2023, 4:00:09 PM9/18/23
to ns-3-users
usr/bin/ld: /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so: undefined reference to `typeinfo for ns3::PfFfMacScheduler'
/usr/bin/ld: /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so: undefined reference to `ns3::PfFfMacScheduler::TransmissionModeConfigurationUpdate(unsigned short, unsigned char)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [utils/CMakeFiles/test-runner.dir/build.make:133: /home/bg/ns-allinone-3.39/ns-3.39/build/utils/ns3.39-test-runner-default] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:17100: utils/CMakeFiles/test-runner.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Finished executing the following commands:
cd cmake-cache; /usr/bin/cmake --build . -j 3 --target install ; cd ..


17 Eylül 2023 Pazar tarihinde saat 19:14:01 UTC+3 itibarıyla Tommaso Pecorella şunları yazdı:

ns-3-users

unread,
Sep 18, 2023, 4:01:08 PM9/18/23
to ns-3-users

 ./ns3 configure
-- Using default output directory /home/bg/ns-allinone-3.39/ns-3.39/build
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was found.
-- Eigen was not found
-- Harfbuzz is required by GTK3 and was not found.
-- LibXML2 was found.
-- Visualizer requires Python bindings
-- GSL was found.
-- docs: doxygen documentation not enabled due to missing dependencies: doxygen dia
-- Failed to locate sphinx-build executable (missing: SPHINX_EXECUTABLE)
-- docs: sphinx documentation not enabled due to missing dependencies: Sphinx epstopdf pdflatex latexmk convert dvipng
-- Precompiled headers were enabled
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- find_external_library: brite was not found. Missing headers: "Brite.h" and missing libraries: "brite".
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- find_external_library: click was not found. Missing headers: "simclick.h" and missing libraries: "nsclick click".
-- Skipping src/click
-- Processing src/config-store
-- Processing src/core
-- Boost Units have been found.
-- Processing src/csma
-- Processing src/csma-layout
-- Processing src/dsdv
-- Processing src/dsr
-- Processing src/energy
-- Processing src/fd-net-device
-- Checking for module 'libdpdk'
--   No package 'libdpdk' found
-- Processing src/flow-monitor
-- Processing src/internet
-- Processing src/internet-apps
-- Processing src/lr-wpan
-- Processing src/lte
-- Processing src/mesh
-- Processing src/mobility
-- Processing src/netanim
-- Processing src/network
-- Processing src/nix-vector-routing
-- Processing src/olsr
-- Processing src/openflow
-- find_external_library: openflow was not found. Missing headers: "openflow.h" and missing libraries: "openflow".
-- Skipping src/openflow
-- Processing src/point-to-point
-- Processing src/point-to-point-layout
-- Processing src/propagation
-- Processing src/sixlowpan
-- Processing src/spectrum
-- Processing src/stats
-- Processing src/tap-bridge
-- Processing src/test
-- Processing src/topology-read
-- Processing src/traffic-control
-- Processing src/uan
-- Processing src/virtual-net-device
-- Processing src/wifi
-- Processing src/wimax
-- ---- Summary of ns-3 settings:
Build profile                 : default
Build directory               : /home/bg/ns-allinone-3.39/ns-3.39/build
Build with runtime asserts    : ON
Build with runtime logging    : ON
Build version embedding       : OFF (not requested)
BRITE Integration             : OFF (missing dependency)
DES Metrics event collection  : OFF (not requested)
DPDK NetDevice                : OFF (not requested)
Emulation FdNetDevice         : ON
Examples                      : ON
File descriptor NetDevice     : ON
GNU Scientific Library (GSL)  : ON
GtkConfigStore                : OFF (missing dependency)
LibXml2 support               : ON
MPI Support                   : OFF (not requested)
ns-3 Click Integration        : OFF (missing dependency)
ns-3 OpenFlow Integration     : OFF (missing dependency)
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : OFF (missing dependency)
Python Bindings               : OFF (not requested)
SQLite support                : ON
Eigen3 support                : OFF (missing dependency)
Tap Bridge                    : ON
Tap FdNetDevice               : ON
Tests                         : ON


Modules configured to be built:
antenna                   aodv                      applications              
bridge                    buildings                 config-store              
core                      csma                      csma-layout              
dsdv                      dsr                       energy                    
fd-net-device             flow-monitor              internet                  
internet-apps             lr-wpan                   lte                      
mesh                      mobility                  netanim                  
network                   nix-vector-routing        olsr                      
point-to-point            point-to-point-layout     propagation              
sixlowpan                 spectrum                  stats                    
tap-bridge                test                      topology-read            
traffic-control           uan                       virtual-net-device        
wifi                      wimax                    

Modules that cannot be built:
brite                     click                     mpi                      
openflow                  visualizer                


-- Configuring done
-- Generating done
-- Build files have been written to: /home/bg/ns-allinone-3.39/ns-3.39/cmake-cache

Finished executing the following commands:
18 Eylül 2023 Pazartesi tarihinde saat 23:00:09 UTC+3 itibarıyla Burke Geceyatmaz şunları yazdı:

ns-3-users

unread,
Sep 18, 2023, 6:28:01 PM9/18/23
to ns-3-users
Please double check that you have enough discs space (use the command "df"), and that you didn't modify any file in the source folder.
Also, try to start from scratch by calling "ns3 clean" and "ns3 configure".
Last but not least, check that there are no other errors in the compilation - the relevant error is always the *first*, not the last.

Burke Geceyatmaz

unread,
Sep 20, 2023, 5:32:21 AM9/20/23
to ns-3-users
which command to put clean and configure ns3

19 Eylül 2023 Salı tarihinde saat 01:28:01 UTC+3 itibarıyla ns-3-users şunları yazdı:

Tommaso Pecorella

unread,
Sep 20, 2023, 6:12:31 AM9/20/23
to ns-3-users
./ns3 clean
./ns3 configure --enable-examples --enable-tests

the "--enable-examples --enable-tests" can be skipped, depending if you need/want to run the examples and/or the tests.

Burke Geceyatmaz

unread,
Sep 20, 2023, 4:08:51 PM9/20/23
to ns-3-users
How to run ns3 examples

20 Eylül 2023 Çarşamba tarihinde saat 13:12:31 UTC+3 itibarıyla Tommaso Pecorella şunları yazdı:

Tom Henderson

unread,
Sep 20, 2023, 4:27:52 PM9/20/23
to ns-3-...@googlegroups.com
It looks like you may benefit from reading the ns-3 tutorial, found on
https://www.nsnam.org. It describes how to run ns-3 tutorial example
programs.

- Tom
> /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so <http://libns3.39-lte-test-default.so>: undefined reference to `typeinfo for ns3::PfFfMacScheduler'
> /usr/bin/ld:
> /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so <http://libns3.39-lte-test-default.so>: undefined reference to `ns3::PfFfMacScheduler::TransmissionModeConfigurationUpdate(unsigned short, unsigned char)'
> /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so <http://libns3.39-lte-test-default.so>: undefined reference to `typeinfo for ns3::PfFfMacScheduler'
> /usr/bin/ld:
> /home/bg/ns-allinone-3.39/ns-3.39/build/lib/libns3.39-lte-test-default.so <http://libns3.39-lte-test-default.so>: undefined reference to `ns3::PfFfMacScheduler::TransmissionModeConfigurationUpdate(unsigned short, unsigned char)'
> collect2: error: ld returned 1 exit status
> gmake[2]: ***
> [utils/CMakeFiles/test-runner.dir/build.make:133: /home/bg/ns-allinone-3.39/ns-3.39/build/utils/ns3.39-test-runner-default] Error 1
> gmake[1]: *** [CMakeFiles/Makefile2:17100:
> utils/CMakeFiles/test-runner.dir/all] Error 2
> gmake: *** [Makefile:146: all] Error 2
> Finished executing the following commands:
> cd cmake-cache; /usr/bin/cmake --build . -j
> 3 ; cd ..
> bg@bg-virtual-machine:~/ns-allinone-3.39/ns-3.39$
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting>
> ---
> You received this message because you are subscribed to the Google
> Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ns-3-users+...@googlegroups.com
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/1c3c9871-c2d1-445e-9ac9-c02b81fcf875n%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/1c3c9871-c2d1-445e-9ac9-c02b81fcf875n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Burke Geceyatmaz

unread,
Oct 2, 2023, 4:30:06 PM10/2/23
to ns-3-users
after these steps what sould be command to write next ? 

20 Eylül 2023 Çarşamba tarihinde saat 13:12:31 UTC+3 itibarıyla Tommaso Pecorella şunları yazdı:
Reply all
Reply to author
Forward
0 new messages