tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: portmapper install problems
@ 1995-09-14 18:23 Istvan Pecsenyanszky
  0 siblings, 0 replies; only message in thread
From: Istvan Pecsenyanszky @ 1995-09-14 18:23 UTC (permalink / raw)
  To: tru64-unix-managers

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@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();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-09-14 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-14 18:23 SUMMARY: portmapper install problems Istvan Pecsenyanszky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox