Subject: snapshot 981017 kernel compile error
To: None <amiga@NetBSD.ORG>
From: Berndt Josef Wulf <wulf@hotdog.apana.org.au>
List: amiga
Date: 10/21/1995 10:27:11
Hi all,

I am trying to upgrapde from 950930 to 951017 snapshot and came across some odd
faults:

1.) When compiling the lib files the compiler complains about the definition of 
    the tputs function being not compatible with the previous definition.
    This happens when compiling tputs.c in the libterm library. 

    /usr/include/curses.h         : int  tputs __P((char *, int, void (*) (int)));
    /usr/src/lib/libterm/tputs.c  : void tputs (cp, affcnt,outc);
                                    ^^^^
    Up until now I have set the function to int type in order to get pass this
    error and keeping the compiler happy ;-)

    My question here: What is the story on this?

2.) When compiling the kernel I can't get pass this one:


cc  -c -O -Werror -fno-builtin -mc68020 -m68881 -I. -I../../../../arch -I../../../.. -I../../../../sys -DTIMEZONE="0x12c" -DDST="1" -DM68040 -DFPSP -DM68030 -DM68020 -DFPCOPROC -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DDIRECTED_BROADCAST -DQUOTA -DNFSSERVER -DNFSCLIENT -DFFS -DMFS -DPROCFS -DKERNFS -DFDESC -DNULLFS -DFIFO -DADOSFS -DCD9660 -DPORTAL -DMSDOSFS -DCOMPAT_10 -DCOMPAT_09 -DCOMPAT_43 -DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM -DSYSVMSG -DSYSVSEM -DLKM -DKTRACE -DDIAGNOSTIC -DNKMEMCLUSTERS=256 -DPANICWAIT -DDDB -DMACHINE_NONCONTIG -DRETINACONSOLE -DGRF_ECS -DGRF_PAL -DGRF_AGA -DRETINA_SPEED_HACK -D_KERNEL -Dmc68020 -Damiga  ../../../../arch/amiga/dev/ite.c
cc1: warnings being treated as errors
../../../../arch/amiga/dev/ite.c: In function `ite_sifilter':
../../../../arch/amiga/dev/ite.c:833: warning: cast from pointer to integer of different size
../../../../arch/amiga/dev/ite.c: In function `repeat_handler':
../../../../arch/amiga/dev/ite.c:844: warning: cast to pointer from integer of different size
../../../../arch/amiga/dev/ite.c: In function `ite_filter':
../../../../arch/amiga/dev/ite.c:872: warning: passing arg 1 of `rem_sicallback' from incompatible pointer type
*** Error code 1

Stop.

    What do I need to do in order to get the kernel sources compiled? This is the first
    time that I am seeing this problem. This one got me beat :-(

    Any hints?

Is there an FAQ which explains how to compile a whole contribution the correct way.
Typing 'make build' doesn't seem to get the right result all the time.

Thanks in advance

cheerio Berndt

-- 
Name    : Berndt Josef Wulf        | Amiga 4000/40-25, 16MB, NetBSD-1.0-950930
E-Mail  : wulf@hotdog.apana.org.au |       Cybervision64 4MB , Retina-Z2 4MB,
Phone   : ++61 411 245170          |       Z3-Fastlane, A2065 Ethernet