bind 8.1.2 + compaq truunix 64 5.0 = problem
Joseph S D Yao
jsdy at cospo.osis.gov
Thu Sep 16 19:09:47 UTC 1999
> I can't get Bind 8.1.2 to compile under Compaq TruUNIX 64 5.0. It
> compiled fine under Digital Unix 4.0f. I have been going back and
> forth with Compaq. Essentially, they redid the compiler for 5.0 so
> that it is ANSI compliant instead of Carnegie Richie compliant. Even
> using the "backwards compatibility mode" of -std0, it still won't
> compile. Any ideas?
"Compaq Tru64 Unix". Doesn't it just trip off the tongue? ;-)
I'd thought the DEC compiler had been ANSI-compliant for years now,
with "Kernighan & Ritchie" (K&R) just an option?
The DEC Alpha "include" files had some strange orderings in them. I
did the following when trying to compile on some OLD Alphas that had
not been upgraded in years. See if any of this helps.
I moved <sys/types.h> to the top, and removed <net/route.h>. I also
added "_BSD" in one file, to change conditional compilation of
something, I forget what. Try just the #include changes, first.
> From: Joseph S D Yao <jsdy at cospo.osis.gov>
> Subject: DEC Alpha fixes for 8.2.1
> Date: Fri, 2 Jul 1999 16:47:00 -0400 (EDT)
>
> 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