NetBSD Problem Report #59002
From www@netbsd.org Fri Jan 17 14:55:05 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5B8F01A923A
for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Jan 2025 14:55:05 +0000 (UTC)
Message-Id: <20250117145501.F30F31A923B@mollari.NetBSD.org>
Date: Fri, 17 Jan 2025 14:55:01 +0000 (UTC)
From: thomholwerda@osnews.com
Reply-To: thomholwerda@osnews.com
To: gnats-bugs@NetBSD.org
Subject: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack of stdint.h
X-Send-Pr-Version: www-1.0
>Number: 59002
>Category: pkg
>Synopsis: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack of stdint.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 17 15:00:00 +0000 2025
>Last-Modified: Thu Feb 06 05:25:00 +0000 2025
>Originator: Thom Holwerda
>Release: 2024Q4
>Organization:
OSNews.com
>Environment:
HP-UX pain B.11.11 U 9000/785
>Description:
I'm running HP-UX 11i v1 (also known as 11.11) on PA-RISC (an HP c8000 workstation). All the latest possible patches are installed. As per the instructions here[1], I downloaded the latest stable pkgsrc tarball (2024Q4), and installed the GCC version as suggested in the pkgsrc README.HPUX, GCC 4.2.3 (available here[2]). I followed the instructions in the readme included in this GCC package (extract to /usr/local, run mkheaders). I also added /usr/local/gcc4/bin to PATH after installing.
When running "./bootstrap --abi 32 --compiler gcc", bootstrapping fails at compiling awk:
error: stdint.h: No such file or directory
I ran testbootstrap to get a bootstrap log (see below). Over on Fedi, Taylor R Campbell told me "lang/nawk sprouted a C99 dependency in an update a little over a year ago"[3], which seems to be the cause. HP-UX 11.11 doesn't support C99, hence the issue, and so here's this bug report.
Now, obviously HP-UX 11.11 on PA-RISC, of all architectures, isn't a massive priority and addressing this really shouldn't take precedent over more important bugfixes, but it would still be quite cool to have pkgsrc working on HP-UX. It would make using this machine I have here a hell of a lot easier if at least relatively simple packages in pkgsrc could be built. I'm guessing HP-UX 11.11 also isn't the only platform pkgsrc is available for that lacks C99. I'm not a developer so I don't know just how hard it would be to fix this issue, so I'm crossing my fingers hoping it's relatively easy.
[1] https://wiki.netbsd.org/pkgsrc/how_to_use_pkgsrc_on_hp-ux/
[2] https://cdn.netbsd.org/pub/pkgsrc/misc/tnn/
[3] https://mastodon.sdf.org/@riastradh/113842188906979693
-----
BOOTSTRAP.LOG
===> bootstrap command: ./bootstrap --prefix=/sw/pkgsrc/bootstrap/pkg --sysconfdir=/sw/pkgsrc/bootstrap/pkg/etc --pkgdbdir=/sw/pkgsrc/bootstrap/.db --ignore-user-check
===> bootstrap started: Fri, Jan 17, 2025 03:50:57 PM
Working directory is: /sw/pkgsrc/bootstrap/work
===> running: /bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' /sw/pkgsrc/sysutils/install-sh/files/install-sh.in > /sw/pkgsrc/bootstrap/work/bin/install-sh
===> running: /bin/chmod +x /sw/pkgsrc/bootstrap/work/bin/install-sh
===> building as unprivileged user root/sys
===> Creating default mk.conf in /sw/pkgsrc/bootstrap/work
===> running: /bin/sh /sw/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g sys /sw/pkgsrc/bootstrap/work/sbin
===> running: /bin/sh /sw/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g sys /sw/pkgsrc/bootstrap/work/share/mk
===> Bootstrapping mk-files
===> running: (cd /sw/pkgsrc/pkgtools/bootstrap-mk-files/files && env CP=/bin/cp OPSYS=HPUX MK_DST=/sw/pkgsrc/bootstrap/work/share/mk ROOT_GROUP=sys ROOT_USER=root SED=/bin/sed SYSCONFDIR=/sw/pkgsrc/bootstrap/pkg/etc /bin/sh ./bootstrap.sh)
===> Bootstrapping bmake
===> running: /bin/sh /sw/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g sys /sw/pkgsrc/bootstrap/work/bmake
===> running: (cd /sw/pkgsrc/bootstrap/work/bmake && /bin/sh configure --prefix=/sw/pkgsrc/bootstrap/work --with-default-sys-path=/sw/pkgsrc/bootstrap/work/share/mk --with-machine-arch=hppa )
checking whether system has timezone Europe/Berlin... no, using UTC-1
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... unsupported
checking for gcc option to enable C99 features... -std=gnu99
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for sys/time.h... yes
checking for vfork.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) unsupported
checking for gcc option to enable C99 features... (cached) -std=gnu99
checking for a BSD-compatible install... ./install-sh -c
Using: BMAKE_PATH_MAX=1023
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/param.h... yes
checking for sys/sysctl.h... no
checking for ar.h... yes
checking for err.h... no
checking for fcntl.h... yes
checking for libgen.h... yes
checking for limits.h... yes
checking for paths.h... no
checking for poll.h... yes
checking for ranlib.h... yes
checking for regex.h... yes
checking for sys/mman.h... yes
checking for sys/select.h... no
checking for sys/socket.h... yes
checking for sys/time.h... (cached) yes
checking for sys/uio.h... yes
checking for utime.h... yes
checking for sys/cdefs.h... no
checking for __attribute__... yes
checking whether byte ordering is bigendian... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int64_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uint32_t... yes
checking for gcc -std=gnu99 options needed to detect all undeclared functions... none needed
checking whether sys_siglist is declared... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sig_atomic_t... yes
checking for fork... yes
checking for vfork... yes
checking for vprintf... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for wait3 that fills in rusage... yes
checking for err... no
checking for errx... no
checking for getcwd... yes
checking for getenv... yes
checking for getwd... yes
checking for killpg... yes
checking for putenv... yes
checking for select... yes
checking for setenv... no
checking for setpgid... yes
checking for setrlimit... yes
checking for setsid... yes
checking for sigaddset... yes
checking for sigpending... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for sigsuspend... yes
checking for sigvec... no
checking for snprintf... yes
checking for strerror... yes
checking for stresep... no
checking for strftime... yes
checking for strsep... no
checking for strtod... yes
checking for strtol... yes
checking for strtoll... no
checking for strtoul... yes
checking for sysctl... no
checking for unsetenv... no
checking for vsnprintf... yes
checking for wait3... yes
checking for wait4... no
checking for waitpid... yes
checking for warn... no
checking for warnx... no
checking for getopt... yes
checking for realpath... yes
checking for dirname... yes
checking for sigaction... yes
checking for stresep... (cached) no
checking for strlcpy... no
checking for emalloc in -lutil... no
checking whether stat file-mode macros are broken... no
checking if compiler supports __func__
checking if diff -u works... no
checking for MACHINE & MACHINE_ARCH...
defaults: MACHINE=9000/785, MACHINE_ARCH=9000
Using: MACHINE=9000/785, MACHINE_ARCH=hppa
Using: MKSRC=${srcdir}/mk
configure: creating ./config.status
config.status: creating makefile
config.status: creating Makefile.config
config.status: creating unit-tests/Makefile.config
config.status: creating make-bootstrap.sh
config.status: creating config.h
You can now run
sh ./make-bootstrap.sh
to produce a fully functional bmake.
===> running: (cd /sw/pkgsrc/bootstrap/work/bmake && /bin/sh make-bootstrap.sh)
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -DMAKE_VERSION="20240909" -DMACHINE="9000/785" -DMACHINE_ARCH="hppa" -DMAKE_OS="" -D_PATH_DEFSYSPATH="/sw/pkgsrc/bootstrap/work/share/mk" -o main.o /sw/pkgsrc/bootstrap/work/bmake/main.c
/sw/pkgsrc/bootstrap/work/bmake/main.c: In function 'Main_SetObjdir':
/sw/pkgsrc/bootstrap/work/bmake/main.c:755: warning: implicit declaration of function 'setenv'
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o arch.o /sw/pkgsrc/bootstrap/work/bmake/arch.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o buf.o /sw/pkgsrc/bootstrap/work/bmake/buf.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o compat.o /sw/pkgsrc/bootstrap/work/bmake/compat.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o cond.o /sw/pkgsrc/bootstrap/work/bmake/cond.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o dir.o /sw/pkgsrc/bootstrap/work/bmake/dir.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o for.o /sw/pkgsrc/bootstrap/work/bmake/for.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o hash.o /sw/pkgsrc/bootstrap/work/bmake/hash.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o lst.o /sw/pkgsrc/bootstrap/work/bmake/lst.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o make.o /sw/pkgsrc/bootstrap/work/bmake/make.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o make_malloc.o /sw/pkgsrc/bootstrap/work/bmake/make_malloc.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o metachar.o /sw/pkgsrc/bootstrap/work/bmake/metachar.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o parse.o /sw/pkgsrc/bootstrap/work/bmake/parse.c
/sw/pkgsrc/bootstrap/work/bmake/parse.c: In function 'ParseGmakeExport':
/sw/pkgsrc/bootstrap/work/bmake/parse.c:2286: warning: implicit declaration of function 'setenv'
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o sigcompat.o /sw/pkgsrc/bootstrap/work/bmake/sigcompat.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o str.o /sw/pkgsrc/bootstrap/work/bmake/str.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o suff.o /sw/pkgsrc/bootstrap/work/bmake/suff.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o targ.o /sw/pkgsrc/bootstrap/work/bmake/targ.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o trace.o /sw/pkgsrc/bootstrap/work/bmake/trace.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o var.o /sw/pkgsrc/bootstrap/work/bmake/var.c
/sw/pkgsrc/bootstrap/work/bmake/var.c: In function 'Var_Delete':
/sw/pkgsrc/bootstrap/work/bmake/var.c:605: warning: implicit declaration of function 'unsetenv'
/sw/pkgsrc/bootstrap/work/bmake/var.c: In function 'ExportVarEnv':
/sw/pkgsrc/bootstrap/work/bmake/var.c:704: warning: implicit declaration of function 'setenv'
/sw/pkgsrc/bootstrap/work/bmake/var.c: In function 'num_val':
/sw/pkgsrc/bootstrap/work/bmake/var.c:3350: warning: implicit declaration of function 'strtoll'
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o util.o /sw/pkgsrc/bootstrap/work/bmake/util.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o stresep.o /sw/pkgsrc/bootstrap/work/bmake/stresep.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o strlcpy.o /sw/pkgsrc/bootstrap/work/bmake/strlcpy.c
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o meta.o /sw/pkgsrc/bootstrap/work/bmake/meta.c
/sw/pkgsrc/bootstrap/work/bmake/meta.c: In function 'meta_oodate':
/sw/pkgsrc/bootstrap/work/bmake/meta.c:1143: warning: implicit declaration of function 'err'
/sw/pkgsrc/bootstrap/work/bmake/meta.c:1165: warning: implicit declaration of function 'warnx'
gcc -std=gnu99 -c -g -O2 -I. -I/sw/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/sw/pkgsrc/bootstrap/work/bmake/missing -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1023 -o job.o /sw/pkgsrc/bootstrap/work/bmake/job.c
gcc -std=gnu99 -o bmake main.o job.o meta.o arch.o buf.o compat.o cond.o dir.o for.o hash.o lst.o make.o make_malloc.o metachar.o parse.o sigcompat.o str.o suff.o targ.o trace.o var.o util.o stresep.o strlcpy.o
===> running: /bin/sh /sw/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g sys -m 755 /sw/pkgsrc/bootstrap/work/bmake/bmake /sw/pkgsrc/bootstrap/work/bin/bmake
===> Building libnbcompat
===> running: /bin/sh /sw/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g sys /sw/pkgsrc/bootstrap/work/libnbcompat
===> running: (cd /sw/pkgsrc/bootstrap/work/libnbcompat; /bin/sh ./configure -C --prefix=/sw/pkgsrc/bootstrap/pkg --infodir=/sw/pkgsrc/bootstrap/pkg/info --mandir=/sw/pkgsrc/bootstrap/pkg/man --sysconfdir=/sw/pkgsrc/bootstrap/pkg/etc --enable-bsd-getopt --enable-db && /sw/pkgsrc/bootstrap/work/bin/bmake -j1)
configure: creating cache config.cache
checking build system type... hppa2.0w-hp-hpux11.11
checking host system type... hppa2.0w-hp-hpux11.11
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... unsupported
checking for gcc option to enable C99 features... -std=gnu99
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for sys/time.h... yes
checking for vfork.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... ./install-sh -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for ar... ar
checking for fparseln in -lutil... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for alloca.h... yes
checking for assert.h... yes
checking for bsd/libutil.h... no
checking for ctype.h... yes
checking for dirent.h... yes
checking for endian.h... no
checking for err.h... no
checking for errno.h... yes
checking for fcntl.h... yes
checking for fnmatch.h... yes
checking for fts.h... no
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking for libutil.h... no
checking for limits.h... yes
checking for machine/endian.h... no
checking for ndir.h... no
checking for netdb.h... yes
checking for paths.h... no
checking for pwd.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdint.h... (cached) no
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/byteorder.h... yes
checking for sys/cdefs.h... no
checking for sys/dir.h... yes
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/mkdev.h... no
checking for sys/ndir.h... no
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/statfs.h... no
checking for sys/statvfs.h... yes
checking for sys/time.h... (cached) yes
checking for sys/ttycom.h... no
checking for sys/types.h... (cached) yes
checking for sys/uio.h... yes
checking for sys/vfs.h... yes
checking for sysexits.h... yes
checking for termcap.h... no
checking for time.h... yes
checking for tzfile.h... no
checking for unistd.h... (cached) yes
checking for util.h... no
checking for utime.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for glob.h... yes
checking for sys/queue.h... no
checking for regex.h... yes
checking for regexec... yes
checking for va_copy... yes
checking for __builtin_va_copy... yes
checking for md5.h... no
checking for md5.h... (cached) no
checking for rmd160.h... no
checking for sha1.h... no
checking for sha2.h... no
checking for MD5File... no
checking for RMD160File... no
checking for SHA1File... no
checking for SHA512_File... no
checking for issetugid... no
checking for gcc -std=gnu99 options needed to detect all undeclared functions... none needed
checking whether optarg is declared... yes
checking whether optind is declared... yes
checking whether optreset is declared... no
checking for getopt.h... no
configure: Using included getopt and getopt_long
checking for vis.h... no
checking for __attribute__... yes
checking for size_t... yes
checking for uintptr_t... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for long long... yes
checking for long double... yes
checking for fsid_t... yes
checking whether byte ordering is bigendian... yes
checking size of off_t... 4
checking whether strerror_r is declared... no
checking whether strerror_r returns char *... no
checking for pid_t... yes
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether snprintf is declared... yes
checking whether asprintf is declared... no
checking whether strdup is declared... yes
checking whether isblank is declared... yes
checking for err... no
checking for fgetln... no
checking for fnmatch... yes
checking for fparseln... no
checking for getdelim... no
checking for getenv... yes
checking for getline... no
checking for lchflags... no
checking for lchmod... yes
checking for lchown... yes
checking for lutimes... no
checking for mkdtemp... no
checking for mkstemp... yes
checking for setenv... no
checking for setgroupent... no
checking for setpassent... no
checking for setprogname... no
checking for shquote... no
checking for statvfs... yes
checking for strerror... yes
checking for strlcat... no
checking for strlcpy... no
checking for strmode... no
checking for strsep... no
checking for strtoll... no
checking for unsetenv... no
checking for usleep... yes
checking for utimes... yes
checking for warn... no
checking for library containing socket... none required
checking for gethostbyname in -lnsl... yes
checking for socklen_t... yes
checking for struct addrinfo... yes
checking for struct in6_addr... no
checking for struct sockaddr_in6... no
checking for struct sockaddr_storage... no
checking for getnameinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getenv... (cached) yes
checking for setenv... (cached) no
checking for unsetenv... (cached) no
checking for mkdtemp... (cached) no
checking for mkstemp... (cached) yes
checking for setlocale... yes
checking for getmode... no
checking for setmode... no
checking for strnlen... no
checking for strndup... no
checking for memrchr... no
checking whether endgrent is declared... no
checking whether endpwent is declared... yes
checking whether setpassent is declared... no
checking for gid_from_group... no
checking for group_from_gid... no
checking for pwcache_groupdb... no
checking for pwcache_userdb... no
checking for uid_from_user... no
checking for user_from_uid... no
checking for fts_open... no
checking for timegm... no
checking for poll.h... yes
checking for sys/poll.h... yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for poll... yes
checking if poll() is implemented natively... yes
checking for getpassphrase... no
checking for getpgrp... yes
checking for select... yes
checking for getpgrp... (cached) yes
checking whether getpgrp requires zero arguments... yes
checking for struct statfs.f_flags... no
checking for struct statfs.f_fsize... no
checking for struct statfs.f_iosize... no
checking for struct dirent.d_namlen... yes
checking for DIR.dd_fd... yes
checking for dirfd... no
checking for *printf() support for %lld... yes
checking for strtoll... (cached) no
checking if vsnprintf is standards compliant... no
configure: updating cache config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
awk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c glob.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c md5c.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c md5hl.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c rmd160.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c rmd160hl.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c sha1.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c sha1hl.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c sha2.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c sha2hl.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c getopt.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c getopt_long.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c vis.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c unvis.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c asprintf.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c err.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c fgetln.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c fparseln.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c getdelim.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c getline.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c lchflags.c
lchflags.c: In function 'lchflags':
lchflags.c:55: warning: implicit declaration of function 'chflags'
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c lutimes.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c mkdtemp.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c setenv.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c setgroupent.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c setpassent.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c setprogname.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c shquote.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strlcat.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strlcpy.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strmode.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strsep.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strtoll.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c unsetenv.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c warn.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c findenv.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c gettemp.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c setmode.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strnlen.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c strndup.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c memrchr.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c pwcache.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c fts.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c timegm.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_close.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_conv.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_debug.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_delete.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_get.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_open.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_overflow.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_page.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_put.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_search.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_seq.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_split.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/btree/bt_utils.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/db/db.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/hash.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/hash_bigkey.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/hash_buf.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/hash_func.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/hash_log2.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/hash_page.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/ndbm.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/hash/ndbmdatum.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/mpool/mpool.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_close.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_delete.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_get.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_open.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_put.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_search.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_seq.c
gcc -std=gnu99 -D__DBINTERFACE_PRIVATE -I. -I. -g -O2 -DHAVE_CONFIG_H -c /sw/pkgsrc/bootstrap/work/libnbcompat/db/recno/rec_utils.c
ar cr libnbcompat.a glob.o md5c.o md5hl.o rmd160.o rmd160hl.o sha1.o sha1hl.o sha2.o sha2hl.o getopt.o getopt_long.o vis.o unvis.o asprintf.o err.o fgetln.o fparseln.o getdelim.o getline.o lchflags.o lutimes.o mkdtemp.o setenv.o setgroupent.o setpassent.o setprogname.o shquote.o strlcat.o strlcpy.o strmode.o strsep.o strtoll.o unsetenv.o warn.o findenv.o gettemp.o setmode.o strnlen.o strndup.o memrchr.o pwcache.o fts.o timegm.o bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o bt_open.o bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o bt_utils.o db.o hash.o hash_bigkey.o hash_buf.o hash_func.o hash_log2.o hash_page.o ndbm.o ndbmdatum.o mpool.o rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o rec_search.o rec_seq.o rec_utils.o
ranlib libnbcompat.a
===> Bootstrapping awk
===> running: /bin/sh /sw/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g sys /sw/pkgsrc/bootstrap/work/awk
===> running: (cd /sw/pkgsrc/bootstrap/work/awk && /sw/pkgsrc/bootstrap/work/bin/bmake -j1 -f Makefile CC="cc" CFLAGS="")
cc -c awkgram.tab.c
cpp: "awk.h", line 26: error 4036: Can't open include file 'stdint.h'.
*** [awkgram.tab.o] Error code 1
bmake: stopped making "a.out" in /sw/pkgsrc/bootstrap/work/awk
bmake: 1 error
bmake: stopped making "a.out" in /sw/pkgsrc/bootstrap/work/awk
===> exited with status 2
aborted.
-----
>How-To-Repeat:
1. Install HP-UX 11.11 incl. all patches on 64bit PA-RISC machine
2. Setup GCC as per pkgsrc instructions
3. Run ./bootstrap --abi 32 --compiler gcc
4. Fails at building awk due to lack of stdint.h
>Fix:
>Audit-Trail:
From: Taylor R Campbell <campbell@mumble.net>
To: thomholwerda@osnews.com
Cc: gnats-bugs@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack of stdint.h
Date: Fri, 17 Jan 2025 15:15:40 +0000
This is a multi-part message in MIME format.
--=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
Can you please try the attached patch?
--=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
Content-Type: text/plain; charset="ISO-8859-1"; name="pr59002-nawkc89"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="pr59002-nawkc89.patch"
>From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep 17 00:00:00 2001
From: Taylor R Campbell <riastradh@NetBSD.org>
Date: Fri, 17 Jan 2025 15:13:40 +0000
Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers.
No change to post-C99 compilers -- change is conditional on
__STDC_VERSION__ predating the C99 value.
PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
---
lang/nawk/files/awk.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lang/nawk/files/awk.h b/lang/nawk/files/awk.h
index ccd16c906f3a..d6dd0f160d9f 100644
--- a/lang/nawk/files/awk.h
+++ b/lang/nawk/files/awk.h
@@ -23,8 +23,17 @@ THIS SOFTWARE.
****************************************************************/
=20
#include <assert.h>
+#if __STDC_VERSION__ < 199901L
+typedef long intptr_t;
+typedef int bool;
+enum {
+ false =3D 0,
+ true =3D 1,
+};
+#else
#include <stdint.h>
#include <stdbool.h>
+#endif
#if __STDC_VERSION__ <=3D 199901L
#define noreturn
#else
--=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--
From: Thom Holwerda <thomholwerda@osnews.com>
To: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Cc: "pkg-manager@netbsd.org" <pkg-manager@netbsd.org>,
"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>, "pkgsrc-bugs@netbsd.org" <pkgsrc-bugs@netbsd.org>
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
Date: Sat, 18 Jan 2025 12:22:33 +0100
--000000000000633d2b062bf93e09
Content-Type: text/plain; charset="UTF-8"
The patch works, and gets us beyond awk. However, when bootstrap compiles
libarchive, it throws up the same error, so I think that one, too, needs
the same or at least similar patch.
Thom
On Friday, 17 January 2025, Taylor R Campbell via gnats <
gnats-admin@netbsd.org> wrote:
> The following reply was made to PR pkg/59002; it has been noted by GNATS.
>
> From: Taylor R Campbell <campbell@mumble.net>
> To: thomholwerda@osnews.com
> Cc: gnats-bugs@NetBSD.org, pkgsrc-bugs@NetBSD.org
> Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails
due to lack of stdint.h
> Date: Fri, 17 Jan 2025 15:15:40 +0000
>
> This is a multi-part message in MIME format.
> --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
>
> Can you please try the attached patch?
>
> --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
> Content-Type: text/plain; charset="ISO-8859-1"; name="pr59002-nawkc89"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: attachment; filename="pr59002-nawkc89.patch"
>
> >From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep 17 00:00:00 2001
> From: Taylor R Campbell <riastradh@NetBSD.org>
> Date: Fri, 17 Jan 2025 15:13:40 +0000
> Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers.
>
> No change to post-C99 compilers -- change is conditional on
> __STDC_VERSION__ predating the C99 value.
>
> PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
> to lack of stdint.h
> ---
> lang/nawk/files/awk.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/lang/nawk/files/awk.h b/lang/nawk/files/awk.h
> index ccd16c906f3a..d6dd0f160d9f 100644
> --- a/lang/nawk/files/awk.h
> +++ b/lang/nawk/files/awk.h
> @@ -23,8 +23,17 @@ THIS SOFTWARE.
> ****************************************************************/
> =20
> #include <assert.h>
> +#if __STDC_VERSION__ < 199901L
> +typedef long intptr_t;
> +typedef int bool;
> +enum {
> + false =3D 0,
> + true =3D 1,
> +};
> +#else
> #include <stdint.h>
> #include <stdbool.h>
> +#endif
> #if __STDC_VERSION__ <=3D 199901L
> #define noreturn
> #else
>
> --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--
>
>
--000000000000633d2b062bf93e09
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
The patch works, and gets us beyond awk. However, when bootstrap compiles l=
ibarchive, it throws up the same error, so I think that one, too, needs the=
same or at least similar patch.<br><br><br>Thom<br><br><br>On Friday, 17 J=
anuary 2025, Taylor R Campbell via gnats <<a href=3D"mailto:gnats-admin@=
netbsd.org">gnats-admin@netbsd.org</a>> wrote:<br>> The following rep=
ly was made to PR pkg/59002; it has been noted by GNATS.<br>><br>> Fr=
om: Taylor R Campbell <<a href=3D"mailto:campbell@mumble.net">campbell@m=
umble.net</a>><br>> To: <a href=3D"mailto:thomholwerda@osnews.com">th=
omholwerda@osnews.com</a><br>> Cc: gnats-bugs@NetBSD.org, pkgsrc-bugs@Ne=
tBSD.org<br>> Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.1=
1/PA-RISC fails due to lack of stdint.h<br>> Date: Fri, 17 Jan 2025 15:1=
5:40 +0000<br>><br>> =C2=A0This is a multi-part message in MIME forma=
t.<br>> =C2=A0--=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw<br>> =C2=A0<br>&=
gt; =C2=A0Can you please try the attached patch?<br>><br>> =C2=A0--=
=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw<br>> =C2=A0Content-Type: text/plain=
; charset=3D"ISO-8859-1"; name=3D"pr59002-nawkc89"<br>&=
gt; =C2=A0Content-Transfer-Encoding: quoted-printable<br>> =C2=A0Content=
-Disposition: attachment; filename=3D"pr59002-nawkc89.patch"<br>&=
gt;<br>> =C2=A0>From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep=
17 00:00:00 2001<br>> =C2=A0From: Taylor R Campbell <riastradh@NetBS=
D.org><br>> =C2=A0Date: Fri, 17 Jan 2025 15:13:40 +0000<br>> =C2=
=A0Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers=
.<br>><br>> =C2=A0No change to post-C99 compilers -- change is condit=
ional on<br>> =C2=A0__STDC_VERSION__ predating the C99 value.<br>><br=
>> =C2=A0PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails=
due<br>> =C2=A0to lack of stdint.h<br>> =C2=A0---<br>> =C2=A0 lan=
g/nawk/files/awk.h | 9 +++++++++<br>> =C2=A0 1 file changed, 9 insertion=
s(+)<br>><br>> =C2=A0diff --git a/lang/nawk/files/awk.h b/lang/nawk/f=
iles/awk.h<br>> =C2=A0index ccd16c906f3a..d6dd0f160d9f 100644<br>> =
=C2=A0--- a/lang/nawk/files/awk.h<br>> =C2=A0+++ b/lang/nawk/files/awk.h=
<br>> =C2=A0@@ -23,8 +23,17 @@ THIS SOFTWARE.<br>> =C2=A0 ***********=
*****************************************************/<br>> =C2=A0=3D20<=
br>> =C2=A0 #include <assert.h><br>> =C2=A0+#if __STDC_VERSION_=
_ < 199901L<br>> =C2=A0+typedef long intptr_t;<br>> =C2=A0+typedef=
int bool;<br>> =C2=A0+enum {<br>> =C2=A0+=C2=A0 =C2=A0 =C2=A0 false =
=3D3D 0,<br>> =C2=A0+=C2=A0 =C2=A0 =C2=A0 true =3D3D 1,<br>> =C2=A0+}=
;<br>> =C2=A0+#else<br>> =C2=A0 #include <stdint.h><br>> =C2=
=A0 #include <stdbool.h><br>> =C2=A0+#endif<br>> =C2=A0 #if __S=
TDC_VERSION__ <=3D3D 199901L<br>> =C2=A0 #define noreturn<br>> =C2=
=A0 #else<br>><br>> =C2=A0--=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--<br=
>><br>>
--000000000000633d2b062bf93e09--
From: nia <nia@NetBSD.org>
To: Thom Holwerda <thomholwerda@osnews.com>
Cc: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
Date: Sun, 19 Jan 2025 11:08:05 +0000
On Sat, Jan 18, 2025 at 12:22:33PM +0100, Thom Holwerda wrote:
> The patch works, and gets us beyond awk. However, when bootstrap compiles
> libarchive, it throws up the same error, so I think that one, too, needs
> the same or at least similar patch.
>
>
> Thom
>
What about this?
Index: bootstrap
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.325
diff -u -r1.325 bootstrap
--- bootstrap 29 Apr 2024 12:37:25 -0000 1.325
+++ bootstrap 19 Jan 2025 11:07:09 -0000
@@ -666,6 +666,8 @@
esac
;;
HPUX)
+ CFLAGS="-std=gnu99 ${CFLAGS}"
+ export CFLAGS
root_group=sys
need_bsd_install=yes
need_awk=yes
From: Thom Holwerda <thomholwerda@osnews.com>
To: nia <nia@netbsd.org>
Cc: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
Date: Sun, 19 Jan 2025 21:51:08 +0100
> What about this?
>
> Index: bootstrap
> ===================================================================
> RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
> retrieving revision 1.325
> diff -u -r1.325 bootstrap
> --- bootstrap 29 Apr 2024 12:37:25 -0000 1.325
> +++ bootstrap 19 Jan 2025 11:07:09 -0000
> @@ -666,6 +666,8 @@
> esac
> ;;
> HPUX)
> + CFLAGS="-std=gnu99 ${CFLAGS}"
> + export CFLAGS
> root_group=sys
> need_bsd_install=yes
> need_awk=yes
I tried it, but sadly, that patch does not seem to work. I tried both
combinations:
- nawk patch + bootstrap patch: fails at awk with stdint.h error (??)
- only bootstrap patch: fails at awk with stdint.h error
I'm considering adding the original nawk patch's ifdev wherever
bootstrap fails with the stdint.h error. Not being a programmer, that
might take me a bit longer than it would take someone who knows what
they're doing, but it doesn't seem too hard assuming the relevant
lines/includes are easy enough to spot.
My worry is that assuming I can get the bootstrap to complete
properly, I'll run into a neverending list of similar stdint.h issues,
but I'll cross that bridge when we get there! My HP-UX workstation's
hostname is "pain" for a reason.
Thom
From: Thom Holwerda <thom@thomholwerda.com>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack
of stdint.h
Date: Sun, 02 Feb 2025 23:48:11 +0100
I've managed to make a ton of progress with this issue, almost entirely tha=
nks to a set of modern header files created by vidraj, who posted them on G=
itHub for me:
https://gist.github.com/vidraj/2267181fd7d1fef8cdd6f834f5f40716
If I follow their instructions, and place the header files in the correct d=
irectories (*except* for stdlib.h, ignore that one), bootstrap will make it=
all the way to pkgtools (without any of the proposed patches from earlier =
in this thread), where it sadly errors out with a truly massive list of reg=
ex errors. The list is so long the ancient terminal in CDE only shows the v=
ery tail end of it:
=2D---
[~~terminal can't scroll back further than this~~]
while evaluating variable "USE_TOOLS" with value "sed [ awk dirname=
echo grep pwd sed test true date tr awk:pkgsrc cut:pkgsrc echo:pkgsrc pwd:=
pkgsrc sed:pkgsrc tr:pkgsrc uname:pkgsrc date date awk cat cmp diff echo=
find grep rm sed test touch true [ awk basename cat chgrp chmod chown cmp =
cp cut dirname echo egrep env false fgrep find grep head hostname id instal=
l ln ls mkdir mv printf pwd rm rmdir sed sh sort t=
ail test touch tr true wc xargs expr"
in /sw/pkgsrc/mk/bsd.pkg.mk:432
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/compiler/gcc.mk" line 335: Unexpected regex error: Pa=
ttern not found.
while evaluating variable "PATH" with value "/usr/pkg/bin:/usr/pkg/=
sbin::/usr/dt/bin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/sbin:/home/root:/op=
t/Migration/bin:/usr/vue/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/=
opt/ipf/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/b=
in:/opt/resmon/bin:/usr/contrib/bin/X11:/opt/pd/bin:/opt/gnome/bin:/opt/fir=
efox:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/op=
t/atok/bin:/opt/egb/bin:/usr/sbin/diag/contrib:/opt/vje/bin:/var/opt/netsca=
pe/servers/shared/bin:/var/opt/netscape/servers/bin/slapd/server:/var/opt/n=
etscape/servers/bin:/opt/hpsmh/bin:/opt/perl/bin:/opt/ssh/bin:/opt/java1.4/=
jre/bin:/opt/spb/bin:/opt/mx/bin:/opt/gwlm/bin:/opt/graphics/phigs/bin:/opt=
/aCC/bin:/opt/cadvise/bin:/opt/sentinel/bin:/opt/langtools/bin:/opt/imake/b=
in:/opt/thunderbird:/usr/local/gcc4/bin:/sbin/fs/vxfs3.5/bin:/opt/fortran90=
/bin:/opt/fortran90/contrib/bin:/opt/perf/bin:/opt/pascal/bin:/opt/perl_32/=
bin:/opt/perl_64/bin:/opt/prm/bin:/sbin:/usr/sbin:/usr/ccs/bin"
in .for loop from /sw/pkgsrc/mk/compiler.mk:212 with _compiler_ =3D=
gcc
in /sw/pkgsrc/mk/bsd.pkg.mk:448
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/pkgformat/pkg/metadata.mk" line 273: Unexpected regex=
error: Pattern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/pkgformat/pkg/pkgformat.mk:14
in /sw/pkgsrc/mk/pkgformat/bsd.pkgformat.mk:7
in /sw/pkgsrc/mk/bsd.pkg.mk:661
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/pkgformat/pkg/metadata.mk" line 276: Unexpected regex=
error: Pattern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/pkgformat/pkg/pkgformat.mk:14
in /sw/pkgsrc/mk/pkgformat/bsd.pkgformat.mk:7
in /sw/pkgsrc/mk/bsd.pkg.mk:661
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/plist/plist.mk" line 59: Unexpected regex error: Patt=
ern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/plist/bsd.plist.mk:6
in /sw/pkgsrc/mk/bsd.pkg.mk:832
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/plist/plist.mk" line 59: Unexpected regex error: Patt=
ern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/plist/bsd.plist.mk:6
in /sw/pkgsrc/mk/bsd.pkg.mk:832
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: Fatal errors encountered -- cannot continue
bmake: stopped making "install" in /sw/pkgsrc/pkgtools/bootstrap-mk-files
=3D=3D=3D> exited with status 1
aborted.
=2D--
Using testbootstrap to get a log fails (at the original awk issue), and I c=
an't find a relevant config.log anywhere else either. I've also tried passi=
ng --prefer-pkgsrc and/or --full, but with those passed it also ends at the=
same massive list of regex errors, which all seem to occur in .mk files in=
/pkgsrc/mk/ and its subdirectories.
So there's definitely progress. If anyone has any idea about the regex erro=
rs, that'd be great - perhaps if there's a fix for that, the pkgsrc/hppa do=
cs can maybe be edited to include information about the custom header files=
and where to get them.
Thanks!
Thom
On Sunday, 19 January 2025 21:55:01 Central European Standard Time Thom Hol=
werda via gnats wrote:
> The following reply was made to PR pkg/59002; it has been noted by GNATS.
>=20
> From: Thom Holwerda <thomholwerda@osnews.com>
> To: nia <nia@netbsd.org>
> Cc: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
> Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails=
due
> to lack of stdint.h
> Date: Sun, 19 Jan 2025 21:51:08 +0100
>=20
> > What about this?
> >
> > Index: bootstrap
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
> > retrieving revision 1.325
> > diff -u -r1.325 bootstrap
> > --- bootstrap 29 Apr 2024 12:37:25 -0000 1.325
> > +++ bootstrap 19 Jan 2025 11:07:09 -0000
> > @@ -666,6 +666,8 @@
> > esac
> > ;;
> > HPUX)
> > + CFLAGS=3D"-std=3Dgnu99 ${CFLAGS}"
> > + export CFLAGS
> > root_group=3Dsys
> > need_bsd_install=3Dyes
> > need_awk=3Dyes
> =20
> I tried it, but sadly, that patch does not seem to work. I tried both
> combinations:
> =20
> - nawk patch + bootstrap patch: fails at awk with stdint.h error (??)
> - only bootstrap patch: fails at awk with stdint.h error
> =20
> I'm considering adding the original nawk patch's ifdev wherever
> bootstrap fails with the stdint.h error. Not being a programmer, that
> might take me a bit longer than it would take someone who knows what
> they're doing, but it doesn't seem too hard assuming the relevant
> lines/includes are easy enough to spot.
> =20
> My worry is that assuming I can get the bootstrap to complete
> properly, I'll run into a neverending list of similar stdint.h issues,
> but I'll cross that bridge when we get there! My HP-UX workstation's
> hostname is "pain" for a reason.
> =20
> =20
> Thom
> =20
>=20
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
Date: Thu, 06 Feb 2025 00:21:32 -0500
Hi,
There are two different ways to look at this, as I see it. You
mentioned you aren't able to get a full error log. Please try using
script(1) to capture the full output to a log file. It should be
available on your HP-UX release (I recall using it on 11.-something-
or-other a long time ago). Just "script [logfile name]" then restart
the same build process as before, then "exit" the next time there's a
prompt, and there's your log file. (Which if huge in size would be
better posted somewhere other than NetBSD Gnats, perhaps.)
Having said that, I'm not sure we need to capture *everything* to
examine what you shared so far. On the surface, this seems a slightly
odd error to me. It doesn't help that the output from bmake doesn't
include the error code, and the mapping of string to code doesn't seem
to be publicly available. If it's not too much trouble, could you
please do the following?
1. Apply the patch below and recompile bmake, so we will get the
actual error code occurring (it can't be the normal "no match found",
represented by REG_NOMATCH, as that's already accounted for by
necessity).
2. Re-run the failing build step (probably using script, too).
3. Go to /usr/include/regex.h (or wherever it's found in your
installation), and find that actual value among the REG_* error codes
that (should be) found there. That should give us more of a clue what
it finds objectionable. You'd start looking for the numeric value I've
added in brackets to the error: find REG_NOMATCH and work down from
there in the header file to map the code backwards.
Index: var.c
===================================================================
RCS file: /cvsroot/pkgsrc/devel/bmake/files/var.c,v
retrieving revision 1.14
diff -u -r1.14 var.c
--- var.c 17 Sep 2024 11:52:27 -0000 1.14
+++ var.c 6 Feb 2025 05:05:55 -0000
@@ -1578,7 +1578,7 @@
size_t errlen = regerror(reerr, pat, NULL, 0);
char *errbuf = bmake_malloc(errlen);
regerror(reerr, pat, errbuf, errlen);
- Parse_Error(PARSE_FATAL, "%s: %s", str, errbuf);
+ Parse_Error(PARSE_FATAL, "%s: %s (%d)", str, errbuf, reerr);
free(errbuf);
}
(As I'm sure you know, it's kind of hard to support this stuff without
access to the environment. I used to work on HP-UX years ago, but it's
been a while.) Bootstrapping pkgsrc on HP-UX PA-RISC was reported to
work at one point. I don't see anything in the problem make code that
has changed appreciably over a long period of time.
I do have PA-RISC hardware myself (a B180L+), but it is running NetBSD.
I could try to follow part of your journey in parallel, but would only
hit a percentage of the same issues. (I do remember submitting patches
for individual packages breaking under PA-RISC some years ago, but
don't recall what they were now. Some projects have probably moved on
in coding assumptions since then.)
Regards,
Dave
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.