SUMMARY: portmapper install problems

From: Istvan Pecsenyanszky <inpecsen_at_immd3.informatik.uni-erlangen.de>
Date: Thu, 14 Sep 1995 20:23:19 +0200 (MET DST)

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 <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