Re: "DSO load failed" when using mod_authn_dbm for Berkeley DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



btw, after such diagnosis efforts, I really feel the logs need to be improved. It's so misleading right now. Look at the *only* error message,

[Thu May 05 18:12:29.915467 2016] [authn_dbm:error] [pid 9107:tid 140031532377856] (20019)DSO load failed: [client 127.0.0.1:54442] AH01754: could not open dbm (type DB) auth file: /home/tixu/httpd-2.4.20-bin/dbm-auth-file

It tells that the auth file cannot be opened. That's all the confusion...

But it has nothing to do with the auth file. The error is caused by the failure of loading the DSO... At least, httpd should print out the DSO file it tried to load!

~t


On Fri, May 13, 2016 at 4:22 PM, Tianyin Xu <tixu@xxxxxxxxxxx> wrote:
Hi Yann and Luca, 

Yes, that fixes the problem...!!..

$ ls lib/apr-util-1/
apr_dbm_db-1.so  apr_dbm_db.a  apr_dbm_db.la  apr_dbm_db.so

It's hard to believe --with-berkeley-db is even not present in "./configure --help"! 

@Luca, you are the maintainer of the httpd docs? The page of mod_authn_dbm really needs some more work.:-p

~t



On Fri, May 13, 2016 at 3:41 PM, Luca Toscano <toscano.luca@xxxxxxxxx> wrote:
Hi Yann,

2016-05-13 22:35 GMT+02:00 Yann Ylavic <ylavic.dev@xxxxxxxxx>:
On Thu, May 12, 2016 at 10:22 PM, Tianyin Xu <tixu@xxxxxxxxxxx> wrote:
>
> I'm using all the latest versions of httpd, apr, and apr-util:
> httpd-2.4.20
> apr-1.5.2
> apr-util-1.5.4
>
> and I build the binaries using,
> $ ./configure --with-included-apr --enable-load-all-modules
>
> It seems I failed to build "apr-util-1/apr_dbm_db-1.so"? Actually I don't
> have the "apr-util-1" directory at all.

You may need to install the package libdb-dev (or libdb-devel) on your
system and then use --with-berkeley-db in the ./configure above.

Quick question: I didn't find the --with-berkeley-db option executing httpd's ./configure --help, but I found it only with the APR's one. How does the configure work when you use "--with-included-apr" ? Just to have an idea about how to fix the docs :)

Thanks!

Luca




--



--
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux