Subject: Re: bootstrap-pkgsrc moved to pkgsrc/bootstrap
To: None <tech-pkg@netbsd.org>
From: Hal Snyder <hal@vailsys.com>
List: tech-pkg
Date: 03/11/2004 21:25:15
mlh@goathill.org (MLH) writes:

> I just nuked my /usr/pkg on Solaris8 (the lang/gcc3 build failed
> using Solaris gcc3 that we discussed yesterday) and tried the the
> bootstrap using /opt/SUNWspro/bin/cc (/opt/SUNWspro/bin/cc -o bmake):
>
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating nbcompat/config.h
> gcc -o bits bits.c
> ./bits nbcompat/nbtypes.h
> nawk '                                                   BEGIN { process = 1 }    /NBCOMPAT template section follows\./ { process = 0 }    /^\#[  ]*define[       ]+PACKAGE_.*/ { next }             /^\#[  ]*define[       ]+/ {                     if (process == 1) {                              guard = $0;                      sub("^#[        ]*define[       ]+", "", guard);  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:545,
>                  from glob.c:57:
> nbcompat/statfs.h:30: error: conflicting types for `fsid_t'
> /usr/include/sys/vfs.h:56: error: previous declaration of `fsid_t'
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/bootstrap/work/libnbcompat
> ===> exited with status 1
> aborted.

Same on i386 Solaris 9, sunfreeware gcc-3.3.2

gcc -o bits bits.c
./bits nbcompat/nbtypes.h
nawk '                                                   BEGIN { process = 1 }                                   /NBCOMPAT template section follows\./ { process = 0 }   /^\#[  ]*define[       ]+PACKAGE_.*/ { next }           /^\#[  ]*define[       ]+/ {                            if (process == 1) {                             guard = $0;                             sub("^#[       ]*define[       ]+", "", guard);  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:545,
                 from glob.c:57:
nbcompat/statfs.h:30: error: conflicting types for `fsid_t'
/usr/include/sys/vfs.h:57: error: previous declaration of `fsid_t'
*** Error code 1