[ns] ns-allinone-2.1b6: installation problem
Sotiris Tsimbonis
stsimb@forthnet.gr
Thu, 6 Jul 2000 16:58:51 +0300 (EEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---607984997-425982760-962891590=:30014
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.21.0007061653571.30014@nana.forthnet.gr>
On Wed, 5 Jul 2000, Ishan Mandrekar wrote:
> Download the daily snapshot of NS and replace the
> files ~/ns-allinone-2.1b6/ns-2.1b6/indep-utils/webtrace-conv/ucb/utils.*
> from the ns-allinone package with the ones from the snapshot
> and then do an install. This should take care of the socklen_t * error.
A few days ago Julien Franiatte <Julien.Franiatte@wanadoo.fr> posted a
two-line fix for this in this list. It worked for me as well, so I made
this small diff that fixes this problem in ns-2.1b6 ..
to apply it, change to directory to
ns-allinone-2.1b6/ns-2.1b6/indep-utils/webtrace-conv/ucb/ and type..
patch < utils.cc.diff
> > utils.o utils.cc
> > utils.cc: In function `int saccept(int)':
> > utils.cc:358: passing `int *' as argument 3 of `accept(int, sockaddr *,
> > socklen_t *)' changes signedness
> > utils.cc: In function `int sportnum(int)':
> > utils.cc:469: passing `int *' as argument 3 of `getsockname(int,
> > sockaddr *, socklen_t *)' changes signedness
> > make[1]: *** [utils.o] Error 1
_ _ _|_ o._ o _
_)(_) |_ || |_>
---607984997-425982760-962891590=:30014
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="utils.cc.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0007061653100.30014@nana.forthnet.gr>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="utils.cc.diff"
LS0tIHV0aWxzLmNjCVR1ZSBOb3YgMzAgMDQ6MjU6NTYgMTk5OQ0KKysrIHV0
aWxzLmNjLmZpeGVkCVRodSBKdWwgIDYgMTQ6NDA6MDAgMjAwMA0KQEAgLTM1
NSw3ICszNTUsNyBAQA0KICAgICBpbnQgICAgIG5zOw0KIA0KICAgICBmcm9t
bGVuID0gc2l6ZW9mIChmcm9tKTsNCi0gICAgaWYgKChucyA9IGFjY2VwdCAo
cywgKHN0cnVjdCBzb2NrYWRkciopJmZyb20sICZmcm9tbGVuKSkgPCAwKQ0K
KyAgICBpZiAoKG5zID0gYWNjZXB0IChzLCAoc3RydWN0IHNvY2thZGRyKikm
ZnJvbSwgKHNvY2tsZW5fdCAqKSgmZnJvbWxlbikpKSA8IDApDQogICAgICAg
ICByZXR1cm4gLTE7DQogICAgIHJldHVybiBuczsNCiB9DQpAQCAtNDY2LDcg
KzQ2Niw3IEBADQogICAgIGludCAgICAgbGVuOw0KIA0KICAgICBsZW4gPSBz
aXplb2YgKHNvY2tuYW1lKTsNCi0gICAgaWYgKGdldHNvY2tuYW1lIChzLCAm
c29ja25hbWUsICZsZW4pIDwgMCkNCisgICAgaWYgKGdldHNvY2tuYW1lIChz
LCAmc29ja25hbWUsKHNvY2tsZW5fdCAqKSgmbGVuKSkgPCAwKQ0KICAgICAg
ICAgcmV0dXJuIC0xOw0KIA0KICAgICBpZiAoc29ja25hbWUuc2FfZmFtaWx5
ICE9IEFGX0lORVQpDQo=
---607984997-425982760-962891590=:30014--