Skip to content

Compile time issue on ubuntu 12.04 #3

Description

@phpconnect

When i am trying to compile this library getting following errors

g++ -std=c++11 -fPIC -shared src/_.cpp -lrocksdb -lpthread -lrt -lsnappy -lgflags -lz -lbz2 -lphpcpp -lmemenv -I./src/include -o bin/rocksdb_php.so
/usr/bin/ld.bfd.real: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/librocksdb.a(db_impl.o): relocation R_X86_64_32S against `ZTVN7rocksdb2DBE' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/librocksdb.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *
* [all] Error 1

Please help

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions