Skip to content

Error "undefined reference to 'db_env_create'" during make #9

@raucao

Description

@raucao

Using a blank new Ubuntu 14.04 Vagrant box:

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ make
[SUBMODULE] lib/evhtp/
[DEPS] libevhtp
Build Type: Release
Std CFLAGS:  -Wall -fno-strict-aliasing -DPROJECT_VERSION="1.2.5" -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112
Dbg CFLAGS: -g -Wall -fno-strict-aliasing -ggdb
Rel CFLAGS: -O3 -DNDEBUG -Wall -fno-strict-aliasing
-- Configuring done
-- Generating done
-- Build files have been written to: /vagrant/lib/evhtp/build
make[1]: Entering directory `/vagrant/lib/evhtp/build'
make[2]: Entering directory `/vagrant/lib/evhtp/build'
make[3]: Entering directory `/vagrant/lib/evhtp/build'
make[3]: Leaving directory `/vagrant/lib/evhtp/build'
[100%] Built target libevhtp
make[2]: Leaving directory `/vagrant/lib/evhtp/build'
make[1]: Leaving directory `/vagrant/lib/evhtp/build'
[LD] test/unit/common/auth
src/common/auth.o: In function `open_authorizations':
/vagrant/src/common/auth.c:47: undefined reference to `db_env_create'
/vagrant/src/common/auth.c:57: undefined reference to `db_create'
collect2: error: ld returned 1 exit status
make: *** [test/unit/common/auth] Error 1

I looked up what might go wrong, and I see both the include as well as the option flag -ldb for the build command. No idea how to investigate further due to lack of knowledge about all of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions