在ubuntu14.04中无法解决ns-2.35上的OLSR错误

时间:2018-03-21 20:54:38

标签: ns2

成功应用/home/uday/ns-allinone-2.35/ns-2.35/umolsr-ns235_v1.0-2014.patch后

*./install
In file included from trace/cmu-trace.cc:57:0:
./dymoum/ns/dymo_um.h:65:0: warning: "ntohl" redefined [enabled by default]
 #define ntohl(x) x
 ^
In file included from /usr/include/arpa/inet.h:22:0,
                 from ./config.h:151,
                 from ./common/packet.h:43,
                 from trace/cmu-trace.cc:40:
/usr/include/netinet/in.h:400:0: note: this is the location of the previous definition
 #   define ntohl(x) __bswap_32 (x)
 ^
In file included from trace/cmu-trace.cc:57:0:
./dymoum/ns/dymo_um.h:66:0: warning: "htonl" redefined [enabled by default]
 #define htonl(x) x
 ^
In file included from /usr/include/arpa/inet.h:22:0,
                 from ./config.h:151,
                 from ./common/packet.h:43,
                 from trace/cmu-trace.cc:40:
/usr/include/netinet/in.h:402:0: note: this is the location of the previous definition
 #   define htonl(x) __bswap_32 (x)
 ^
In file included from trace/cmu-trace.cc:57:0:
./dymoum/ns/dymo_um.h:67:0: warning: "htons" redefined [enabled by default]
 #define htons(x) x
 ^
In file included from /usr/include/arpa/inet.h:22:0,
                 from ./config.h:151,
                 from ./common/packet.h:43,
                 from trace/cmu-trace.cc:40:
/usr/include/netinet/in.h:403:0: note: this is the location of the previous definition
 #   define htons(x) __bswap_16 (x)
 ^
In file included from trace/cmu-trace.cc:57:0:
./dymoum/ns/dymo_um.h:68:0: warning: "ntohs" redefined [enabled by default]
 #define ntohs(x) x
 ^
In file included from /usr/include/arpa/inet.h:22:0,
                 from ./config.h:151,
                 from ./common/packet.h:43,
                 from trace/cmu-trace.cc:40:
/usr/include/netinet/in.h:401:0: note: this is the location of the previous definition
 #   define ntohs(x) __bswap_16 (x)
 ^
trace/cmu-trace.cc: In member function ‘void CMUTrace::format_olsr(Packet*, int)’:
trace/cmu-trace.cc:1462:2: error: ‘OLSR_pkt’ was not declared in this scope
  OLSR_pkt* op = PKT_OLSR(p);
  ^
trace/cmu-trace.cc:1462:12: error: ‘op’ was not declared in this scope
  OLSR_pkt* op = PKT_OLSR(p);
            ^
trace/cmu-trace.cc:1462:27: error: ‘PKT_OLSR’ was not declared in this scope
  OLSR_pkt* op = PKT_OLSR(p);
                           ^
trace/cmu-trace.cc:1473:33: error: ‘OLSR_HELLO_MSG’ was not declared in this scope
    if (op->msg(i).msg_type() == OLSR_HELLO_MSG)
                                 ^
trace/cmu-trace.cc:1475:38: error: ‘OLSR_TC_MSG’ was not declared in this scope
    else if (op->msg(i).msg_type() == OLSR_TC_MSG)
                                      ^
trace/cmu-trace.cc:1495:33: error: ‘OLSR_HELLO_MSG’ was not declared in this scope
    if (op->msg(i).msg_type() == OLSR_HELLO_MSG)
                                 ^
trace/cmu-trace.cc:1497:38: error: ‘OLSR_TC_MSG’ was not declared in this scope
    else if (op->msg(i).msg_type() == OLSR_TC_MSG)
                                      ^
trace/cmu-trace.cc:1517:33: error: ‘OLSR_HELLO_MSG’ was not declared in this scope
    if (op->msg(i).msg_type() == OLSR_HELLO_MSG)
                                 ^
trace/cmu-trace.cc:1519:38: error: ‘OLSR_TC_MSG’ was not declared in this scope
    else if (op->msg(i).msg_type() == OLSR_TC_MSG)
                                      ^
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!*

我无法解决这个错误。我尽了最大努力,但我失败了......请有人看看代码并帮我解决错误。错误代码如上:

是否存在DYMOUM协议时发生错误? 如果这是如何解决这个错误的问题?

0 个答案:

没有答案