panic% perl -V:libs
Here's an example:
libs='-lnet -lnsl_s -lgdbm -lndbm -ldb -ldld -lm -lc -lndir -lcrypt';
If -lgdbm or -ldb is before
-lndbm (as it is in the example), edit
Config.pm and move -lgdbm and
-ldb to the end of the list.
Here's how to find Config.pm:
panic% perl -MConfig -e 'print "$Config{archlibexp}/Config.pm\n"'
Under Solaris, another solution for building mod_perl- and
mod_auth_dbm-enabled Apache is to remove the DBM and NDBM
"emulation" from
libgdbm.a. It seems that Solaris already
provides its own DBM and NDBM, and in our installation we found
there's no reason to build GDBM with them.
In our Makefile for GDBM, we changed:
OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF)
to:
OBJS = $(GDBM_OF)
Then rebuild libgdbm before building
mod_perl-enabled Apache.