Subject: Re: -current fails to build at src/lib/libc/db/hash/hash.c
To: None <current-users@netbsd.org>
From: Nino Dehne <ndehne@gmail.com>
List: current-users
Date: 06/21/2005 12:47:28
Nino Dehne wrote:
> Hi,
> 
> -current as of today fails to build as follows. src/lib/libc/db/hash/hash.c
> was last updated 2.5 months ago. What could be the problem?
> 
> TIA
> 
> ND
> 
> 
> # BASE=/usr/home/build/wrap
> # nice -n 20 sh ${BASE}/src/build.sh -D ${BASE}/dest -M ${BASE}/obj distribution
> [...]
> #   compile  libc/hash.o
> [...]
> /usr/home/build/wrap/src/lib/libc/db/hash/hash.c: In function `hash_seq':
> /usr/home/build/wrap/src/lib/libc/db/hash/hash.c:743: warning: `bufp' might be used uninitialized in this function
> 
> *** Failed target:  hash.o
> *** Failed command: /usr/home/build/wrap/obj/usr/home/build/wrap/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/i386--netbsdelf-gcc -pipe -DALL_STATE -DUSG_COMPAT -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Werror -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/home/build/wrap/src/lib/libc/include -I/usr/home/build/wrap/src/lib/libc -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/usr/home/build/wrap/src/libexec/ld.elf_so -I/usr/home/build/wrap/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/usr/home/build/wrap/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /usr/home/build/wrap/dest/usr/include -c /usr/home/build/wrap/src/lib/libc/db/hash/hash.c -o hash.o.tmp
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/build/wrap/src/lib/libc
> [...]

As a followup, I could narrow down the problem to my /etc/mk.conf. It 
contains "DBG=-pipe" in my case. Just as I'm typing this I realise that 
I used DBG= and not DBG+=, although this hasn't failed for me in the 
past. I'm currently building again with DBG+=-pipe and it looks good so far.

I have to admit that I'm not even sure why I used DBG and not something 
like COPTS? *scratch* I can vaguely remember digging through some .mk 
files to determine this. Is this documented somewhere?

Regards,

ND