Skip to content

[Bug] - httxt2dbm fails with default DBM format #326

Open
@danielvijge

Description

@danielvijge

Describe the bug
Generating a DBM file for use by RewriteMap in Apache (httpd) fails for the default configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Install httpd with sudo dnf install httpd
  2. Generate an empty file touch test.txt
  3. Try to convert it to a DBM file httxt2dbm -i test.txt -o test.map
  4. Command fails with
Error: Cannot open output DBM 'test.map': (20019) DSO load failed

Expected behavior
Command should generate a valid map for RewriteMap.

Screenshots
Output of httxt2dbm, note that berkeley DB is listed as unavailable

httxt2dbm -- Program to Create DBM Files for use by RewriteMap
Usage: httxt2dbm [-v] [-f format] -i SOURCE_TXT -o OUTPUT_DBM

Options: 
 -v    More verbose output

 -i    Source Text File. If '-', use stdin.

 -o    Output DBM.

 -f    DBM Format.  If not specified, will use the APR Default.
           GDBM for GDBM files (unavailable)
           SDBM for SDBM files (available)
           DB   for berkeley DB files (unavailable)
           NDBM for NDBM files (unavailable)
           default for the default DBM type

Desktop (please complete the following information):

  • OS: al2023-ami-2023.0.20230329.0-kernel-6.1-x86_64

Additional context
On Amazon Linux 2 the command does succeed, and berkeley DB is shown as available:

Usage: httxt2dbm [-v] [-f format] -i SOURCE_TXT -o OUTPUT_DBM

Options: 
 -v    More verbose output

 -i    Source Text File. If '-', use stdin.

 -o    Output DBM.

 -f    DBM Format.  If not specified, will use the APR Default.
           GDBM for GDBM files (unavailable)
           SDBM for SDBM files (available)
           DB   for berkeley DB files (available)
           NDBM for NDBM files (unavailable)
           default for the default DBM type

Comparing the packages, on AL2 the package apr-util-bdb is available, but this package is not included in Amazon Linux 2023.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions