Bug 741 - build failes under Ubuntu 9.10
build failes under Ubuntu 9.10
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3.6
PC Linux
: P5 blocker
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-17 08:41 UTC by Laurynas Riliskis
Modified: 2009-11-19 06:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurynas Riliskis 2009-11-17 08:41:31 UTC
Hi,

I have tester compilers gcc.4.2, 4.3, 4.4 under fresh ubuntu 9.10. All attempts to compile ns-3-dev fails.
the version is retrieved from the mercurial
build command
->export CXX=g++-4.2
->./build.py 
# Build NSC
Entering directory `nsc'
 =>  python scons.py linux-2.6.18
scons: Reading SConscript files ...
Checking target architecure...(cached) x86
scons: done reading SConscript files.
scons: Building targets ...
scons: `linux-2.6.18' is up to date.
scons: done building targets.
 =>  python scons.py linux-2.6.26
scons: Reading SConscript files ...
Checking target architecure...(cached) x86
scons: done reading SConscript files.
scons: Building targets ...
scons: `linux-2.6.26' is up to date.
scons: done building targets.
Leaving directory `nsc'
# Build NS-3
Entering directory `./ns-3-dev'
 =>  python waf configure --with-regression-traces ../ns-3-dev-ref-traces --with-pybindgen ../pybindgen --with-nsc ../nsc
Checking for program g++,c++             : ok g++-4.2 
Checking for program cpp                 : ok /usr/bin/cpp 
Checking for program ar                  : ok /usr/bin/ar 
Checking for program ranlib              : ok /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for program pkg-config          : ok /usr/bin/pkg-config 
Checking for regression traces location  : ok ../ns-3-dev-ref-traces (given) 
Checking for -Wno-error=deprecated-declarations support : yes 
Checking for -Wl,--soname=foo support                   : yes 
Checking for header stdlib.h                            : ok 
Checking for header signal.h                            : ok 
Checking for header pthread.h                           : ok 
Checking for high precision time implementation         : 128-bit integer 
Checking for header stdint.h                            : ok 
Checking for header inttypes.h                          : ok 
Checking for header sys/inttypes.h                      : not found 
Checking for library rt                                 : ok 
Checking for header netpacket/packet.h                  : ok 
Checking for header linux/if_tun.h                      : ok 
Checking for pkg-config flags for GTK_CONFIG_STORE      : ok  
Checking for pkg-config flags for LIBXML2               : ok  
Checking for library sqlite3                            : ok 
Checking for header sys/socket.h                        : ok 
Checking for header netinet/in.h                        : ok 
Checking for NSC location                               : ok ../nsc (given) 
Checking for library dl                                 : ok 
Checking for NSC supported architecture i686            : ok  
Checking for program python                             : ok /usr/bin/python 
Checking for Python version >= 2.3                      : ok 2.6.4 
Checking for library python2.6                          : ok 
Checking for program python2.6-config                   : ok /usr/bin/python2.6-config 
Checking for header Python.h                            : ok 
Checking for -fvisibility=hidden support                : yes 
Checking for pybindgen location                         : ok ../pybindgen (given) 
Checking for Python module pybindgen                    : ok  
Checking for pybindgen version                          : ok 0.12.0.703 
Checking for Python module pygccxml                     : ok  
/usr/local/lib/python2.6/dist-packages/pygccxml/parser/declarations_cache.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Checking for pygccxml version                           : ok 1.0.0 
Checking for program gccxml                             : ok /usr/bin/gccxml 
Checking for gccxml version                             : ok 0.9.0 
Checking for program sudo                               : ok /usr/bin/sudo 
Checking for program hg                                 : ok /usr/bin/hg 
Checking for program valgrind                           : ok /usr/bin/valgrind 
Checking for pkg-config flags for GSL                   : ok  
---- Summary of optional NS-3 features:
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Tap Bridge                    : enabled
GtkConfigStore                : enabled
XmlIo                         : enabled
SQlite stats data output      : enabled
Network Simulation Cradle     : enabled
Python Bindings               : enabled
Python API Scanning Support   : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build examples and samples    : enabled
Static build                  : not enabled (option --enable-static not selected)
GNU Scientific Library (GSL)  : enabled
'configure' finished successfully (1.756s)
 =>  python waf
Waf: Entering directory `/home/dev/ns3/ns-3-allinone/ns-3-dev/build'
'/home/dev/ns3/ns-3-allinone/ns-3-dev/bindings/python/ns3/__init__.py' -> '/home/dev/ns3/ns-3-allinone/ns-3-dev/build/debug/bindings/python/ns3/__init__.py'
[372/961] cxx: src/core/log.cc -> build/debug/src/core/log_1.o
....
....
....
....

error:
[871/961] cxx: build/debug/bindings/python/ns3_module_list_routing.cc -> build/debug/bindings/python/ns3_module_list_routing_3.o
debug/bindings/python/ns3_module_node.cc: In function ‘PyObject* _wrap_PyNs3Application_Start__0(PyNs3Application*, PyObject*, PyObject*, PyObject**)’:
debug/bindings/python/ns3_module_node.cc:31192: error: no matching function for call to ‘ns3::Application::Start(ns3::TimeUnit<1>&)’
debug/ns3/object.h:147: note: candidates are: void ns3::Object::Start()
debug/bindings/python/ns3_module_node.cc: In function ‘PyObject* _wrap_PyNs3Application_Start__1(PyNs3Application*, PyObject*, PyObject*, PyObject**)’:
debug/bindings/python/ns3_module_node.cc:31214: error: no matching function for call to ‘ns3::Application::Start(ns3::RandomVariable&)’
debug/ns3/object.h:147: note: candidates are: void ns3::Object::Start()
debug/bindings/python/ns3_module_node.cc: In function ‘PyObject* _wrap_PyNs3Application_Stop__0(PyNs3Application*, PyObject*, PyObject*, PyObject**)’:
debug/bindings/python/ns3_module_node.cc:31296: error: ‘class ns3::Application’ has no member named ‘Stop’
debug/bindings/python/ns3_module_node.cc: In function ‘PyObject* _wrap_PyNs3Application_Stop__1(PyNs3Application*, PyObject*, PyObject*, PyObject**)’:
debug/bindings/python/ns3_module_node.cc:31318: error: ‘class ns3::Application’ has no member named ‘Stop’
[872/961] cxx: build/debug/bindings/python/ns3_module_wifi.cc -> build/debug/bindings/python/ns3_module_wifi_3.o
Waf: Leaving directory `/home/dev/ns3/ns-3-allinone/ns-3-dev/build'
Build failed
 -> task failed (err #1): 
	{task: cxx ns3_module_node.cc -> ns3_module_node_3.o}
Traceback (most recent call last):
  File "./build.py", line 117, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 108, in main
    build_ns3(config)
  File "./build.py", line 56, in build_ns3
    run_command(["python", "waf"])
  File "/home/dev/ns3/ns-3-allinone/util.py", line 24, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['python', 'waf'] exited with code 1



info:
->uname -r
2.6.31-14-generic-pae


python Python 2.6.4
Comment 1 Gustavo J. A. M. Carneiro 2009-11-17 10:27:08 UTC
Python bindings are broken, I am working on it.  For the time being, configure with --disable-python.
Comment 2 Gustavo J. A. M. Carneiro 2009-11-18 07:10:49 UTC
Should be fixed.
Comment 3 Laurynas Riliskis 2009-11-19 06:43:39 UTC
can confirm that now its working.