Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Building zsh/db/gdbm on MacOS Sequoia



> On 24/06/2026 17:15 BST Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> I recently updated XCode and installed gdbm from MacPorts in order to
> run the latest tests.  After enabling zsh/db/gdbm in config.modules
> with link=static I ran
>
> ./configure --enable-gdbm --disable-dynamic --enable-zsh-debug --enable-pcre
>
> Unfortunately even after running this, "make" does not add "-lgdbm" to
> the loader flags.  PCRE is also from ports, and it gets handled
> correctly.  I'm using
>
> make EXTRA_LDFLAGS=-lgdbm
>
> to avoid the link errors, but it seems like I shouldn't need to?  What
> did I miss?

The test is this:

if test x$gdbm != xno; then
  AC_CHECK_HEADERS(gdbm.h)
  AC_CHECK_LIB(gdbm, gdbm_open)
fi

I guess the search for gdbm_open failed somehow?  Is another library
also needed that isn't linked at this point?

pws




Messages sorted by: Reverse Date, Date, Thread, Author