NetBSD Problem Report #56349

From www@netbsd.org  Thu Aug  5 06:04:33 2021
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 523021A921F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Aug 2021 06:04:33 +0000 (UTC)
Message-Id: <20210805060431.32CD61A923B@mollari.NetBSD.org>
Date: Thu,  5 Aug 2021 06:04:31 +0000 (UTC)
From: pwr@bydasein.com
Reply-To: pwr@bydasein.com
To: gnats-bugs@NetBSD.org
Subject: devel/got: build failure on macOS
X-Send-Pr-Version: www-1.0

>Number:         56349
>Category:       pkg
>Synopsis:       devel/got: build failure on macOS
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 05 06:05:00 +0000 2021
>Last-Modified:  Sat Aug 21 06:40:01 +0000 2021
>Originator:     Paul W. Rankin
>Release:        commit b91f9ceda54844d634c3228e081ff692703ab823 (HEAD -> joyent/release/macos, origin/joyent/release/macos)
>Organization:
>Environment:
Darwin nostromo.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64

>Description:
The devel/got package encounters the following build failure of macOS:

$ bmake install
=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for got-0.48.tar.gz
=> Checksum RMD160 OK for got-0.48.tar.gz
=> Checksum SHA512 OK for got-0.48.tar.gz
===> Installing dependencies for got-0.48
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency ncursesw>=6.0: found ncursesw-6.2
===> Checking for vulnerabilities in got-0.48
===> Overriding tools for got-0.48
===> Extracting for got-0.48
===> Patching for got-0.48
=> Applying pkgsrc patches for got-0.48
/usr/bin/find /opt/pkgsrc/devel/got/work/got-0.48 -name '*.[cy]' -exec  /opt/pkg/bin/nawk '/^#include /{c += 1;}  c == 1 {  gsub("(^#include )", "#include \"openbsd-compat.h\"\n&", $0)  }  {print $0 > "{}.back"}  '  {} \;
/usr/bin/find /opt/pkgsrc/devel/got/work/got-0.48 -name '*.[cy]' -exec  cp {}.back {} \;
/bin/cp -r /opt/pkgsrc/devel/got/files/openbsd-compat /opt/pkgsrc/devel/got/work/got-0.48/
===> Creating toolchain wrappers for got-0.48
===> Configuring for got-0.48
===> Building for got-0.48
all ===> openbsd-compat
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c freezero.c
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC freezero.c -o freezero.so
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c getdtablecount.c
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC getdtablecount.c -o getdtablecount.so
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg-buffer.c
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC imsg-buffer.c -o imsg-buffer.so
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg.c
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC imsg.c -o imsg.so
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c open.c
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC open.c -o open.so
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c recallocarray.c
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC recallocarray.c -o recallocarray.so
building standard openbsd-compat library
ar -c -q libopenbsd-compat.a `NM=nm lorder freezero.o getdtablecount.o imsg.o imsg-buffer.o open.o recallocarray.o | tsort -q`
ranlib libopenbsd-compat.a
building shared object openbsd-compat library
ar -c -q libopenbsd-compat_pic.a `NM=nm lorder freezero.so getdtablecount.so imsg.so imsg-buffer.so open.so recallocarray.so | tsort -q`
ranlib libopenbsd-compat_pic.a
all ===> libexec
all ===> libexec/got-read-blob
clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat -Wno-pointer-sign   -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c got-read-blob.c
In file included from got-read-blob.c:30:
/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:4:10: fatal error: 'sha.h' file not found
#include <sha.h>
         ^~~~~~~
1 error generated.
*** Error code 1

Stop.
bmake[2]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/devel/got
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/got

>How-To-Repeat:
1. cd ${PKGSRC_DIR}/devel/got
2. bmake install

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Thu, 05 Aug 2021 09:33:10 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "Paul W. Rankin" <pwr@bydasein.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56349 (devel/got: build failure on macOS)
Date: Sun, 08 Aug 2021 12:52:53 +1000

 Some possibly helpful info from #gameoftrees@libera.chat:


 <CyberTailor> it needs libmd
 <rnkn> CyberTailor: sorry is that re the pkgsrc failure?
 <CyberTailor> rnkn: yes, i suspect a missing dependency
 <CyberTailor> it's in libc of NetBSD and OpenBSD but other systems need 
 it as a separate library


 Apparently libmd is available in macOS, but needs to be included with 
 `-lmd`. This provides some progress, with the next build error:


 $ bmake CFLAGS+='-lmd' install
 => Bootstrap dependency digest>=20010302: found digest-20190127
 => Checksum SHA1 OK for got-0.48.tar.gz
 => Checksum RMD160 OK for got-0.48.tar.gz
 => Checksum SHA512 OK for got-0.48.tar.gz
 ===> Installing dependencies for got-0.48
 => Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
 => Build dependency cwrappers>=20150314: found cwrappers-20180325
 => Full dependency ncursesw>=6.0: found ncursesw-6.2
 ===> Checking for vulnerabilities in got-0.48
 ===> Overriding tools for got-0.48
 ===> Extracting for got-0.48
 ===> Patching for got-0.48
 => Applying pkgsrc patches for got-0.48
 /usr/bin/find /opt/pkgsrc/devel/got/work/got-0.48 -name '*.[cy]' -exec  
 /opt/pkg/bin/nawk '/^#include /{c += 1;}  c == 1 {  gsub("(^#include )", 
 "#include \"openbsd-compat.h\"\n&", $0)  }  {print $0 > "{}.back"}  '  
 {} \;
 /usr/bin/find /opt/pkgsrc/devel/got/work/got-0.48 -name '*.[cy]' -exec  
 cp {}.back {} \;
 /bin/cp -r /opt/pkgsrc/devel/got/files/openbsd-compat 
 /opt/pkgsrc/devel/got/work/got-0.48/
 ===> Creating toolchain wrappers for got-0.48
 ===> Configuring for got-0.48
 ===> Building for got-0.48
 all ===> openbsd-compat
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c freezero.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC freezero.c -o freezero.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c getdtablecount.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC getdtablecount.c -o getdtablecount.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c imsg-buffer.c
 imsg-buffer.c:30:10: error: 'openbsd-compat.h' file not found with 
 <angled> include; use "quotes" instead
 #include <openbsd-compat.h>
           ^~~~~~~~~~~~~~~~~~
           "openbsd-compat.h"
 1 error generated.
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got


 Following this, I tried changing all 
 s/<openbsd-compat.h>/"openbsd-compat.h"/ but then hit a more puzzling 
 build error:


 $ bmake CFLAGS+='-lmd' install
 => Bootstrap dependency digest>=20010302: found digest-20190127
 ===> Checking for vulnerabilities in got-0.48
 ===> Building for got-0.48
 all ===> openbsd-compat
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c freezero.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC freezero.c -o freezero.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c getdtablecount.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC getdtablecount.c -o getdtablecount.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c imsg-buffer.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC imsg-buffer.c -o imsg-buffer.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c imsg.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC imsg.c -o imsg.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c open.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC open.c -o open.so
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c recallocarray.c
 clang -lmd -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -c -fPIC -DPIC recallocarray.c -o recallocarray.so
 building standard openbsd-compat library
 ar -c -q libopenbsd-compat.a `NM=nm lorder freezero.o getdtablecount.o 
 imsg.o imsg-buffer.o open.o recallocarray.o | tsort -q`
 ranlib libopenbsd-compat.a
 building shared object openbsd-compat library
 ar -c -q libopenbsd-compat_pic.a `NM=nm lorder freezero.so 
 getdtablecount.so imsg.so imsg-buffer.so open.so recallocarray.so | 
 tsort -q`
 ranlib libopenbsd-compat_pic.a
 all ===> libexec
 all ===> libexec/got-read-blob
 clang -lmd 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c got-read-blob.c
 got-read-blob.c:17:10: fatal error: 'openbsd-compat.h' file not found
 #include "openbsd-compat.h"
           ^~~~~~~~~~~~~~~~~~
 1 error generated.
 *** Error code 1

 Stop.
 bmake[2]: stopped in 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56349 (devel/got: build failure on macOS)
Date: Sun, 8 Aug 2021 18:09:16 +0000

 On Sun, Aug 08, 2021 at 02:55:01AM +0000, Paul W. Rankin wrote:
  >  Apparently libmd is available in macOS, but needs to be included with 
  >  `-lmd`. This provides some progress, with the next build error:
  >  
  >  $ bmake CFLAGS+='-lmd' install
             ^^^^^^^^^^^^^^

 Don't do that. In addition to CFLAGS being the wrong variable (you
 wanted LIBS), setting it on the make command like like that breaks the
 pkgsrc and package logic that manipulates it and produces the build
 failure you then saw.

 Instead put LIBS.Darwin+= -lmd in the pkgsrc makefile.

 (It seems to still be "Darwin", not "MacOS"...)

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Paul W. Rankin" <pwr@bydasein.com>
To: gnats-bugs@netbsd.org
Cc: ryoon@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/56349 (devel/got: build failure on macOS)
Date: Mon, 09 Aug 2021 12:05:54 +1000

 On 2021-08-09 04:10, David Holland wrote:
 >  Instead put LIBS.Darwin+= -lmd in the pkgsrc makefile.

 Thanks! Some progress has been had...

      echo 'LIBS.Darwin+= -lmd' >> devel/got/Makefile

 And a new/different build failure:


 $ bmake install
 => Bootstrap dependency digest>=20010302: found digest-20190127
 => Checksum SHA1 OK for got-0.48.tar.gz
 => Checksum RMD160 OK for got-0.48.tar.gz
 => Checksum SHA512 OK for got-0.48.tar.gz
 ===> Installing dependencies for got-0.48
 => Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
 => Build dependency cwrappers>=20150314: found cwrappers-20180325
 => Full dependency ncursesw>=6.0: found ncursesw-6.2
 ===> Checking for vulnerabilities in got-0.48
 ===> Overriding tools for got-0.48
 ===> Extracting for got-0.48
 ===> Patching for got-0.48
 => Applying pkgsrc patches for got-0.48
 /usr/bin/find /opt/pkgsrc/devel/got/work/got-0.48 -name '*.[cy]' -exec  
 /opt/pkg/bin/nawk '/^#include /{c += 1;}  c == 1 {  gsub("(^#include )", 
 "#include \"openbsd-compat.h\"\n&", $0)  }  {print $0 > "{}.back"}  '  
 {} \;
 /usr/bin/find /opt/pkgsrc/devel/got/work/got-0.48 -name '*.[cy]' -exec  
 cp {}.back {} \;
 /bin/cp -r /opt/pkgsrc/devel/got/files/openbsd-compat 
 /opt/pkgsrc/devel/got/work/got-0.48/
 ===> Creating toolchain wrappers for got-0.48
 ===> Configuring for got-0.48
 ===> Building for got-0.48
 all ===> openbsd-compat
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c freezero.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC freezero.c 
 -o freezero.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c getdtablecount.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 getdtablecount.c -o getdtablecount.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg-buffer.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 imsg-buffer.c -o imsg-buffer.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC imsg.c -o 
 imsg.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c open.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC open.c -o 
 open.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c recallocarray.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 recallocarray.c -o recallocarray.so
 building standard openbsd-compat library
 ar -c -q libopenbsd-compat.a `NM=nm lorder freezero.o getdtablecount.o 
 imsg.o imsg-buffer.o open.o recallocarray.o | tsort -q`
 ranlib libopenbsd-compat.a
 building shared object openbsd-compat library
 ar -c -q libopenbsd-compat_pic.a `NM=nm lorder freezero.so 
 getdtablecount.so imsg.so imsg-buffer.so open.so recallocarray.so | 
 tsort -q`
 ranlib libopenbsd-compat_pic.a
 all ===> libexec
 all ===> libexec/got-read-blob
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat 
 -Wno-pointer-sign   
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c got-read-blob.c
 In file included from got-read-blob.c:30:
 In file included from 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:4:
 /usr/local/include/sha.h:36:9: error: unknown type name 'SHA1_CTX'
 typedef SHA1_CTX SHA_CTX;
          ^
 In file included from got-read-blob.c:39:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_object.h:18:16: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          u_int8_t sha1[SHA1_DIGEST_LENGTH];
                        ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:175:13: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t id[SHA1_DIGEST_LENGTH];
                     ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:188:18: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t tree_id[SHA1_DIGEST_LENGTH];
                          ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:213:10: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          char id[SHA1_DIGEST_LENGTH];
                  ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:240:13: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t id[SHA1_DIGEST_LENGTH];
                     ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:260:13: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t id[SHA1_DIGEST_LENGTH];
                     ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:309:16: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t refid[SHA1_DIGEST_LENGTH];
                        ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:321:20: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t pack_hash[SHA1_DIGEST_LENGTH];
                            ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:356:13: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t id[SHA1_DIGEST_LENGTH];
                     ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 In file included from got-read-blob.c:41:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/got_lib_privsep.h:362:13: 
 error: use of undeclared identifier 'SHA1_DIGEST_LENGTH'
          uint8_t id[SHA1_DIGEST_LENGTH];
                     ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:6:29: 
 note: expanded from macro 'SHA1_DIGEST_LENGTH'
 #define SHA1_DIGEST_LENGTH              SHA_DIGEST_LENGTH
                                          ^
 /usr/local/include/sha.h:34:27: note: expanded from macro 
 'SHA_DIGEST_LENGTH'
 #define SHA_DIGEST_LENGTH       SHA1_DIGEST_LENGTH
                                  ^
 11 errors generated.
 *** Error code 1

 Stop.
 bmake[2]: stopped in 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got


 >  (It seems to still be "Darwin", not "MacOS"...)

 This makes sense to me, as uname -s returns Darwim

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56349 (devel/got: build failure on macOS)
Date: Wed, 11 Aug 2021 04:27:49 +0000

 On Mon, Aug 09, 2021 at 02:10:01AM +0000, Paul W. Rankin wrote:
  >  In file included from 
  >  /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:4:
  >  /usr/local/include/sha.h:36:9: error: unknown type name 'SHA1_CTX'
  >  typedef SHA1_CTX SHA_CTX;
  >           ^

 Looks like the sha1.h in openbsd-compat doesn't work. As a quick hack,
 try just deleting it before building. (That is, make patch, rm
 work/got-0.48/openbsd-compat/sha1.h, make.)

 My guess from the error is that /usr/local/include/sha.h expects to be
 using some sha1.h of its own that the "compat" version is hiding.

  > >  (It seems to still be "Darwin", not "MacOS"...)
  >  
  >  This makes sense to me, as uname -s returns Darwim

 Yeah, but since everyone calls it "MacOS" (or is it "macOS"?) and we
 went through some time back and changed most of the references to the
 name accordingly, it's confusing.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Paul W. Rankin" <pwr@bydasein.com>
To: gnats-bugs@netbsd.org
Cc: ryoon@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/56349 (devel/got: build failure on macOS)
Date: Mon, 16 Aug 2021 23:53:18 +1000

 Sorry for the delay.

 On 2021-08-11 14:30, David Holland wrote:
 > 
 >  Looks like the sha1.h in openbsd-compat doesn't work. As a quick hack,
 >  try just deleting it before building. (That is, make patch, rm
 >  work/got-0.48/openbsd-compat/sha1.h, make.)
 > 
 >  My guess from the error is that /usr/local/include/sha.h expects to be
 >  using some sha1.h of its own that the "compat" version is hiding.

 Okay so this is the build failure for `bmake patch; rm 
 work/got-0.48/openbsd-compat/sha1.h; bmake`:
 (both with/without `LIBS.Darwin+= -lmd` is the same)

 $ bmake
 => Bootstrap dependency digest>=20010302: found digest-20190127
 ===> Checking for vulnerabilities in got-0.48
 ===> Creating toolchain wrappers for got-0.48
 ===> Configuring for got-0.48
 ===> Building for got-0.48
 all ===> openbsd-compat
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c freezero.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC freezero.c 
 -o freezero.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c getdtablecount.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 getdtablecount.c -o getdtablecount.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg-buffer.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 imsg-buffer.c -o imsg-buffer.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC imsg.c -o 
 imsg.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c open.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC open.c -o 
 open.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c recallocarray.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 recallocarray.c -o recallocarray.so
 building standard openbsd-compat library
 ar -c -q libopenbsd-compat.a `NM=nm lorder freezero.o getdtablecount.o 
 imsg.o imsg-buffer.o open.o recallocarray.o | tsort -q`
 ranlib libopenbsd-compat.a
 building shared object openbsd-compat library
 ar -c -q libopenbsd-compat_pic.a `NM=nm lorder freezero.so 
 getdtablecount.so imsg.so imsg-buffer.so open.so recallocarray.so | 
 tsort -q`
 ranlib libopenbsd-compat_pic.a
 all ===> libexec
 all ===> libexec/got-read-blob
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat 
 -Wno-pointer-sign   
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c got-read-blob.c
 In file included from got-read-blob.c:30:
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat/sha1.h:4:10: 
 fatal error: 'sha.h' file not found
 #include <sha.h>
           ^~~~~~~
 1 error generated.
 *** Error code 1

 Stop.
 bmake[2]: stopped in 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got


 But there's some progress after installing libmd from 
 https://github.com/guillemj/libmd:


 $ bmake
 => Bootstrap dependency digest>=20010302: found digest-20190127
 ===> Checking for vulnerabilities in got-0.48
 ===> Creating toolchain wrappers for got-0.48
 ===> Configuring for got-0.48
 ===> Building for got-0.48
 all ===> openbsd-compat
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c freezero.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC freezero.c 
 -o freezero.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c getdtablecount.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 getdtablecount.c -o getdtablecount.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg-buffer.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 imsg-buffer.c -o imsg-buffer.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC imsg.c -o 
 imsg.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c open.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC open.c -o 
 open.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c recallocarray.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 recallocarray.c -o recallocarray.so
 building standard openbsd-compat library
 ar -c -q libopenbsd-compat.a `NM=nm lorder freezero.o getdtablecount.o 
 imsg.o imsg-buffer.o open.o recallocarray.o | tsort -q`
 ranlib libopenbsd-compat.a
 building shared object openbsd-compat library
 ar -c -q libopenbsd-compat_pic.a `NM=nm lorder freezero.so 
 getdtablecount.so imsg.so imsg-buffer.so open.so recallocarray.so | 
 tsort -q`
 ranlib libopenbsd-compat_pic.a
 all ===> libexec
 all ===> libexec/got-read-blob
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat 
 -Wno-pointer-sign   
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c got-read-blob.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat 
 -Wno-pointer-sign   
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c:28:10: 
 fatal error: 'uuid.h' file not found
 #include <uuid.h>
           ^~~~~~~~
 1 error generated.
 *** Error code 1

 Stop.
 bmake[2]: stopped in 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got


 This seems odd, because uuid.h is present at a number of places:

 $ locate uuid.h
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/uuid/uuid.h
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/uuid/uuid.h
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/uuid/uuid.h
 /opt/pkg/include/jack/uuid.h
 /opt/pkg/include/uuid/uuid.h
 /opt/pkgsrc/fonts/fontconfig/files/uuid.h


 >   > >  (It seems to still be "Darwin", not "MacOS"...)
 >   >
 >   >  This makes sense to me, as uname -s returns Darwin  ***
 > 
 >  Yeah, but since everyone calls it "MacOS" (or is it "macOS"?) and we
 >  went through some time back and changed most of the references to the
 >  name accordingly, it's confusing.

 Yeah but Apple seems to want to change the name of its OS every few 
 years, so I think it's less confusing to just call this "the output of 
 uname -s". At least that stays consistent.

From: "Paul W. Rankin" <pwr@bydasein.com>
To: gnats-bugs@netbsd.org
Cc: ryoon@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/56349 (devel/got: build failure on macOS)
Date: Sat, 21 Aug 2021 16:37:20 +1000

 In my continued quixotic attempt to get devel/got building on macOS, I 
 have perhaps another useful build failure.

 First dealing with our previous errors...

 $ cd /opt/pkgsrc/devel/got
 $ bmake patch
 $ cp ~/Developer/libmd/include/sha1.h work/got-0.48/openbsd-compat/
 $ cp /opt/pkg/include/uuid/uuid.h work/got-0.48/openbsd-compat/


 then the build...

 $ bmake
 => Bootstrap dependency digest>=20010302: found digest-20190127
 ===> Checking for vulnerabilities in got-0.48
 ===> Creating toolchain wrappers for got-0.48
 ===> Configuring for got-0.48
 ===> Building for got-0.48
 all ===> openbsd-compat
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c freezero.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC freezero.c 
 -o freezero.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c getdtablecount.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 getdtablecount.c -o getdtablecount.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg-buffer.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 imsg-buffer.c -o imsg-buffer.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c imsg.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC imsg.c -o 
 imsg.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c open.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC open.c -o 
 open.so
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c recallocarray.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat 
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= 
 -I/opt/pkgsrc/devel/got/work/got-0.48/openbsd-compat/../openbsd-compat 
 -Wno-pointer-sign -Werror -Wall -Wstrict-prototypes -Wunused-variable   
 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 -DGOT_LIBEXECDIR=/opt/pkg/bin -DGOT_VERSION= -c -fPIC -DPIC 
 recallocarray.c -o recallocarray.so
 building standard openbsd-compat library
 ar -c -q libopenbsd-compat.a `NM=nm lorder freezero.o getdtablecount.o 
 imsg.o imsg-buffer.o open.o recallocarray.o | tsort -q`
 ranlib libopenbsd-compat.a
 building shared object openbsd-compat library
 ar -c -q libopenbsd-compat_pic.a `NM=nm lorder freezero.so 
 getdtablecount.so imsg.so imsg-buffer.so open.so recallocarray.so | 
 tsort -q`
 ranlib libopenbsd-compat_pic.a
 all ===> libexec
 all ===> libexec/got-read-blob
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat 
 -Wno-pointer-sign   
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c got-read-blob.c
 clang -pipe -Os -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include 
 -I/opt/pkg/include/ncurses 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../openbsd-compat 
 -Wno-pointer-sign   
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../include 
 -I/opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib 
 -DGOT_LIBEXECDIR=/opt/pkg/libexec -DGOT_VERSION=0.48 -c 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c:204:7: 
 error: use of undeclared identifier 'uuid_s_ok'
          case uuid_s_ok:
               ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c:206:7: 
 error: use of undeclared identifier 'uuid_s_bad_version'
          case uuid_s_bad_version:
               ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c:208:7: 
 error: use of undeclared identifier 'uuid_s_invalid_string_uuid'
          case uuid_s_invalid_string_uuid:
               ^
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob/../../lib/error.c:210:7: 
 error: use of undeclared identifier 'uuid_s_no_memory'
          case uuid_s_no_memory:
               ^
 4 errors generated.
 *** Error code 1

 Stop.
 bmake[2]: stopped in 
 /opt/pkgsrc/devel/got/work/got-0.48/libexec/got-read-blob
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got/work/got-0.48/libexec
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got/work/got-0.48
 *** Error code 1

 Stop.
 bmake[1]: stopped in /opt/pkgsrc/devel/got
 *** Error code 1

 Stop.
 bmake: stopped in /opt/pkgsrc/devel/got

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.