Subject: problems bootstraping on Fedora Core 4
To: tech-pkg@netbsd.org <tech-pkg@netbsd.org>
From: Zane C. B. <zanecb@midwest-connections.com>
List: tech-pkg
Date: 08/09/2005 16:42:27
Any suggestions?

Here is what happens when I try to bootstrap on Fedora Core 4.

I checked and libtermcap and ncurses is installed.

===> bootstrap command: ./bootstrap 
===> bootstrap started: Tue Aug  9 10:21:22 CDT 2005
Working directory is: work
===> Building libnbcompat
===> running: (cd work/libnbcompat; /bin/sh ./configure -C
--prefix=/usr/pkg --sysconfdir=/usr/pkg/etc && make) configure: loading
cache config.cache checking build system type... (cached)
i686-pc-linux-gnu checking host system type... (cached)
i686-pc-linux-gnu checking whether make sets $(MAKE)... (cached) yes
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for gawk... (cached) gawk
checking for ar... (cached) ar
checking for fparseln in -lutil... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached)
yes checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/bitypes.h... (cached) yes
checking for bind/bitypes.h... (cached) no
checking for netinet/in6_machtypes.h... (cached) no
checking for alloca.h... (cached) yes
checking for assert.h... (cached) yes
checking for ctype.h... (cached) yes
checking for dirent.h... (cached) yes
checking for err.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for fnmatch.h... (cached) yes
checking for fts.h... (cached) yes
checking for grp.h... (cached) yes
checking for libutil.h... (cached) no
checking for limits.h... (cached) yes
checking for machine/endian.h... (cached) no
checking for ndir.h... (cached) no
checking for paths.h... (cached) yes
checking for pwd.h... (cached) yes
checking for signal.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdint.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/byteorder.h... (cached) no
checking for sys/cdefs.h... (cached) yes
checking for sys/dir.h... (cached) yes
checking for sys/endian.h... (cached) no
checking for sys/file.h... (cached) yes
checking for sys/mkdev.h... (cached) no
checking for sys/ndir.h... (cached) no
checking for sys/param.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/statfs.h... (cached) yes
checking for sys/statvfs.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/ttycom.h... (cached) no
checking for sys/types.h... (cached) yes
checking for sys/uio.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for termcap.h... (cached) yes
checking for time.h... (cached) yes
checking for tzfile.h... (cached) no
checking for unistd.h... (cached) yes
checking for util.h... (cached) no
checking for utime.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for glob.h... (cached) yes
checking for sys/queue.h... (cached) yes
checking for regex.h... (cached) yes
checking for regexec... (cached) yes
checking for md5.h... (cached) yes
checking for MD5Init in md5.h... (cached) no
checking for md5.h... (cached) yes
checking for rmd160.h... (cached) no
checking for sha1.h... (cached) no
checking for MD5File... (cached) no
checking for RMD160File... (cached) no
checking for SHA1File... (cached) no
checking for getopt.h... (cached) yes
checking for struct option... (cached) yes
checking for vis.h... (cached) no
checking for __attribute__... (cached) no
checking for size_t... (cached) yes
checking for long long... (cached) yes
checking for int8_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for u_int8_t... (cached) yes
checking for u_int16_t... (cached) yes
checking for u_int32_t... (cached) yes
checking for u_int64_t... (cached) yes
checking for uint8_t... (cached) yes
checking for uint16_t... (cached) yes
checking for uint32_t... (cached) yes
checking for uint64_t... (cached) yes
checking for fsid_t... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for off_t... (cached) yes
checking size of off_t... (cached) 4
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether strerror_r is declared... (cached) yes
checking for strerror_r... (cached) yes
checking whether strerror_r returns char *... (cached) yes
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for err... (cached) yes
checking for fgetln... (cached) no
checking for fnmatch... (cached) yes
checking for fparseln... (cached) no
checking for getenv... (cached) yes
checking for isblank... (cached) yes
checking for lchflags... (cached) no
checking for lchmod... (cached) no
checking for lchown... (cached) yes
checking for lutimes... (cached) no
checking for mkdtemp... (cached) yes
checking for mkstemp... (cached) yes
checking for setenv... (cached) yes
checking for setgroupent... (cached) no
checking for setpassent... (cached) no
checking for setprogname... (cached) no
checking for snprintf... (cached) yes
checking for statvfs... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strlcat... (cached) no
checking for strlcpy... (cached) no
checking for strmode... (cached) no
checking for strsep... (cached) yes
checking for strtoll... (cached) yes
checking for unsetenv... (cached) yes
checking for usleep... (cached) yes
checking for utimes... (cached) yes
checking for warn... (cached) yes
checking for getenv... (cached) yes
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for mkdtemp... (cached) yes
checking for mkstemp... (cached) yes
checking for bcopy... (cached) yes
checking for bzero... (cached) yes
checking for memset... (cached) yes
checking for memcpy... (cached) yes
checking for setlocale... (cached) yes
checking for getmode... (cached) no
checking for setmode... (cached) no
checking for getmode... (cached) no
checking for gid_from_group... (cached) no
checking for group_from_gid... (cached) no
checking for pwcache_groupdb... (cached) no
checking for pwcache_userdb... (cached) no
checking for uid_from_user... (cached) no
checking for user_from_uid... (cached) no
checking for gid_from_group... (cached) no
checking for fts_open... (cached) yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for poll... (cached) yes
checking if poll() is implemented natively... (cached) yes
checking for getpassphrase... (cached) no
checking for getpgrp... (cached) yes
checking for memmove... (cached) yes
checking for select... (cached) yes
checking for getpgrp... (cached) yes
checking whether getpgrp requires zero arguments... (cached) yes
checking for struct statfs.f_fsize... (cached) no
checking for struct statfs.f_iosize... (cached) no
checking for struct dirent.d_namlen... (cached) no
checking *printf() support for %lld... yes
checking for strtoll... (cached) yes
checking whether optind is declared... (cached) yes
checking whether optreset is declared... (cached) no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
config.status: nbcompat/config.h is unchanged
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c bits.c
gcc -I. -I.  -g -O2  -o bits bits.o
./bits nbcompat/nbtypes.h
gawk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c glob.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c md5c.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c md5hl.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c rmd160.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c rmd160hl.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c sha1.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c sha1hl.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c vis.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c unvis.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c fgetln.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c fparseln.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c lchflags.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c lchmod.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c lutimes.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c setgroupent.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c setpassent.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c setprogname.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c strlcat.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c strlcpy.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c strmode.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c setmode.c
gcc  -I. -I.  -g -O2 -DHAVE_CONFIG_H -c pwcache.c
ar cr libnbcompat.a glob.o md5c.o md5hl.o rmd160.o rmd160hl.o sha1.o
sha1hl.o vis.o unvis.o fgetln.o fparseln.o lchflags.o lchmod.o lutimes.o
setgroupent.o setpassent.o setprogname.o strlcat.o strlcpy.o strmode.o
setmode.o pwcache.o ranlib libnbcompat.a
===> Creating mk.conf.example in work
===> running: /bin/sh work/install-sh -d -o root -g root /usr/pkg
===> running: /bin/sh work/install-sh -d -o root -g root /var/db/pkg
===> running: /bin/sh work/install-sh -d -o root -g root /usr/pkg/sbin
===> running: /bin/sh work/install-sh -d -o root -g root
/usr/pkg/man/man1 ===> running: /bin/sh work/install-sh -d -o root -g
root /usr/pkg/man/cat1 ===> running: /bin/sh work/install-sh -d -o root
-g root /usr/pkg/man/man8 ===> running: /bin/sh work/install-sh -d -o
root -g root /usr/pkg/man/cat8 ===> running: /bin/sh work/install-sh -d
-o root -g root /usr/pkg/share/mk ===> running: /bin/sh work/install-sh
-d -o root -g root /usr/pkg/lib ===> running: /bin/cp
/usr/pkgsrc/bootstrap/mods/mk/Linux.sys.mk /usr/pkg/share/mk/sys.mk ===>
running: /bin/cp bsd.*.mk /usr/pkg/share/mk ===> running: /bin/cp
mods/mk/Linux.bsd.lib.mk work/bmake/mk/bsd.lib.mk ===> running: /bin/cp
mods/mk/Linux.bsd.lib.mk /usr/pkg/share/mk/bsd.lib.mk ===> running:
/bin/cp mods/mk/Linux.bsd.man.mk work/bmake/mk/bsd.man.mk ===> running:
/bin/cp mods/mk/Linux.bsd.man.mk /usr/pkg/share/mk/bsd.man.mk ===>
running: /bin/sed -e
's|@ROOT_GROUP@|'root'|g;s|@ROOT_USER@|'root'|g;s|@SYSCONFDIR@|'/usr/pk
g/etc'|g' mods/mk/bsd.own.mk.in > /usr/pkg/share/mk/bsd.own.mk ===>
Installing bmake ===> running: (cd work/bmake; env CPPFLAGS='
-I../libnbcompat' LDFLAGS=' -L../libnbcompat' LIBS='-lnbcompat' /bin/sh
./configure --prefix=/usr/pkg --with-default-sys-path=/usr/pkg/share/mk 
&& make -f makefile.boot bootstrap && env BINDIR=/usr/pkg/bin
MANDIR=/usr/pkg/man  ./bmake -f Makefile install) loading cache
./config.cache checking for gcc... (cached) gcc
checking whether the C compiler (gcc   -L../libnbcompat) works... yes
checking whether the C compiler (gcc   -L../libnbcompat) is a
cross-compiler... no checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for AIX... no
checking for minix/config.h... (cached) no
checking for POSIXized ISC... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ar.h... (cached) yes
checking for ranlib.h... (cached) no
checking for fcntl.h... (cached) yes
checking for paths.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for utime.h... (cached) yes
checking for poll.h... (cached) yes
checking for sys/uio.h... (cached) yes
checking for sys/cdefs.h... (cached) yes
checking whether sys/cdefs.h is compatible... no
checking for __attribute__... (cached) no
checking whether byte ordering is bigendian... (cached) no
checking for working const... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for sys_siglist declaration in signal.h or unistd.h... (cached)
yes checking whether time.h and sys/time.h may both be included...
(cached) yes checking whether struct tm is in sys/time.h or time.h...
(cached) time.h checking return type of signal handlers... (cached) void
checking for vfork.h... (cached) no
checking for working vfork... (cached) yes
checking for vprintf... (cached) yes
checking for wait3 that fills in rusage... (cached) yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for getopt... (cached) yes
checking for putenv... (cached) yes
checking for select... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for setenv... (cached) yes
checking for getenv... (cached) yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for strftime... (cached) yes
checking for sigaction... (cached) yes
checking for sigvec... (cached) yes
checking for waitpid... (cached) yes
checking for wait4... (cached) yes
checking for wait3... (cached) yes
checking for getenv... (cached) yes
checking whether stat file-mode macros are broken... (cached) no
checking for st_rdev in struct stat... (cached) yes
Checking for MACHINE & MACHINE_ARCH... defaults: MACHINE=linux2,
MACHINE_ARCH=i686 Using: MACHINE=linux2, MACHINE_ARCH=i686
creating ./config.status
creating Makefile
creating makefile.boot
creating lst.lib/makefile.boot
creating config.h
config.h is unchanged

You can now run

	make -f makefile.boot bootstrap

to produce a fully functional bmake.  You can then use

	make -f makefile.boot install

for an initial installation.  If you already have macros installed 
you can use:

	./bmake -f Makefile

to install etc.

gcc -I. -I. -DHAVE_CONFIG_H  -I../libnbcompat -I./missing
-DNEED_HOST_CDEFS_H "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""
-DMAKE_BOOTSTRAP    -c -o compat.o compat.c ===> exited with status 2