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)
The following reply was made to PR pkg/56349; it has been noted by GNATS.
From: "Paul W. Rankin" <pwr%bydasein.com@localhost>
To: gnats-bugs%netbsd.org@localhost
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@localhost:
<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
Home |
Main Index |
Thread Index |
Old Index