Skip to content

Cannot build #1

Description

@roncemer

Does this thing really work, or not?

I'm on Ubuntu 15.04 64-bit.

I run: npm install dbstore

I get these errors:

make[1]: Entering directory '/var/lib/lxc/obdev/rootfs/home/rcemer/obm/php/node_projects/node_modules/dbstore/build'
CXX(target) Release/obj.target/addon/src/addon.o
CXX(target) Release/obj.target/addon/src/dbstore.o
../src/dbstore.cc: In function ‘void dbt_set(DBT_, void_, u_int32_t, u_int32_t)’:
../src/dbstore.cc:67:30: error: ‘memset’ was not declared in this scope
memset(dbt, 0, sizeof(_dbt));
^
../src/dbstore.cc: In static member function ‘static v8::Handlev8::Value DbStore::Open(const v8::Arguments&)’:
../src/dbstore.cc:205:33: error: ‘strdup’ was not declared in this scope
baton->str_arg = strdup(fname);
^
../src/dbstore.cc: In function ‘void PutWork(uv_work_t
)’:
../src/dbstore.cc:266:58: error: ‘strlen’ was not declared in this scope
dbt_set(&key_dbt, baton->str_arg, strlen(baton->str_arg));
^
../src/dbstore.cc:267:8: warning: unused variable ‘data_dbt’ [-Wunused-variable]
DBT &data_dbt = baton->inbuf;
^
../src/dbstore.cc: In static member function ‘static v8::Handlev8::Value DbStore::Put(const v8::Arguments&)’:
../src/dbstore.cc:318:31: error: ‘strdup’ was not declared in this scope
baton->str_arg = strdup(key);
^
../src/dbstore.cc: In function ‘void GetWork(uv_work_t
)’:
../src/dbstore.cc:339:58: error: ‘strlen’ was not declared in this scope
dbt_set(&key_dbt, baton->str_arg, strlen(baton->str_arg));
^
../src/dbstore.cc: In static member function ‘static v8::Handlev8::Value DbStore::Get(const v8::Arguments&)’:
../src/dbstore.cc:396:31: error: ‘strdup’ was not declared in this scope
baton->str_arg = strdup(key);
^
../src/dbstore.cc: In function ‘void DelWork(uv_work_t
)’:
../src/dbstore.cc:411:58: error: ‘strlen’ was not declared in this scope
dbt_set(&key_dbt, baton->str_arg, strlen(baton->str_arg));
^
../src/dbstore.cc: In static member function ‘static v8::Handlev8::Value DbStore::Del(const v8::Arguments&)’:
../src/dbstore.cc:441:31: error: ‘strdup’ was not declared in this scope
baton->str_arg = strdup(_key);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions