Re: On/for main [so: 15], ftp/curl 's config: "ld: error: unable to find library -lgssapi" (via poudriere-devel)

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 11 Aug 2025 06:37:43 UTC
On Aug 10, 2025, at 23:13, Herbert J. Skuhra <herbert@gojira.at> wrote:

> On Sun, Aug 10, 2025 at 10:31:16PM -0700, Mark Millard wrote:
>> For the most part my attempt to build my normal packages
>> has worked after my system and ports-tree upgrades.
>> 
>> But not ftp/curl . That, in turn, blocks a lot of other
>> packages from being built.
>> 
>> 
>> # ~/fbsd-based-on-what-commit.sh -C /usr/ports/
>> 78939953d5e7 (HEAD -> main, freebsd/main, freebsd/HEAD) databases/py-pg8000: Update to 1.31.4
>> Author:     Wen Heping <wen@FreeBSD.org>
>> Commit:     Wen Heping <wen@FreeBSD.org>
>> CommitDate: 2025-08-11 02:14:14 +0000
>> branch: main
>> merge-base: 78939953d5e7bfcdcbd3bccb789531be3637c6dc
>> merge-base: CommitDate: 2025-08-11 02:14:14 +0000
>> n715497 (--first-parent --count for merge-base)
>> 
>> # uname -apKU
>> FreeBSD 7950X3D-ZFS 15.0-PRERELEASE FreeBSD 15.0-PRERELEASE main-n279519-7a9834041c91 GENERIC-NODEBUG amd64 amd64 1500059 1500059
>> 
>> ftp/curl fails for:
>> 
>> configure:4974: checking whether the C compiler works
>> configure:4996: cc -I/usr/include -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -I/usr/include -I/usr/include -isystem /usr/local/include    -L/usr/lib -L/usr/l
>> ib -L/usr/local/lib  conftest.c -lkrb5 -lgssapi -lgssapi_krb5 -lkrb5 -lgssapi -lgssapi_krb5 >&5
>> ld: error: unable to find library -lgssapi
>> ld: error: unable to find library -lgssapi
>> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> 
> This was fixed in e38b33060387830da36ca834dee9365995fe06dc, wasn't it?


That change does not fix the content of the poudriere jail
world having the file missing that is in the test structure:

.if exists(/usr/libexec/krb5kdc)
MIT KRB5 HERE (includes e38b330603878 change)
.else
Heimdal KRB5 HERE (this is what is being used)
.endif

Overall e38b330603878 is necessary but not sufficient
for:

# poudriere jail -l
JAILNAME         VERSION      OSVERSION ARCH  METHOD  TIMESTAMP           PATH
. . .
main-amd64       15.0-CURRENT           amd64 pkgbase 2025-08-09 20:27:14 /usr/local/poudriere/jails/main-amd64
. . .

There ended up being no:

/usr/local/poudriere/jails/main-amd6/usr/libexec/krb5kdc


===
Mark Millard
marklmi at yahoo.com