From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075323306577.tru64-unix-managers.marc@archive.invalid> From: Istvan Pecsenyanszky Date: Thu, 14 Sep 1995 18:23:19 +0000 To: tru64-unix-managers Subject: SUMMARY: portmapper install problems X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075323306577 Hi, I received an answer from Andrew Gallatin. I tried it, and it works fine. Thanks for the quick response, Drew! The original question was: > Is there anybody, who did the public domain portmapper (from Wietse > Venema) successfully install? I compiled it without any errors, but when I > started the new portmap and tried to initialize the portmap table > (described in README), I get "non registered: xxxx" error messages, even I > disabled the CHECK_PORT feature in the Makefile. > > I am using AlphaServer 2100 4/200 and DEC Unix v3.2 -- From: Andrew Gallatin 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();