Subject: Re: kernel compilation
To: Ib-Michael Martinsen <imm@nethotel.dk>
From: David Forbes <dmf20@hermes.cam.ac.uk>
List: port-arm32
Date: 02/11/1999 10:41:14
> cc  -O2 -Werror -Wreturn-type -I. -I../../../../arch -I../../../.. -nostdinc -DMACHINE_NONCONTIG -DEXEC_AOUT -DEXEC_SCRIPT -DCPU_SA110 -DCPU_ARM6 -DCPU_ARM7 -DIOMD -DRISCPC -DARMFPE -DFFS -DMFS -DNFS -DADOSFS -DEXT2FS -DCD9660 -DMSDOSFS -DFDESC -DKERNFS -DNULLFS -DPORTAL -DPROCFS -DUMAPFS -DUNION -DQUOTA -DFIFO -DNFSSERVER -DGATEWAY -DINET -DNETATALK -DCOMPAT_43 -DCOMPAT_12 -DSYSVMSG -DSYSVSEM -DSYSVSHM -DSHMMAXPGS="0x400" -DMEMORY_DISK_HOOKS -DKTRACE -DIRQSTATS -DLKM -DMOUSE_IOC_ACK -DDIAGNOSTIC -DPOSTMORTEM -DDDB -DMAXUSERS=32 -D_KERNEL  -Darm32 -Wcomment  -c ../../../../arch/arm32/arm32/disassem.c
> In file included from ../../../../arch/arm32/arm32/disassem.c:54:
> ../../../../arch/arm32/arm32/disassem.h:43: argument format specified for non-function `di_printf'
> *** Error code 1
> 
> Stop.
> 
> I have been looking a bit at disassem.c and disassem.h, but I am
> unable to spot any errors, however I think the di_printf definition
> in the disassem.h (line 43) is a little odd (maybe because I don't 
> understand it :-):
> 
> typedef struct {
>         u_int   (*di_readword) __P((u_int));
>         void    (*di_printaddr) __P((u_int));   
>         void    (*di_printf) __P((const char *, ...))
>                     __kprintf_attribute__((__format__(__kprintf__,1,2)));
> } disasm_interface_t;

I seem to remember hitting this one a while back.  I think you can safely
remove the __kprintf_... bit.  Or you could try fetching a new
disassem.c/h from ftp.netbsd.org (or your nearest mirror).  Just wonder
down the -current hierarchy until you find the file you want.

Also, this one is probably in the mailing-list archive about April (?)
last year?

HTH,

David.