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

Re: [ns] How to Compile ns-allinone-2.1b6 in SUN OS 5.7




How about explicitly casting like
this,

> my-endian.cc:42: conversion from
`short unsigned int' to `enum
method_t'
  swap2(...) -> (method_t)swap2(...)

> my-endian.cc:45: conversion from
`u_4bytes' to `enum method_t'
  rotate4(...) ->
(method_t)rorate4(...)

> my-endian.cc:48: conversion from
`short unsigned int' to `enum
protocol_t'
 swap2(...) -> (protocol_t)swap2(...)

> my-endian.cc:51: conversion from
`u_4bytes' to `enum protocol_t'
 rotate4(...) ->
(protocol_t)rorate4(...)

---
Tetsuo Sano ([email protected])
NTI

----- Original Message -----
From: "Xiaojun Cao"
<[email protected]>
To: <[email protected]>
Sent: Wednesday, March 15, 2000 4:05
PM
Subject: [ns] How to Compile
ns-allinone-2.1b6 in SUN OS 5.7


> /i
clud
 -I/
home
/xca
o2/N
etSi
/ns-allinone-2.1b6/tclbox/include -o
> formsquid.o formsquid.cc
> c+
 -
 -O
 -I
 -I/
home
/xca
o2/N
etSim/ns-allinone-2.1b6/tclcl-1.0b9
> -I
/hom
e/xc
ao2/
NetSim/ns-allinone-2.1b6/otcl-1.0a5
> -I
/hom
e/xc
ao2/
NetSim/ns-allinone-2.1b6/tkbox/include
> -I
/hom
e/xc
ao2/
NetS
im/ns-allinone-2.1b6/tclbox/include -o
formtxt.o
> Hi,
>   I met a compile problem under SUN
OS 5.7
>   Can somebody help me out?
Following is the compile
>   message.
> Thanx!!
>
> formtxt.cc
> c+
 -
 -O
 -I
 -I/
home
/xca
o2/N
etSim/ns-allinone-2.1b6/tclcl-1.0b9
> -I
/hom
e/xc
ao2/
NetSim/ns-allinone-2.1b6/otcl-1.0a5
> -I
/hom
e/xc
ao2/
NetSim/ns-allinone-2.1b6/tkbox/include
> -I
/hom
e/xc
ao2/
NetS
im/ns-allinone-2.1b6/tclbox/include -o
my-endian.o
> my-endian.cc
> my-endian.cc: In function `void
ToOtherEndian(TEntry *)':
> my-endian.cc:42: conversion from
`short unsigned int' to `enum
method_t'
> my-endian.cc:45: conversion from
`u_4bytes' to `enum method_t'
> my-endian.cc:48: conversion from
`short unsigned int' to `enum
protocol_t'
> my-endian.cc:51: conversion from
`u_4bytes' to `enum protocol_t'
> *** Error code 1
> make: Fatal error: Command failed
for target `my-endian.o'
> Current working directory
> /h
ome/
xcao
2/Ne
tSim
/ns-
alli
non
e-2.
1b6/
ns-2.1b6/indep-utils/webtrace-conv/dec
> *** Error code 1
> make: Fatal error: Command failed
for target `all-recursive'
> Ns make failed!
>
>
>
>