Subject: bin/20207: amd doesn't build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlelstv@serpens.de>
List: netbsd-bugs
Date: 02/05/2003 01:32:04
>Number:         20207
>Category:       bin
>Synopsis:       amd doesn't build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 04 16:33:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael van Elst
>Release:        NetBSD 1.6.1_RC1
>Organization:
well
>Environment:
	
	
System: NetBSD pepew 1.6.1_RC1 NetBSD 1.6.1_RC1 (PEPEW) #3: Tue Feb 4 22:13:36 MET 2003 src@fud:/d/0/src/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
>Description:
With sources from today (and maybe earlier) amd doesn't built because
of a warning for an unused variable.
>How-To-Repeat:
cd /usr/src/usr.sbin/amd
make

Watch make bail out when it tries to compile
dist/am-utils/conf/transp/transp_sockets.c
>Fix:

Index: transp_sockets.c
===================================================================
RCS file: /cvsroot/src/dist/am-utils/conf/transp/transp_sockets.c,v
retrieving revision 1.1.1.4.2.1
diff -u -r1.1.1.4.2.1 transp_sockets.c
--- transp_sockets.c    2003/01/06 04:51:26     1.1.1.4.2.1
+++ transp_sockets.c    2003/02/05 00:31:28
@@ -220,7 +220,9 @@
 int
 create_amq_service(int *udp_soAMQp, SVCXPRT **udp_amqpp, int *tcp_soAMQp, SVCXPRT **tcp_amqpp)
 {
+#ifdef SVCSET_CONNMAXREC
   int maxrec = RPC_MAXDATASIZE;
+#endif
 
   /* first create TCP service */
   if (tcp_soAMQp) {

>Release-Note:
>Audit-Trail:
>Unformatted: