Subject: "make" fails from /usr/src (hacker seeks clue, film at 11)
To: None <current-users@NetBSD.ORG>
From: Open Carefully -- Contents Under Pressure <greywolf@lonewolf.ithaca.com>
List: current-users
Date: 02/07/1995 16:31:06
Excuse me for being 100% clue-free here, but I'm curious as to whether
modifying the header file is in line.  This is under the i386 but
I suspect it is just about to fail on my SPARC, too -- as soon as it
gets there.

To wit (output from "make" in /usr/src):
===> lib
===> csu
===> i386
===> c++
===> libarch
===> libc

cc -O -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D__DBINTERFACE_PRIVATE \
	-DPOSIX_MISTAKE -DFLOATING_POINT -c /usr/src/lib/libc/rpc/svc.c
/usr/src/lib/libc/rpc/svc.c: In function `xprt_register':
/usr/src/lib/libc/rpc/svc.c:92: `svc_maxfd' undeclared(first use this function)
/usr/src/lib/libc/rpc/svc.c:92: (Each undeclared identifier is reported only once
/usr/src/lib/libc/rpc/svc.c:92: for each function it appears in.)
/usr/src/lib/libc/rpc/svc.c: In function `xprt_unregister':
/usr/src/lib/libc/rpc/svc.c:108: `svc_maxfd' undeclared (first use this function)
*** Error code 1

Now looking into this, in <sys/types.h>, if FD_SETSIZE is not defined,
it gets defined to 256.

In <rpc/svc.h>, the following code is defined:
	/*
	 * Global keeper of rpc service descriptors in use
	 * dynamic; must be inspected before each call to select
	 */
	#ifdef FD_SETSIZE
	extern fd_set svc_fdset;
	#define svc_fds svc_fdset.fds_bits[0]   /* compatibility */
	#else
	extern int svc_fds;
	extern int svc_maxfd;
	#endif /* def FD_SETSIZE */

Now, if the reference to svc_maxfd is left out, the error above
occurs.  However, almost all the rpc .c files refer to both svc_maxfd
*and* FD_SETSIZE.

Is there a typo somewhere?  Should svc_maxfd be present anyway?

--
 ______________ ___   ________ _____WHO: Greywolf (unto death)
/ ___\ _ \ __\ V / \  / /__ \| | __/WHAT: UNIX System Mangler...er, Admin
\ \| |   < _| ` ' \ '` / \/ /|_| _/ WHERE: Ithaca SW,  1301 Marina Village Pkwy
 \___|_|\_\__\|_|  \/\/ \__/___/_|  Alameda, CA 94501 (415) 332-2344 x7255


--QAA13876.792203223/lonewolf.ithaca.com--





--- End of forwarded message from Mail Delivery Subsystem <MAILER-DAEMON>


--
 ______________ ___   ________ _____WHO: Greywolf (unto death)
/ ___\ _ \ __\ V / \  / /__ \| | __/WHAT: UNIX System Mangler...er, Admin
\ \| |   < _| ` ' \ '` / \/ /|_| _/ WHERE: Ithaca SW,  1301 Marina Village Pkwy
 \___|_|\_\__\|_|  \/\/ \__/___/_|  Alameda, CA 94501 (415) 332-2344 x7255