Full_Name: Quanah Gibson-Mount Version: 2.4.46 OS: FreeBSD 11 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (47.208.148.239) When building OpenLDAP on FreeBSD where the fetch library is available, slapd picks up a dependency on libcom_err which shouldn't exist. This comes in from lines 934 and 944 of build/openldap.m4: 934 LIBS="-lfetch -lcom_err $LIBS" 944 ol_link_fetch="-lfetch -lcom_err" These should be updated appropriately and configure regenerated
quanah@openldap.org wrote: > Full_Name: Quanah Gibson-Mount > Version: 2.4.46 > OS: FreeBSD 11 > URL: ftp://ftp.openldap.org/incoming/ > Submission from: (NULL) (47.208.148.239) > > > When building OpenLDAP on FreeBSD where the fetch library is available, slapd > picks up a dependency on libcom_err which shouldn't exist. > > This comes in from lines 934 and 944 of build/openldap.m4: > 934 LIBS="-lfetch -lcom_err $LIBS" > 944 ol_link_fetch="-lfetch -lcom_err" > > These should be updated appropriately and configure regenerated Careful here. There may still be releases of FreeBSD that linked libfetch against com_err, for whatever reason. You'd need to check that libfetch exists, and then check that linking against libfetch by itself succeeds or fails. (And if it fails, put com_err back in and try again.) -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
Need to see if there are any supported versions of FreeBSD that still do this linking
This code was from 1999. FreeBSD dropped linking to libcom_err in May of 2000. https://github.com/freebsd/freebsd-src/commit/e5d7688f99046a4b3022e13701fd346f5328d6d4#diff-1f8e16bc23e21efde739b5a5352e78c8ec7d47a1622a65120ecad3ed69b059cc
https://git.openldap.org/openldap/openldap/-/merge_requests/350
Commits: • 59f8d06d by Quanah Gibson-Mount at 2021-06-24T15:01:51+00:00 ITS#8874 - Don't try and link in libcom_err with libfetch on FreeBSD
*** Issue 9724 has been marked as a duplicate of this issue. ***