DEC Alpha fixes for 8.2.1

Joseph S D Yao jsdy at cospo.osis.gov
Fri Jul 2 20:47:00 UTC 1999


To compile BIND 8.2.1 on some really old DEC Alphas, I had to make the
following changes in src/port/decunix/include/.  I'm a little surprised
that they compiled at all unless DEC did the same thing as they did in
the latter days of Ultrix - wrapped all include files in #ifdef's, and
made sure they all included all of their dependencies themselves.

Did anyone else try compiling it on DEC OSF.1/Digital Unix/Tru64 Unix?
What did you find?

I had never gotten around to compiling BIND 8.2 on these machines ... I
assume the port/decunix/include files are much the same.

The #include files are moved around for dependencies.  The _BSD caused
WCOREDUMP() to be included in <sys/wait.h>.  It also causes a few other
uses of BSDisms in the #include files.

=======================================================================
*** old/port_after.h	Fri Jul  2 16:11:56 1999
--- port_after.h	Thu Jul  1 18:35:57 1999
***************
*** 17,25 ****
  
  #ifndef	PORT_AFTER_H
  #define PORT_AFTER_H
  #include <sys/mbuf.h>
  #include <sys/socket.h>
- #include <net/route.h>
  
  /* Digital UNIX underestimates itself. */
  #if defined(BSD) && (BSD < 199103)
--- 17,25 ----
  
  #ifndef	PORT_AFTER_H
  #define PORT_AFTER_H
+ #include <sys/types.h>
  #include <sys/mbuf.h>
  #include <sys/socket.h>
  
  /* Digital UNIX underestimates itself. */
  #if defined(BSD) && (BSD < 199103)
***************
*** 54,60 ****
  #define PORT_WOULDBLK	EWOULDBLOCK
  #define WAIT_T		int
  
- #include <sys/types.h>
  #include <sys/socket.h>
  #include <sys/param.h>
  #if (!defined(BSD)) || (BSD < 199306)
--- 54,59 ----
*** old/port_before.h	Fri Jul  2 16:11:56 1999
--- port_before.h	Thu Jul  1 17:22:17 1999
***************
*** 3,8 ****
--- 3,9 ----
  #undef WANT_IRS_GR
  #define _SOCKADDR_LEN
  #define HAS_PTHREADS
+ #define _BSD
  
  #if defined(HAS_PTHREADS) && defined(_REENTRANT)
  #define DO_PTHREADS
=======================================================================

--
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.


More information about the bind-users mailing list