Re: Building zsh/db/gdbm on MacOS Sequoia

Bart Schaefer <[email protected]> Wed, 24 Jun 2026 10:46:34 -0700
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7ZtmCnY7FZGMmXX7bBKAtp06ogaj9-T3pFRnU=RydLg8Q@mail.gmail.com>
On Wed, Jun 24, 2026 at 9:30 AM Peter Stephenson
<[email protected]> wrote:
>
> I guess the search for gdbm_open failed somehow?  Is another library
> also needed that isn't linked at this point?

checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... no

Hmm, config.log:

configure:7174: gcc -o conftest  -Wall -Wmissing-prototypes -ggdb
-I/opt/local/include  -g conftest.c -lgdbm   >&5
ld: library 'gdbm' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:7174: $? = 1

I should have looked for that before, but it remains unclear why it
fails to find the library.