On Tue, 2023-03-07 at 16:13 +0000, Mark Johnston wrote: > The branch main has been updated by markj: > > URL: > https://cgit.FreeBSD.org/src/commit/?id=cff4823804363cf199c7c87eed8870ad014066cc > > commit cff4823804363cf199c7c87eed8870ad014066cc > Author: Vitaliy Gusev <gusev.vita...@gmail.com> > AuthorDate: 2023-03-07 16:09:22 +0000 > Commit: Mark Johnston <ma...@freebsd.org> > CommitDate: 2023-03-07 16:09:22 +0000 > > bhyve: Move libcasper dependecy to lib9p > > libcasper(3) is not used in bhyve. So move dependency to the > appropriate > place. > > Reviewed by: markj > MFC after: 1 week > Sponsored by: vStack > Differential Revision: https://reviews.freebsd.org/D38905 > --- > lib/lib9p/Makefile | 5 +++-- > share/mk/src.libnames.mk | 4 ++++ > usr.sbin/bhyve/Makefile | 8 -------- > 3 files changed, 7 insertions(+), 10 deletions(-) > > diff --git a/lib/lib9p/Makefile b/lib/lib9p/Makefile > index c810ccd79e64..5d3681104d8c 100644 > --- a/lib/lib9p/Makefile > +++ b/lib/lib9p/Makefile > @@ -6,8 +6,11 @@ > CFLAGS+= -I${.CURDIR} > CFLAGS+= -I${.CURDIR}/../../contrib/lib9p > > +LIBADD= sbuf > + > .if ${MK_CASPER} != "no" > CFLAGS+= -DWITH_CASPER > +LIBADD+= casper cap_pwd cap_grp > .endif > > LIB= 9p > @@ -28,6 +31,4 @@ SRCS= connection.c \ > INCSDIR= ${INCLUDEDIR}/lib9p > INCS= fid.h lib9p.h backend/fs.h > > -LIBADD= sbuf > - > .include <bsd.lib.mk> > diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk > index dd1bc78b1f1a..15971189306a 100644 > --- a/share/mk/src.libnames.mk > +++ b/share/mk/src.libnames.mk > @@ -271,6 +271,10 @@ > LIBVERIEXEC?= ${LIBVERIEXECDIR}/libveriexec.a > # 2nd+ order consumers. Auto-generating this would be better. > _DP_80211= sbuf bsdxml > _DP_9p= sbuf > +.if ${MK_CASPER} != "no" > +_DP_9p+= casper cap_pwd cap_grp > +.endif > + > # XXX: Not bootstrapped so uses host version on non-FreeBSD, so > don't use a > # FreeBSD-specific dependency list > .if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) > diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile > index bf0a17edc59e..1c679a3c1578 100644 > --- a/usr.sbin/bhyve/Makefile > +++ b/usr.sbin/bhyve/Makefile > @@ -89,14 +89,6 @@ SRCS+= vmm_instruction_emul.c > > LIBADD= vmmapi md nv pthread z util sbuf cam 9p > > -.if ${MK_CASPER} != "no" > -LIBADD+= casper > -LIBADD+= cap_pwd > -LIBADD+= cap_grp > -# Temporary disable capsicum, until we integrate checkpoint code > with it. > -#CFLAGS+=-DWITH_CASPER > -.endif > - > .if ${MK_BHYVE_SNAPSHOT} != "no" > LIBADD+= ucl xo > .endif
Hi Mark, I do get build failures for my latest commits. The build log contains: /usr/local/bin/x86_64-unknown-freebsd13.1-ld: /tmp/obj/workspace/src/amd64.amd64/tmp/usr/lib/lib9p.so: undefined reference to `cap_setpassent' /usr/local/bin/x86_64-unknown-freebsd13.1-ld: /tmp/obj/workspace/src/amd64.amd64/tmp/usr/lib/lib9p.so: undefined reference to `cap_getgrgid_r' /usr/local/bin/x86_64-unknown-freebsd13.1-ld: /tmp/obj/workspace/src/amd64.amd64/tmp/usr/lib/lib9p.so: undefined reference to `cap_setgroupent' /usr/local/bin/x86_64-unknown-freebsd13.1-ld: /tmp/obj/workspace/src/amd64.amd64/tmp/usr/lib/lib9p.so: undefined reference to `cap_getpwnam' /usr/local/bin/x86_64-unknown-freebsd13.1-ld: /tmp/obj/workspace/src/amd64.amd64/tmp/usr/lib/lib9p.so: undefined reference to `cap_getpwuid_r' collect2: error: ld returned 1 exit status See https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/701/console It seems to be related to this commit. Any ideas how to fix it? -- Kind regards, Corvin
signature.asc
Description: This is a digitally signed message part