SUMMARY: Tru64 5.1a and Bind 8.3.3

From: J Bacher (jb@jbacher.com)
Date: Wed Jul 03 2002 - 16:26:33 EDT


Thank you both Oisin and Glenn. 8.3.3 build successful.

Problem:

"cc: Error: ../../include/netgroup.h, line 14: In this declaration, the type
of "innetgr" is not compatible with the type of a previous declaration of
"innetgr" at line number 704 in file /usr/include/unistd.h. (notcompat)
int innetgr(const char *netgroup, const char *machine,
----^
*** Exit 1"

Resolution:

from Oisin McGuinness

"On my Tru64 5.1 box, the system unistd.h header does not
contain the various netgroup routines, although they are defined routines
and have a man page. Evidently someone fixed the lack of the header
declarations by inserting them into unistd.h. Since the Bind header file
is protected by #ifndef netgroup_h (at least in the Bind 9 copy), all
you should need to do on your development setup is make
sure your build defines netgroup_h somewhere reasonable as a C defined.
(E.g, in src/port/decunix/include/port_before.h...)"

from Glenn at notes.cc.sunysb.edu

"add a "-Dnetgroup_h" to the cc line at the beginning of
the Makefile.set file in ..src/port/decunix.

It should look like:
'CC=cc -std -Dnetgroup_h' "



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:45 EDT