Subject: pkg/24521: pkg_install and libnbcompat build failure (missing header?)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lurch@smoke.dope.org>
List: netbsd-bugs
Date: 02/22/2004 00:54:43
>Number:         24521
>Category:       pkg
>Synopsis:       pkg_install and libnbcompat build failure (missing header?)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 22 06:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1
>Organization:
Project 3751
	
>Environment:
	
	
System: NetBSD noir 1.6.1 NetBSD 1.6.1 (NOIR) #0: Thu Feb 5 20:35:27 UTC 2004 root@noir:/usr/src/sys/arch/i386/compile/NOIR i386
Architecture: i386
Machine: i386
>Description:
both builds fail right after configure, apparently looking for a non-existant header:

checking for strtoll... (cached) yes                                                                                               
checking for optarg declaration... yes                                                                                             
checking for optind declaration... yes                                                                                             
configure: creating ./config.status                                                                                                
config.status: creating Makefile                                                                                                   
config.status: creating nbcompat/config.h                                                                                          
gcc -o bits bits.c                                                                                                                 
./bits nbcompat/nbtypes.h                                                                                                          
awk '                                                    BEGIN { process = 1 }                                                     
/NBCOMPAT templat                                                                                                                  
e section follows\./ { process = 0 }     /^\#[  ]*define[       ]+PACKAGE_.*/ {                                                    
next }           /^\#[  ]*define[       ]+/ {                                                                                      
if (process == 1) {                              guard = $0;                                                                       
sub("^#[       ]*define[       ]+", "", g                                                                                          
uard);  sub("[  ]+.*", "", guard);               print "#ifndef " guard;                                                           
print $0;                                                                                                                          
print "#endif";                          next;                                                                                     
}                                               }                                                                                  
 { print }                                               ' nbcompat/config.h >                                                     
nbcompat/nbconfig.h                                                                                                                
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c glob.c                                                                                     
In file included from nbcompat.h:320,                                                                                              
                 from glob.c:57:                                                                                                   
util.h:39: nbconfig.h: No such file or directory                                                                                   
In file included from nbcompat.h:364,                                                                                              
                 from glob.c:57:                                                                                                   
getopt.h:42: nbconfig.h: No such file or directory                                                                                 
*** Error code 1                                                                                                                   
                                                                                                                                   
Stop.                                                                                                                              
make: stopped in /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat                                                                 
*** Error code 1                                                                                                                   
                                                                                                                                   
Stop.                                                                                                                              
make: stopped in /usr/pkgsrc/pkgtools/pkg_install                                                                                  
*** Error code 1                                                                                                                   
                                                                                                                                   
Stop.                                                                                                                              
make: stopped in /usr/pkgsrc/pkgtools/pkg_install

---

checking for strtoll... (cached) yes                                                                                               
checking for optarg declaration... yes                                                                                             
checking for optind declaration... yes                                                                                             
configure: creating ./config.status                                                                                                
config.status: creating Makefile                                                                                                   
config.status: creating nbcompat/config.h                                                                                          
===> Building for libnbcompat-20031210                                                                                             
gcc -o bits bits.c                                                                                                                 
./bits nbcompat/nbtypes.h                                                                                                          
/usr/bin/awk '                                                   BEGIN { process                                                   
= 1 }                                   /NBCO                                                                                      
 template section follows\./ { process = 0 }     /^\#[  ]*define[                                                                  
]+PACKAGE_.*/ { next }           /^\#[  ]*define[                                                                                  
/ {                              if (process == 1) {                                                                               
guard = $0;                             sub("                                                                                      
]*define[       ]+", "", guard);  sub("[        ]+.*", "", guard);                                                                 
print "#ifndef " guard;                                                                                                            
rint $0;                                 print "#endif";                                                                           
next;                                                                                                                              
 }                                                       { print }                                                                 
' nbcompat/co                                                                                                                      
.h > nbcompat/nbconfig.h                                                                                                           
gcc  -I. -I.  -O2 -DHAVE_CONFIG_H -c glob.c                                                                                        
In file included from nbcompat.h:320,                                                                                              
                 from glob.c:57:                                                                                                   
util.h:39: nbconfig.h: No such file or directory                                                                                   
In file included from nbcompat.h:364,                                                                                              
                 from glob.c:57:                                                                                                   
getopt.h:42: nbconfig.h: No such file or directory                                                                                 
*** Error code 1                                                                                                                   
                                                                                                                                   
Stop.                                                                                                                              
make: stopped in /usr/pkgsrc/pkgtools/libnbcompat/work/libnbcompat-20031210                                                        
*** Error code 1                                                                                                                   
                                                                                                                                   
Stop.                                                                                                                              
make: stopped in /usr/pkgsrc/pkgtools/libnbcompat                                                                                  
*** Error code 1                                                                                                                   
                                                                                                                                   
Stop.                                                                                                                              
make: stopped in /usr/pkgsrc/pkgtools/libnbcompat

---

see also http://mail-index.netbsd.org/tech-pkg/2004/02/20/0003.html et al

	
>How-To-Repeat:

cd /usr/pkgsrc/pkgtools/pkg_install && make
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: