Content-Length: 206991 | pFad | http://github.com/heimdal/heimdal/issues/1263
42dbopen
autoconf check doesn't detect its presence when it's provided by libdb
#1263
Fetched URL: http://github.com/heimdal/heimdal/issues/1263
Alternative Proxies:
Describe the bug
On Linux, dbopen is not part of glibc. When compiling with
libdb
that has a compatibility layer fordbopen
,./configure
script fails to detect thatdbopen
is available. The output of the check is:This is because db5 defines dbopen as a macro,
And so it does not expose this as a dynamic library symbol:
But on Darwin, the check succeeds, since
dbopen
is provided as a native symbol inlibSystem
.I think the correct path is to fix autoconf check that should be able to detect the presence of
dbopen
macro even if there's no linker symbol for the same. This will allow to compile the v1 compat layer fromlib/hdb/db.c
etc. against db-5.This was spotted in nixpkgs when trying to understand why linux and darwin builds behave differently.
To Reproduce
Steps to reproduce the behavior:
nix-build -A heimdal
on the latest nixpkgs which will pulldb_185.h
fromlibdb
, among other things.config.log
thatdbopen
check returnedno
even though it's part of libdb C headers.Expected behavior
dbopen
is correctly detected. v1lib/hdb/db.c
layer is built.Nixpkgs patch where this is being handled / discussed: NixOS/nixpkgs#348370
The text was updated successfully, but these errors were encountered: