Subject: Re: build failure of macppc on macppc in libc/hash.o
To: None <>
From: Christos Zoulas <>
List: current-users
Date: 10/16/2005 02:38:30
In article <>,
Jonathan A. Kollasch <> wrote:
>While running './ -U -u release' in a clean source checkout from my 
>repository just after it was cvsuped from the mirror in Japan. MAKECONF 
>points to a file containing only 'CFLAGS=-pipe'.
>NetBSD 3.99.7 NetBSD 3.99.7 (GENERIC.RAL) #0: Thu Jul 14 
>21:28:53 CDT 2005  root@:/usr/src/sys/arch/macppc/compile/GENERIC.RAL macppc
>(GENERIC with additon of ral @ pci (btw the ral card couldn't actually send or 
>receive packets on macppc, but that's another issue))
>I get this:
>#   compile  libc/hash.o
>/home/tmp/src/tooldir.NetBSD-3.99.7-powerpc/bin/powerpc--netbsd-gcc -pipe 
>-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
>-Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Werror    
>-I/home/tmp/src/lib/libc/include -I/home/tmp/src/lib/libc -DHESIOD -DINET6 
>-I/home/tmp/src/sys -I/home/tmp/src/lib/libc/stdlib 
>-I/home/tmp/src/libexec/ld.elf_so -I/home/tmp/src/lib/libc/dlfcn 
>-isystem /home/tmp/src/destdir.macppc/usr/include 
>-c    /home/tmp/src/lib/libc/db/hash/hash.c -o hash.o.tmp
>/home/tmp/src/lib/libc/db/hash/hash.c: In function `hash_seq':
>/home/tmp/src/lib/libc/db/hash/hash.c:743: warning: `bufp' might be used 
>uninitialized in this function
>*** Failed target:  hash.o
>Is this my fault?

You are not compiling with optimization on, so it might be that gcc does
not do flow analysis properly... In the declaration of bufp add 

  register BUHEAD *bufp = NULL; /* XXX: gcc */

and that will let your build keep going.