--
From: Andrew Gallatin <gallatin_at_isds.Duke.EDU>
Its a 64 vs. 32 bit problem. Wietse Venema told me that every
occurance of xdr_long needs to be changed to to be xdr_int so that
its 32-bits. I've included a diff below. After doing this, I've had
no problems.
Drew
##############################################################################
# Andrew Gallatin, Computer Project Manager #
# Institute of Statistics and Decision Sciences #
# Box 90251, Duke University, Durham, NC 27708-0251 #
##############################################################################
*** portmap.c Thu Jun 15 17:13:13 1995
--- portmap.c_dist Thu Jun 15 17:11:30 1995
***************
*** 334,340 ****
ans = 1;
}
done:
! if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&ans)) &&
debugging) {
(void) fprintf(stderr, "svc_sendreply\n");
abort();
--- 334,340 ----
ans = 1;
}
done:
! if ((!svc_sendreply(xprt, xdr_long, (caddr_t)&ans)) &&
debugging) {
(void) fprintf(stderr, "svc_sendreply\n");
abort();
***************
*** 380,386 ****
prevpml->pml_next = pml;
free(t);
}
! if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&ans)) &&
debugging) {
(void) fprintf(stderr, "svc_sendreply\n");
abort();
--- 380,386 ----
prevpml->pml_next = pml;
free(t);
}
! if ((!svc_sendreply(xprt, xdr_long, (caddr_t)&ans)) &&
debugging) {
(void) fprintf(stderr, "svc_sendreply\n");
abort();
***************
*** 407,413 ****
port = fnd->pml_map.pm_port;
else
port = 0;
! if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&port)) &&
debugging) {
(void) fprintf(stderr, "svc_sendreply\n");
abort();
--- 407,413 ----
port = fnd->pml_map.pm_port;
else
port = 0;
! if ((!svc_sendreply(xprt, xdr_long, (caddr_t)&port)) &&
debugging) {
(void) fprintf(stderr, "svc_sendreply\n");
abort();
Received on Thu Sep 14 1995 - 20:54:53 NZST
This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT