[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HELP! NSE Install under Linux (RH6.0)



Hi.  I am try to make the NS emulator under RH6.0.  Initially, I got

** BEGIN COMPILER STUFF
# make nse
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/net-ip.o emulate/net-ip.cc
emulate/net-ip.cc:188: definition of implicitly-declared
`UDPIPNetwork::UDPIPNet
work()'
emulate/net-ip.cc:188: redefinition of `UDPIPNetwork::UDPIPNetwork()'
emulate/net-ip.cc:158: `UDPIPNetwork::UDPIPNetwork()' previously defined
here
emulate/net-ip.cc: In method `int UDPIPNetwork::recv(u_char *, int, struct
socka
ddr &, double &)':
emulate/net-ip.cc:282: warning: passing `int *' as argument 6 of
`recvfrom(int,
void *, size_t, int, sockaddr *, socklen_t *)' changes signedness
emulate/net-ip.cc: In method `int IPNetwork::recv(u_char *, int, struct
sockaddr
 &, double &)':
emulate/net-ip.cc:554: warning: passing `int *' as argument 6 of
`recvfrom(int,
void *, size_t, int, sockaddr *, socklen_t *)' changes signedness
make: *** [emulate/net-ip.o] Error 1
** END COMPILER STUFF

I added

public:
  UDPIPNetwork();

to the end of the UDPIPNetwork class, and it seemed happier.  Now I get the
errors below.  Anybody have NSE working for RH6.0?  Anybody have any
suggestions for making it work?  Anybody have an feedback on compiler errors
below?

Thanks,
Jeff

** BEGIN COMPILER STUFF:
# make nse
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/net-ip.o emulate/net-ip.cc
emulate/net-ip.cc: In method `int UDPIPNetwork::recv(u_char *, int, struct
socka
ddr &, double &)':
emulate/net-ip.cc:284: warning: passing `int *' as argument 6 of
`recvfrom(int,
void *, size_t, int, sockaddr *, socklen_t *)' changes signedness
emulate/net-ip.cc: In method `int IPNetwork::recv(u_char *, int, struct
sockaddr
 &, double &)':
emulate/net-ip.cc:556: warning: passing `int *' as argument 6 of
`recvfrom(int,
void *, size_t, int, sockaddr *, socklen_t *)' changes signedness
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/net.o emulate/net.cc
emulate/net.cc:68: warning: `int sendmsg(int, struct msghdr *, int)' defined
but
 not used
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/tap.o emulate/tap.cc
In file included from emulate/tap.cc:41:
packet.h:271: warning: `AF_INET' redefined
/usr/include/bits/socket.h:92: warning: this is the location of the previous
def
inition
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/ether.o emulate/ether.cc
emulate/ether.cc: In function `static void Ethernet::ether_print(const
u_char *)
':
emulate/ether.cc:61: warning: implicit declaration of function `int
ntohs(...)'
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/net-pcap.o
emulate/net-pcap.cc
emulate/net-pcap.cc: In method `int PcapNetwork::recv(u_char *, int, struct
sock
addr &, double &)':
emulate/net-pcap.cc:329: warning: converting `void (*)(u_char *, pcap_pkthdr
*,
u_char *)' to `void (*)(u_char *, const pcap_pkthdr *, const u_char *)' is a
con
travariance violation
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/internet.o
emulate/internet.cc
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/ping_responder.o
emulate/ping_r
esponder.cc
In file included from agent.h:41,
                 from emulate/ping_responder.cc:48:
packet.h:271: warning: `AF_INET' redefined
/usr/include/bits/socket.h:92: warning: this is the location of the previous
def
inition
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBT
CLCL
1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAV
E_TK
_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE
_TCL
_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHA
VE_L
IBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DH
AVE_
SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a
4 -I
../tkbox/include -I../tclbox/include  -o emulate/arp.o emulate/arp.cc
In file included from /usr/include/sys/socket.h:34,
                 from emulate/arp.cc:44:
/usr/include/bits/socket.h:92: warning: `AF_INET' redefined
packet.h:271: warning: this is the location of the previous definition
In file included from emulate/arp.cc:59:
emulate/ether.h:4: warning: `ETHER_ADDR_LEN' redefined
/usr/include/net/ethernet.h:52: warning: this is the location of the
previous de
finition
emulate/ether.h:7: warning: `ETHER_HDR_LEN' redefined
/usr/include/net/ethernet.h:55: warning: this is the location of the
previous de
finition
emulate/ether.h:8: warning: `ETHER_MIN_LEN' redefined
/usr/include/net/ethernet.h:56: warning: this is the location of the
previous de
finition
emulate/ether.h:9: warning: `ETHER_MAX_LEN' redefined
/usr/include/net/ethernet.h:57: warning: this is the location of the
previous de
finition
In file included from emulate/arp.cc:59:
emulate/ether.h:16: redefinition of `struct ether_header'
/usr/include/net/ethernet.h:44: previous definition here
emulate/ether.h:25: redefinition of `struct ether_addr'
/usr/include/net/ethernet.h:36: previous definition here
emulate/arp.cc: In method `ArpAgent::ArpAgent()':
emulate/arp.cc:115: no matching function for call to
`ether_header::ether_header
 ()'
emulate/ether.h:20: candidates are: ether_header::ether_header(const
ether_heade
r &)
emulate/arp.cc:115: no matching function for call to `ether_addr::ether_addr
()'
emulate/ether.h:27: candidates are: ether_addr::ether_addr(const ether_addr
&)
emulate/arp.cc:141: no matching function for call to
`ArpAgent::acache_entry::ac
ache_entry ()'
emulate/arp.cc:76: candidates are:
ArpAgent::acache_entry::acache_entry(const Ar
pAgent::acache_entry &)
emulate/arp.cc: At top level:
emulate/arp.cc:147: definition of implicitly-declared
`ArpAgent::~ArpAgent()'
emulate/arp.cc: In method `void ArpAgent::doreply(struct ether_arp *)':
emulate/arp.cc:311: no matching function for call to `ether_addr::ether_addr
()'
emulate/ether.h:27: candidates are: ether_addr::ether_addr(const ether_addr
&)
emulate/arp.cc: In method `void ArpAgent::doreq(struct ether_arp *)':
emulate/arp.cc:337: no matching function for call to `ether_addr::ether_addr
()'
emulate/ether.h:27: candidates are: ether_addr::ether_addr(const ether_addr
&)
make: *** [emulate/arp.o] Error 1
** END COMPILER STUFF


Michael J. Donahoo
Baylor University, Dept. of Computer Science
Internet: [email protected]   Office: CSI 220M
Work: (254) 710-6836  Home:  (254) 848-2428
Fax:  (254) 710-3889