Subject: bin/439: amd fails to compile
To: None <gnats-admin>
From: Arne H Juul <arnej@dsl.unit.no>
List: netbsd-bugs
Date: 08/28/1994 15:50:18
>Number:         439
>Category:       bin
>Synopsis:       make in /usr/src/usr.sbin/amd fails.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 28 15:50:11 1994
>Originator:     Arne H Juul
>Organization:
"University of Trondheim"
>Release:        
>Environment:
	This has been a problem a long time, and I have current sources
as of yesterday (I think - sup from sun-lamp has been a bit problematic
recently).
System: NetBSD skarven.dsl.unit.no 1.0_BETA NetBSD 1.0_BETA (SKARVEN) #2: Sun Jul 31 16:32:24 MET DST 1994 arnej@skarven.dsl.unit.no:/usr/src/sys/arch/i386/compile/SKARVEN i386

>Description:
	Compiling amd fails because the 'voidp' type isn't defined when
it's used. Like this:

cc -O -I/usr/src/usr.sbin/amd/amq/../include -I/usr/src/usr.sbin/amd/amq/../rpcx -I/usr/src/usr.sbin/amd/amq/../config -DARCH_REP=\"i386\" -DOS_REP=\"bsd44\" -DOS_HDR=\"os-bsd44.h\"   -c amq_clnt.c
In file included from amq_clnt.c:2:
/usr/src/usr.sbin/amd/amq/../rpcx/amq.h:135: parse error before `amqproc_null_1'
/usr/src/usr.sbin/amd/amq/../rpcx/amq.h:135: warning: data definition has no type or storage class
/usr/src/usr.sbin/amd/amq/../rpcx/amq.h:139: parse error before `amqproc_umnt_1'
/usr/src/usr.sbin/amd/amq/../rpcx/amq.h:139: warning: data definition has no type or storage class
amq_clnt.c:9: conflicting types for `amqproc_null_1'
/usr/src/usr.sbin/amd/amq/../rpcx/amq.h:135: previous declaration of `amqproc_null_1'
amq_clnt.c:39: conflicting types for `amqproc_umnt_1'
/usr/src/usr.sbin/amd/amq/../rpcx/amq.h:139: previous declaration of `amqproc_umnt_1'


>How-To-Repeat:
	cd /usr/src/usr.sbin ; make
>Fix:
	Apply this patch:
diff -rc /komm/netbsd/supmirror/src/usr.sbin/amd/rpcx/amq.h ./amq.h
*** /komm/netbsd/supmirror/src/usr.sbin/amd/rpcx/amq.h	Mon Jun 13 22:50:44 1994
--- ./amq.h	Sat Aug 27 22:18:30 1994
***************
*** 132,142 ****
  #define AMQ_PROGRAM ((u_long)300019)
  #define AMQ_VERSION ((u_long)1)
  #define AMQPROC_NULL ((u_long)0)
! extern voidp amqproc_null_1();
  #define AMQPROC_MNTTREE ((u_long)1)
  extern amq_mount_tree_p *amqproc_mnttree_1();
  #define AMQPROC_UMNT ((u_long)2)
! extern voidp amqproc_umnt_1();
  #define AMQPROC_STATS ((u_long)3)
  extern amq_mount_stats *amqproc_stats_1();
  #define AMQPROC_EXPORT ((u_long)4)
--- 132,142 ----
  #define AMQ_PROGRAM ((u_long)300019)
  #define AMQ_VERSION ((u_long)1)
  #define AMQPROC_NULL ((u_long)0)
! extern void *amqproc_null_1();
  #define AMQPROC_MNTTREE ((u_long)1)
  extern amq_mount_tree_p *amqproc_mnttree_1();
  #define AMQPROC_UMNT ((u_long)2)
! extern void *amqproc_umnt_1();
  #define AMQPROC_STATS ((u_long)3)
  extern amq_mount_stats *amqproc_stats_1();
  #define AMQPROC_EXPORT ((u_long)4)
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------