In file included from ../src/internet/model/ipv6-interface.cc:33:In file included from ../src/internet/model/icmpv6-l4-protocol.h:33:In file included from ../src/internet/model/ndisc-cache.h:32:In file included from ./ns3/timer.h:302:In file included from ./ns3/timer-impl.h:24:In file included from ./ns3/simulator.h:26:./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef] typedef void (*F)(U1, U2, U3); ^1 error generated.
Waf: Leaving directory `/Users/GGarciaBas/Documents/GitHub/nsnam_ns3/build'Build failed -> task in 'ns3-internet' failed with exit status 1 (run with -v to display more information)
template <typename U1, typename U2, typename U3, typename T1, typename T2, typename T3>EventImpl * MakeEvent (void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3){ // three arg version class EventFunctionImpl3 : public EventImpl {public: typedef void (*F)(U1, U2, U3); // 665 line
EventFunctionImpl3 (F function, T1 a1, T2 a2, T3 a3) : m_function (function), m_a1 (a1), m_a2 (a2), m_a3 (a3) { }protected: virtual ~EventFunctionImpl3 () { }private: virtual void Notify (void) { (*m_function)(m_a1, m_a2, m_a3); } F m_function; typename TypeTraits<T1>::ReferencedType m_a1; typename TypeTraits<T2>::ReferencedType m_a2; typename TypeTraits<T3>::ReferencedType m_a3; } *ev = new EventFunctionImpl3 (f, a1, a2, a3); return ev;}
Hello,
I got the following problem after patching to the ns3.29 version:
In file included from ../src/internet/model/ipv6-interface.cc:33:In file included from ../src/internet/model/icmpv6-l4-protocol.h:33:In file included from ../src/internet/model/ndisc-cache.h:32:In file included from ./ns3/timer.h:302:In file included from ./ns3/timer-impl.h:24:In file included from ./ns3/simulator.h:26:./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]typedef void (*F)(U1, U2, U3);^1 error generated.
Waf: Leaving directory `/Users/GGarciaBas/Documents/GitHub/nsnam_ns3/build'Build failed-> task in 'ns3-internet' failed with exit status 1 (run with -v to display more information)
I have used the same version of ns3.27 in my MacOs 10.13.6 and Linux, after I patch to the ns3.28, ns3.28.1 and finally to ns3.29, I got that error just in the MacOs.
--
Posting to this group should follow these guidelines 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.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
[1232/1820] Compiling src/spectrum/model/spectrum-model-ism2400MHz-res1MHz.cc
In file included from ../src/internet/helper/ipv6-routing-helper.cc:23:
In file included from ./ns3/simulator.h:26:
./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3);
^
./ns3/make-event.h:699:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3, U4);
^
./ns3/make-event.h:633:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2);
^
./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3);
^
4 errors generated.
In file included from ../src/internet/helper/ipv4-routing-helper.cc:23:
In file included from ./ns3/simulator.h:26:
./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3);
^
./ns3/make-event.h:699:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3, U4);
^
./ns3/make-event.h:633:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2);
^
./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3);
^
4 errors generated.
In file included from ../src/internet/model/ipv6-interface.cc:33:
In file included from ../src/internet/model/icmpv6-l4-protocol.h:33:
In file included from ../src/internet/model/ndisc-cache.h:32:
In file included from ./ns3/timer.h:302:
In file included from ./ns3/timer-impl.h:24:
In file included from ./ns3/simulator.h:26:
./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
typedef void (*F)(U1, U2, U3);
^
1 error generated.
Waf: Leaving directory `/Users/manalisharma/Desktop/NS3 Source Code/ns-allinone-3.29/ns-3.29/build'
Build failed
-> task in 'ns3-internet' failed with exit status 1 (run with -v to display more information)
-> task in 'ns3-internet' failed with exit status 1 (run with -v to display more information)
-> task in 'ns3-internet' failed with exit status 1 (run with -v to display more information)
Traceback (most recent call last):
File "./build.py", line 176, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 167, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "./build.py", line 87, in build_ns3
run_command([sys.executable, "waf", "build"] + build_options)
File "/Users/manalisharma/Desktop/NS3 Source Code/ns-allinone-3.29/util.py", line 25, 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
./waf configure --disable-werror
This did not work for me. Is there any other solution to this.Here is my error log:[1232/1820] Compiling src/spectrum/model/spectrum-model-ism2400MHz-res1MHz.cc
In file included from ../src/internet/helper/ipv6-routing-helper.cc:23:
In file included from ./ns3/simulator.h:26:
I just tested that this still works for me still using the
ns-3.29 release on a Mac. If I do not include '--disable-werror'
in the configure step, it fails with the above, but if I do
include it, it succeeds.
If you need more visibility into how Waf is building, try building with the -vvv flag:
./waf build -vvv