reeze / php-leveldb

The PHP Binding for LevelDB
Other
239 stars 44 forks source link

php-leveldb Perform make operation #39

Open huazhiyeluo opened 6 years ago

huazhiyeluo commented 6 years ago

[root@liaozongchao php-leveldb]# make /bin/sh /usr/local/soft/php-leveldb/libtool --mode=compile cc -I. -I/usr/local/soft/php-leveldb -DPHP_ATOM_INC -I/usr/local/soft/php-leveldb/include -I/usr/local/soft/php-leveldb/main -I/usr/local/soft/php-leveldb -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/soft/php-leveldb/leveldb.c -o leveldb.lo mkdir .libs cc -I. -I/usr/local/soft/php-leveldb -DPHP_ATOM_INC -I/usr/local/soft/php-leveldb/include -I/usr/local/soft/php-leveldb/main -I/usr/local/soft/php-leveldb -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/soft/php-leveldb/leveldb.c -fPIC -DPIC -o .libs/leveldb.o /bin/sh /usr/local/soft/php-leveldb/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/soft/php-leveldb/include -I/usr/local/soft/php-leveldb/main -I/usr/local/soft/php-leveldb -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o leveldb.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/soft/php-leveldb/modules leveldb.lo -Wl,-rpath,/usr/local/soft/leveldb -L/usr/local/soft/leveldb -lleveldb cc -shared .libs/leveldb.o -L/usr/local/soft/leveldb -lleveldb -Wl,-rpath -Wl,/usr/local/soft/leveldb -Wl,-soname -Wl,leveldb.so -o .libs/leveldb.so /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(c.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(db_impl.cc.o): relocation R_X86_64_32 against undefined symbolpthread_key_create' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(db_iter.cc.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(dbformat.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(filename.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(log_reader.cc.o): relocation R_X86_64_32S against symbol_ZTVN7leveldb3log6Reader8ReporterE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(log_writer.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(memtable.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(repair.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(table_cache.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(version_edit.cc.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(version_set.cc.o): relocation R_X86_64_32 against undefined symbol__pthread_key_create' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(write_batch.cc.o): relocation R_X86_64_32S against symbol _ZTVN7leveldb10WriteBatch7HandlerE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(iterator.cc.o): relocation R_X86_64_32S against symbol_ZTVN7leveldb8IteratorE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(merger.cc.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(table_builder.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(table.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(two_level_iterator.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(arena.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(bloom.cc.o): relocation R_X86_64_32S against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(cache.cc.o): relocation R_X86_64_32 against undefined symbol `pthread_key_create' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(comparator.cc.o): relocation R_X86_64_32S against symbol _ZTVN7leveldb10ComparatorE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(crc32c.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(env.cc.o): relocation R_X86_64_32S against symbol _ZTVN7leveldb3EnvE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(filter_policy.cc.o): relocation R_X86_64_32S against symbol_ZTVN7leveldb12FilterPolicyE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(logging.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(status.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(env_posix.cc.o): relocation R_X86_64_32 against undefined symbol __pthread_key_create' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(builder.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(block_builder.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(block.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(filter_block.cc.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/soft/leveldb/libleveldb.a(format.cc.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make: *** [leveldb.la] Error 1

moyuchen0 commented 3 years ago

我也遇见了这个问题,但是不知道怎么解决