pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/56349 (devel/got: build failure on macOS)



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


Home | Main Index | Thread Index | Old Index