Subject: Build failure on 1.6 release branch
To: None <port-i386@netbsd.org>
From: Adrian Portelli <adrian.p@bigpond.net.au>
List: port-i386
Date: 12/08/2002 13:45:42
Hi,

I just did a "cvs -z9 update -dP -rnetbsd-1-6" in the last hour followed by a
"./build.sh -D dest/ -R release/" which failed with the following error:

CC=/usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/i386--netbsdelf-gcc /usr/src/too
ls/obj/tools.NetBSD-1.6-i386/bin/i386--netbsdelf-lint -chapbxzF -w -X 272 -d /op
t/netbsd/20021208-netbsd16/dest/usr/include -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -
D_REENTRANT -I/usr/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERF
ACE_PRIVATE -I/usr/src/lib/libc/../../libexec/ld.elf_so -I/usr/src/lib/libc/dlfc
n -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/usr/src/lib/libc -DRESOLVSORT -I. -DPOSIX_
MISTAKE -DPORTMAP -DFLOATING_POINT -i /usr/src/lib/libc/gen/dirname.c
/usr/src/lib/libc/gen/dirname.c(60): warning: p unused in function _dirname [192
]
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src
*** Error code 1

Stop.
nbmake: stopped in /usr/src
*** Error code 1

Stop.
nbmake: stopped in /usr/src

The build is running on a netbsd 1.6 release box (i386).

The following patch _seemed_ to fix it but I just wanted to know if anyone else
had bumped into this or if I should lodge a PR for it ?

--- dirname.c.orig      Sun Dec  8 13:22:27 2002
+++ dirname.c   Sun Dec  8 13:22:42 2002
@@ -57,7 +57,7 @@
 {
	 static char singledot[] = ".";
	 static char result[PATH_MAX];
	 -       char *p, *lastp;
	 +       char *lastp;
		 size_t len;
	  
	/*

Thanks,

Adrian.