Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Steven N. Hirsch <shirsch@ibm.net>
Subject: Re: amd &amp; NIS maps
Date: Sat, 8 Mar 1997 14:55:41 -0500 (EST)	[thread overview]
Message-ID: <59d9823c1b6dc918d8b07b937b2f2a6a.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.95.970308123324.777B-100000@air.steve.net>

All,

Sorry, I forgot that Stephen Williams' patch to amd/wire.c was also
required.  This is the complete patch for enabling NIS maps with the
newest amd for Alpha Linux:

*** amd-upl102/config/Makefile.config.orig	Sun Feb  9 10:10:57 1992
--- amd-upl102/config/Makefile.config	Sat Mar  8 11:49:29 1997
***************
*** 53,58 ****
--- 53,63 ----
  # for Hesiod and/or Named.
  #
  #RESOLV = -lhesiod -lresolv
+ #
+ # We don't need the resolver, but must specify libnsl.so to
+ # link yp functions in.
+ #
+ RESOLV = -lnsl
  
  #
  # Define XLIBDIR if you have libraries not on the standard
*** amd-upl102/config/Makefile.linux.orig-rh	Sat Mar  8 11:45:52 1997
--- amd-upl102/config/Makefile.linux	Sat Mar  8 11:47:19 1997
***************
*** 52,58 ****
  YACC=bison -y
  LEX=flex
  
! HAS_NIS_MAPS = -DDIRENT #-DHAS_NIS_MAPS -DHAS_NIS_RELOAD # not on linux (yet)
  
  # The following syntax only works with GNU's make - which all linux users have.
  # Linux can lose the segment padding to page boundaries for these binaries.
--- 52,58 ----
  YACC=bison -y
  LEX=flex
  
! HAS_NIS_MAPS = -DDIRENT -DHAS_NIS_MAPS -DHAS_NIS_RELOAD
  
  # The following syntax only works with GNU's make - which all linux users have.
  # Linux can lose the segment padding to page boundaries for these binaries.
*** amd-upl102/amd/wire.c.orig	Sat Mar  8 14:49:59 1997
--- amd-upl102/amd/wire.c	Sat Mar  8 14:31:25 1997
***************
*** 415,421 ****
  		subnet = address & netmask;
  
  #ifdef IN_CLASSA
!                 subnet = htonl(subnet);
  
  		if (IN_CLASSA(subnet)) {
  			mask = IN_CLASSA_NET;
--- 415,421 ----
  		subnet = address & netmask;
  
  #ifdef IN_CLASSA
! 		subnet = ntohl(subnet) & 0xffffffffUL; 
  
  		if (IN_CLASSA(subnet)) {
  			mask = IN_CLASSA_NET;

See my earlier posting for full instructions.

Enjoy.

Steve

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-03-08 19:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.95.970308123324.777B-100000@air.steve.net>
1997-03-08 19:55 ` Steven N. Hirsch [this message]
1997-03-08 17:41 amd &amp; NIS maps Steven N. Hirsch
read-only archive

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