Problem building or rebuilding ns3

2,230 views
Skip to first unread message

Lachy Hughes

unread,
Oct 28, 2011, 8:30:49 AM10/28/11
to ns-3-users
Long story short,

Yesterday my computer (Linux mint 11) began sucking up disk space, no
idea how or where, but this caused my machine to slow down and when i
rebooted it was unable to boot into anything but the tty.

After fixing this problem, I am back into Linux and it is exactly how
it left (before the stuff up)

EXCEPT:
Now I am unable to successfully build a freshly downloaded package,
because of the following error
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

In file included from src/spectrum/bindings/ns3module.cc:1:0:
src/spectrum/bindings/ns3module.h:292:5: error: ‘LogComponent’ in
namespace ‘ns3’ does not name a type
[1129/1709] cxx: src/tap-bridge/model/tap-bridge.cc -> build/src/tap-
bridge/model/tap-bridge.cc.1.o
[1130/1709] cxx: src/test/global-routing-test-suite.cc -> build/src/
test/global-routing-test-suite.cc.4.o
Waf: Leaving directory `/home/foo/Documents/rep/ns-3-allinone/ns-3-dev/
build'
Build failed
-> task failed (exit status 1):
{task 42526928: cxx ns3module.cc -> ns3module.cc.7.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-
error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-
aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-
fno-strict-aliasing', '-fvisibility=hidden', '-pthread', '-pthread', '-
pthread', '-fno-strict-aliasing', '-fwrapv', '-fno-strict-aliasing', '-
Ibuild', '-I.', '-Ibuild/src/spectrum/bindings', '-Isrc/spectrum/
bindings', '-I/usr/include/python2.7', '-I/usr/include/atk-1.0', '-I/
usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/
glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/
include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/
gtk-2.0', '-I/usr/lib/gtk-2.0/include', '-I/usr/include/cairo', '-I/
usr/include/gdk-pixbuf-2.0', '-I/usr/include/pixman-1', '-I/usr/
include/libxml2', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-
DSQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DPYTHONDIR="/usr/local/lib/
python2.7/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/
dist-packages"', '-DHAVE_PYTHON_H=1', '-DENABLE_GSL', '-
DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DNDEBUG', '-DNDEBUG', 'src/
spectrum/bindings/ns3module.cc', '-c', '-o', 'src/spectrum/bindings/
ns3module.cc.7.o']
Traceback (most recent call last):
File "./build.py", line 147, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 138, in main
build_ns3(config, build_examples, build_tests, args,
build_options)
File "./build.py", line 61, in build_ns3
run_command([sys.executable, "waf", "build"] + build_options)
File "/home/foo/Documents/rep/ns-3-allinone/util.py", line 24, in
run_command
raise CommandError("Command %r exited with code %i" % (argv,
retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited
with code 1
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


and unable to build (or run for that matter) the previously installed
ns3 due to the following error...


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

cannot find ns3/core-config.h
cannot find ns3/config-store-config.h
cannot find ns3/core-config.h
cannot find ns3/config-store-config.h
cannot find ns3/core-config.h
cannot find ns3/config-store-config.h
cannot find ns3/core-config.h
cannot find ns3/config-store-config.h
Waf: Entering directory `/home/foo/Documents/repos/ns-3-allinone/ns-3-
dev/build'
Traceback (most recent call last):
File "./waf", line 158, in <module>
Scripting.prepare(t, cwd, VERSION, wafdir)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/
Scripting.py", line 105, in prepare
prepare_impl(t,cwd,ver,wafdir)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/
Scripting.py", line 98, in prepare_impl
main()
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/
Scripting.py", line 133, in main
fun(ctx)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/
Scripting.py", line 278, in build
return build_impl(bld)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/
Scripting.py", line 287, in build_impl
bld.add_subdirs([os.path.split(Utils.g_module.root_path)[0]])
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Build.py",
line 639, in add_subdirs
self.recurse(dirs,'build')
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Utils.py",
line 461, in recurse
f(self)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-dev/wscript",
line 635, in build
bld.add_subdirs('src')
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Build.py",
line 639, in add_subdirs
self.recurse(dirs,'build')
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Utils.py",
line 461, in recurse
f(self)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-dev/src/
wscript", line 301, in build
bld.add_subdirs(list(all_modules))
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Build.py",
line 639, in add_subdirs
self.recurse(dirs,'build')
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-
dev/.waf-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Utils.py",
line 461, in recurse
f(self)
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-dev/src/core/
wscript", line 304, in build
pymod = bld.ns3_python_bindings()
File "/home/foo/Documents/repos_old/ns-3-allinone/ns-3-dev/src/
wscript", line 207, in ns3_python_bindings
source = [bld.srcnode.find_resource('bindings/python/ns3modulegen-
modular.py').relpath_gen(bld.path),
AttributeError: 'NoneType' object has no attribute 'relpath_gen'
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Any help or suggestions would be greatly appreciated

Cheers,

Lachy

Lalith Suresh

unread,
Oct 28, 2011, 8:56:23 AM10/28/11
to ns-3-...@googlegroups.com
Hello,

How much RAM do you have? Try building with "./waf build -j1", and use the --enable-modules flag to waf configure to build only those modules that you need.
 
Cheers,

Lachy

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.




--
Lalith Suresh

Gustavo Carneiro

unread,
Oct 28, 2011, 9:01:39 AM10/28/11
to ns-3-...@googlegroups.com
Compiling the ns-3 python bindings is a very memory-intensive process.  If you have multiple processors, try to do "./waf -j1" to make sure only one build process is used, to save RAM.

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.




--
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert

Lachy Hughes

unread,
Oct 28, 2011, 6:23:10 PM10/28/11
to ns-3-users
I have 4GB of Ram and a Quad core CPU, dont know if it makes much
difference but bother versions of ns3 i am trying to build are ns-3-
dev

This did not seem to help the previously working ns3
I am still getting the same errors...

"cannot find ns3/core-config.h
cannot find ns3/config-store-config.h
...etc..."

and a fresh download of ns3 needs to be built from python (which does
not have that flag), unless i am sorely mistaken?

On Oct 28, 11:01 pm, Gustavo Carneiro <gjcarne...@gmail.com> wrote:
> Compiling the ns-3 python bindings is a very memory-intensive process.  If
> you have multiple processors, try to do "./waf -j1" to make sure only one
> build process is used, to save RAM.
>
> INESC Porto, UTM, WiN,http://win.inescporto.pt/gjc

Vedran Miletić

unread,
Oct 28, 2011, 7:07:53 PM10/28/11
to ns-3-...@googlegroups.com, Gustavo Carneiro
2011/10/29 Lachy Hughes <lachlanh...@gmail.com>:

> I have 4GB of Ram and a Quad core CPU, dont know if it makes much
> difference but bother versions of ns3 i am trying to build are ns-3-
> dev
>
> This did not seem to help the previously working ns3
> I am still getting the same errors...
>

This seems to me like a build issue with Python bindings that I'm
getting as well. Gustavo, could you please rescan them?

Vedran

Lachy Hughes

unread,
Oct 28, 2011, 11:07:47 PM10/28/11
to ns-3-users
I could not fix either of these errors, but did manage to download and
successfully build the ns-3.12.1.tar.bz2

Thanks for help though

On Oct 29, 9:07 am, Vedran Miletić <riva...@gmail.com> wrote:
> 2011/10/29 Lachy Hughes <lachlanhughes2...@gmail.com>:

Luca Costantino

unread,
Nov 14, 2011, 6:43:03 AM11/14/11
to ns-3-...@googlegroups.com
2011/10/29 Vedran Miletić <riv...@gmail.com>:

> This seems to me like a build issue with Python bindings that I'm
> getting as well.

me too

--
Chiave pubblica http://luca.costantino.googlepages.com/luca.costantino.asc

Prima di tutto vennero a prendere gli zingari e fui contento, perché
rubacchiavano.
Poi vennero a prendere gli ebrei e stetti zitto, perché mi stavano antipatici.
Poi vennero a prendere gli omosessuali, e fui sollevato, perché mi
erano fastidiosi.
Poi vennero a prendere i comunisti, e io non dissi niente, perché non
ero comunista.
Un giorno vennero a prendere me, e non c’era rimasto nessuno a protestare.
(Martin Niemöller)

Vedran Miletić

unread,
Nov 14, 2011, 6:51:15 AM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Luca Costantino <luca.co...@gmail.com>:

> 2011/10/29 Vedran Miletić <riv...@gmail.com>:
>
>> This seems to me like a build issue with Python bindings that I'm
>> getting as well.
>
> me too
>

If it's today's ns-3-dev, that's a separate issue.

Vedran

Luca Costantino

unread,
Nov 14, 2011, 6:59:25 AM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Vedran Miletić <riv...@gmail.com>:

> If it's today's ns-3-dev, that's a separate issue.

i'm having this problem for a week or so.
i updated my repository to fetch the latest nicola baldo's updates
hoping that they would have solved the issue, but they didn't

luca

Vedran Miletić

unread,
Nov 14, 2011, 7:05:25 AM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Luca Costantino <luca.co...@gmail.com>:

> 2011/11/14 Vedran Miletić <riv...@gmail.com>:
>> If it's today's ns-3-dev, that's a separate issue.
>
> i'm having this problem for a week or so.
> i updated my repository to fetch the latest nicola baldo's updates
> hoping that they would have solved the issue, but they didn't
>
> luca

Post a build log, maybe we can help.

Vedran

Luca Costantino

unread,
Nov 14, 2011, 7:08:18 AM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Vedran Miletić <riv...@gmail.com>:

> Post a build log, maybe we can help.

[ 818/1348] cxx: build/src/spectrum/bindings/ns3module.cc ->
build/src/spectrum/bindings/ns3module.cc.7.o


In file included from src/spectrum/bindings/ns3module.cc:1:0:

src/spectrum/bindings/ns3module.h:2172:5: error: ‘SpectrumType’ in


namespace ‘ns3’ does not name a type

src/spectrum/bindings/ns3module.h:2183:5: error: ‘SpectrumTypeFactory’


in namespace ‘ns3’ does not name a type

src/spectrum/bindings/ns3module.cc: In function ‘int
_wrap_PyNs3SpectrumType__tp_init(PyNs3SpectrumType*, PyObject*,
PyObject*)’:
src/spectrum/bindings/ns3module.cc:3341:11: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3341:21: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:3341:21: error: expected ‘;’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumType_GetName(PyNs3SpectrumType*)’:
src/spectrum/bindings/ns3module.cc:3353:20: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumType_GetUid(PyNs3SpectrumType*)’:
src/spectrum/bindings/ns3module.cc:3365:20: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumType__copy__(PyNs3SpectrumType*)’:
src/spectrum/bindings/ns3module.cc:3377:14: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3377:24: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:3377:24: error: expected ‘;’
src/spectrum/bindings/ns3module.cc:3379:58: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘void
_wrap_PyNs3SpectrumType__tp_dealloc(PyNs3SpectrumType*)’:
src/spectrum/bindings/ns3module.cc:3394:82: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3399:9: error: ‘SpectrumType’ is
not a member of ‘ns3’
src/spectrum/bindings/ns3module.cc:3399:28: error: ‘tmp’ was not
declared in this scope
src/spectrum/bindings/ns3module.cc:3399:40: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3400:15: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3402:20: error: type ‘<type error>’
argument given to ‘delete’, expected pointer
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumType__tp_str(PyNs3SpectrumType*)’:
src/spectrum/bindings/ns3module.cc:3413:19: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumType__tp_richcompare(PyNs3SpectrumType*,
PyNs3SpectrumType*, int)’:
src/spectrum/bindings/ns3module.cc:3435:20: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3435:35: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3443:20: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3443:35: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘int
_wrap_PyNs3SpectrumTypeFactory__tp_init__0(PyNs3SpectrumTypeFactory*,
PyObject*, PyObject*, PyObject**)’:
src/spectrum/bindings/ns3module.cc:3531:11: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3531:21: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:3531:21: error: expected ‘;’
src/spectrum/bindings/ns3module.cc: In function ‘int
_wrap_PyNs3SpectrumTypeFactory__tp_init__1(PyNs3SpectrumTypeFactory*,
PyObject*, PyObject*, PyObject**)’:
src/spectrum/bindings/ns3module.cc:3551:11: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3551:21: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:3551:21: error: expected ‘;’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumTypeFactory_Create(PyNs3SpectrumTypeFactory*,
PyObject*, PyObject*)’:
src/spectrum/bindings/ns3module.cc:3593:5: error: ‘SpectrumType’ is
not a member of ‘ns3’
src/spectrum/bindings/ns3module.cc:3593:23: error: expected ‘;’ before ‘retval’
src/spectrum/bindings/ns3module.cc:3596:22: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3596:32: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:3596:32: error: expected ‘;’
src/spectrum/bindings/ns3module.cc:3597:66: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumTypeFactory_GetNameByUid(PyNs3SpectrumTypeFactory*,
PyObject*, PyObject*)’:
src/spectrum/bindings/ns3module.cc:3614:19: error:
‘ns3::SpectrumTypeFactory’ has not been declared
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3SpectrumTypeFactory__copy__(PyNs3SpectrumTypeFactory*)’:
src/spectrum/bindings/ns3module.cc:3626:14: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3626:24: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:3626:24: error: expected ‘;’
src/spectrum/bindings/ns3module.cc:3628:65: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘void
_wrap_PyNs3SpectrumTypeFactory__tp_dealloc(PyNs3SpectrumTypeFactory*)’:
src/spectrum/bindings/ns3module.cc:3643:89: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3648:9: error:
‘SpectrumTypeFactory’ is not a member of ‘ns3’
src/spectrum/bindings/ns3module.cc:3648:35: error: ‘tmp’ was not
declared in this scope
src/spectrum/bindings/ns3module.cc:3648:47: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3649:15: error: ‘struct
PyNs3SpectrumTypeFactory’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:3651:20: error: type ‘<type error>’
argument given to ‘delete’, expected pointer
[ 819/1348] cxx: src/stats/model/omnet-data-output.cc ->
build/src/stats/model/omnet-data-output.cc.1.o
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3WaveformGenerator_GetSpectrumType(PyNs3WaveformGenerator*)’:
src/spectrum/bindings/ns3module.cc:10189:5: error: ‘SpectrumType’ is
not a member of ‘ns3’
src/spectrum/bindings/ns3module.cc:10189:23: error: expected ‘;’ before ‘retval’
src/spectrum/bindings/ns3module.cc:10192:22: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:10192:32: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:10192:32: error: expected ‘;’
src/spectrum/bindings/ns3module.cc:10193:66: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc: In function ‘PyObject*
_wrap_PyNs3HalfDuplexIdealPhy_GetSpectrumType(PyNs3HalfDuplexIdealPhy*)’:
src/spectrum/bindings/ns3module.cc:11948:5: error: ‘SpectrumType’ is
not a member of ‘ns3’
src/spectrum/bindings/ns3module.cc:11948:23: error: expected ‘;’ before ‘retval’
src/spectrum/bindings/ns3module.cc:11951:22: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
src/spectrum/bindings/ns3module.cc:11951:32: error: expected type-specifier
src/spectrum/bindings/ns3module.cc:11951:32: error: expected ‘;’
src/spectrum/bindings/ns3module.cc:11952:66: error: ‘struct
PyNs3SpectrumType’ has no member named ‘obj’
[ 820/1348] cxx: src/stats/model/data-collector.cc ->
build/src/stats/model/data-collector.cc.1.o
Waf: Leaving directory
`/home/hfish/repos/ns-3-allinone/ns-3-dev/build'


Build failed
-> task failed (exit status 1):

{task 150880492: cxx ns3module.cc -> ns3module.cc.7.o}


['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror',
'-Wno-error=deprecated-declarations', '-fstrict-aliasing',

'-Wstrict-aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing',
'-fwrapv', '-fno-strict-aliasing', '-fvisibility=hidden', '-pthread',
'-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv',
'-fno-strict-aliasing', '-Ibuild', '-I.',
'-Ibuild/src/spectrum/bindings', '-Isrc/spectrum/bindings',
'-I/usr/include/python2.7', '-I/usr/include/gtk-2.0',
'-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0',
'-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0',
'-I/usr/include/pixman-1', '-I/usr/include/freetype2',
'-I/usr/include/libpng12', '-I/usr/include/cairo',
'-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/libxml2',


'-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DSQLITE3=1',
'-DHAVE_IF_TUN_H=1',
'-DPYTHONDIR="/usr/local/lib/python2.7/dist-packages"',

'-DPYTHONARCHDIR="/usr/local/lib/python2.7/dist-packages"',
'-DHAVE_PYTHON_H=1', '-DENABLE_GSL', '-DNS_DEPRECATED=',


'-DNS3_DEPRECATED_H', '-DNDEBUG', '-DNDEBUG',

'src/spectrum/bindings/ns3module.cc', '-c', '-o',
'src/spectrum/bindings/ns3module.cc.7.o']

using gcc-4.5 e g++-4.5
./waf configure with no options

Gustavo Carneiro

unread,
Nov 14, 2011, 7:10:44 AM11/14/11
to ns-3-...@googlegroups.com
It seems that someone needs to do an API rescan on the spectrum module.  Someone has to do it every time an API changes.  I'll take care of it.

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.




--
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc

Luca Costantino

unread,
Nov 14, 2011, 7:12:19 AM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:

> It seems that someone needs to do an API rescan on the spectrum module.
>  Someone has to do it every time an API changes.  I'll take care of it.

i'll wait for a feedback, thanks!

Gustavo Carneiro

unread,
Nov 14, 2011, 7:52:08 AM11/14/11
to ns-3-...@googlegroups.com


2011/11/14 Luca Costantino <luca.co...@gmail.com>

2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:
> It seems that someone needs to do an API rescan on the spectrum module.
>  Someone has to do it every time an API changes.  I'll take care of it.

i'll wait for a feedback, thanks!



I seem to have hit a bug with gccxml and gcc 4.6 system headers.  This will take some time to fix.  Apologies.
 

--
Chiave pubblica http://luca.costantino.googlepages.com/luca.costantino.asc

Prima di tutto vennero a prendere gli zingari e fui contento, perché
rubacchiavano.
Poi vennero a prendere gli ebrei e stetti zitto, perché mi stavano antipatici.
Poi vennero a prendere gli omosessuali, e fui sollevato, perché mi
erano fastidiosi.
Poi vennero a prendere i comunisti, e io non dissi niente, perché non
ero comunista.
Un giorno vennero a prendere me, e non c’era rimasto nessuno a protestare.
(Martin Niemöller)

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

Luca Costantino

unread,
Nov 14, 2011, 8:06:16 AM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:

> I seem to have hit a bug with gccxml and gcc 4.6 system headers.  This will
> take some time to fix.  Apologies.

no need to apologize, you're doing me (us) a favour :)

just for the records, I have the same error with gcc-4.6, too

Gustavo Carneiro

unread,
Nov 14, 2011, 9:26:33 AM11/14/11
to ns-3-...@googlegroups.com, ns-dev...@isi.edu
On Mon, Nov 14, 2011 at 13:06, Luca Costantino <luca.co...@gmail.com> wrote:
2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:
> I seem to have hit a bug with gccxml and gcc 4.6 system headers.  This will
> take some time to fix.  Apologies.

no need to apologize, you're doing me (us) a favour :)

just for the records, I have the same error with gcc-4.6, too


I still cannot solve this, we are in trouble :-(

The problem is not gcc-4.6 itself, it's system headers changes in latest systems that gcc-4.6 can handle but the older gccxml cannot.  I even updated gccxml to latest CVS trunk, to no avail.  The gccxml project is not very actively maintained, so it could take a while for it to catch up, if at all.

The solution for now will have to be to install an older linux system in a virtual machine and run waf --apiscan from there.  Unless someone else has a better idea, of course...
 

--
Chiave pubblica http://luca.costantino.googlepages.com/luca.costantino.asc

Prima di tutto vennero a prendere gli zingari e fui contento, perché
rubacchiavano.
Poi vennero a prendere gli ebrei e stetti zitto, perché mi stavano antipatici.
Poi vennero a prendere gli omosessuali, e fui sollevato, perché mi
erano fastidiosi.
Poi vennero a prendere i comunisti, e io non dissi niente, perché non
ero comunista.
Un giorno vennero a prendere me, e non c’era rimasto nessuno a protestare.
(Martin Niemöller)

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

Gustavo Carneiro

unread,
Nov 14, 2011, 2:49:55 PM11/14/11
to ns-3-...@googlegroups.com, ns-dev...@isi.edu
On Mon, Nov 14, 2011 at 14:26, Gustavo Carneiro <gjcar...@gmail.com> wrote:


On Mon, Nov 14, 2011 at 13:06, Luca Costantino <luca.co...@gmail.com> wrote:
2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:
> I seem to have hit a bug with gccxml and gcc 4.6 system headers.  This will
> take some time to fix.  Apologies.

no need to apologize, you're doing me (us) a favour :)

just for the records, I have the same error with gcc-4.6, too


I still cannot solve this, we are in trouble :-(

The problem is not gcc-4.6 itself, it's system headers changes in latest systems that gcc-4.6 can handle but the older gccxml cannot.  I even updated gccxml to latest CVS trunk, to no avail.  The gccxml project is not very actively maintained, so it could take a while for it to catch up, if at all.

The solution for now will have to be to install an older linux system in a virtual machine and run waf --apiscan from there.  Unless someone else has a better idea, of course...

Scanning the bindings for the spectrum, lte, wifi, and wimax modules worked on an older linux VM. I pushed the result.  The problem is that virtualbox with my CPU does not allow running 64-bit linux, therefore I was only able to scan the 32-bit API.  On 64-bit systems, ns-3-dev is still not going to compile, I'm afraid.
 
 

--
Chiave pubblica http://luca.costantino.googlepages.com/luca.costantino.asc

Prima di tutto vennero a prendere gli zingari e fui contento, perché
rubacchiavano.
Poi vennero a prendere gli ebrei e stetti zitto, perché mi stavano antipatici.
Poi vennero a prendere gli omosessuali, e fui sollevato, perché mi
erano fastidiosi.
Poi vennero a prendere i comunisti, e io non dissi niente, perché non
ero comunista.
Un giorno vennero a prendere me, e non c’era rimasto nessuno a protestare.
(Martin Niemöller)

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.




--
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert

Luca Costantino

unread,
Nov 14, 2011, 2:56:27 PM11/14/11
to ns-3-...@googlegroups.com
2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:

> Scanning the bindings for the spectrum, lte, wifi, and wimax modules worked
> on an older linux VM. I pushed the result.  The problem is that virtualbox
> with my CPU does not allow running 64-bit linux, therefore I was only able
> to scan the 32-bit API.  On 64-bit systems, ns-3-dev is still not going to
> compile, I'm afraid.

tomorrow i'll have a look, but unfortunately i have a 32-bit only system too

Luca Costantino

unread,
Nov 15, 2011, 2:19:53 AM11/15/11
to ns-3-...@googlegroups.com
2011/11/14 Gustavo Carneiro <gjcar...@gmail.com>:
> Scanning the bindings for the spectrum, lte, wifi, and wimax modules worked
> on an older linux VM. I pushed the result.

hi. are you sure you pushed latest changes? hg tip still returns
nicola baldo's yesterday updates....
luca

Luca Costantino

unread,
Nov 15, 2011, 2:57:36 AM11/15/11
to ns-3-...@googlegroups.com
2011/11/15 Luca Costantino <luca.co...@gmail.com>:

> hi. are you sure you pushed latest changes? hg tip still returns
> nicola baldo's yesterday updates....

note to self: think before typing!
building went nice and clean wit gcc-4.5 and g++-4.5 on my 32 bit machine

thanks

Mitch Watrous

unread,
Nov 15, 2011, 11:19:10 AM11/15/11
to ns-3-users
Yesterday, I committed new bindings to ns-3-dev that were generated on
ns-regression, which is 64 bit.

Mitch

On Nov 14, 11:57 pm, Luca Costantino <luca.costant...@gmail.com>
wrote:
> 2011/11/15 Luca Costantino <luca.costant...@gmail.com>:
>
> > hi. are you sure you pushed latest changes? hg tip still returns
> > nicola baldo's yesterday updates....
>
> note to self: think before typing!buildingwent nice and clean wit gcc-4.5 and g++-4.5 on my 32 bit machine
>
> thanks
>
> --
> Chiave pubblicahttp://luca.costantino.googlepages.com/luca.costantino.asc
Reply all
Reply to author
Forward
0 new messages