Subject: pkg/22486: non-deterministic build error in math/snns
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kristerw@netbsd.org>
List: netbsd-bugs
Date: 08/14/2003 20:27:38
>Number:         22486
>Category:       pkg
>Synopsis:       non-deterministic build error in math/snns
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 14 20:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Krister Walfridsson
>Release:        NetBSD 1.6.1
>Organization:
	
>Environment:
	
	
System: NetBSD pc 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002     autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The /math/snns package fail to build on NetBSD 1.6.1 because of config.h
being empty, which in turn seems to be because the that autoheader does
not generate the needed files.

One fun thing is that it works sometimes (about 50% of the cases on my
i386, never on my NFS-mounted shark) so I'd guess there is a time-stamp
race somwhere in the buildlink2 magic.
	
>How-To-Repeat:
cd into pkgsrc/math/snns and do "make clean ; make" until you see the error

cc -I../..   -O2 -I/usr/pkg/include -I/usr/X11R6/include -c kr_newpattern.c
kr_newpattern.c: In function `kr_npui_loadNewPatterns':
kr_newpattern.c:553: `F_OK' undeclared (first use in this function)
kr_newpattern.c:553: (Each undeclared identifier is reported only once
kr_newpattern.c:553: for each function it appears in.)
*** Error code 1
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: