[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] Tokyo Cabinet fails with invalid record header



This morning I tried with g++-4.4 and got a different error. When I return from 
work I will look into it. In the meantime this is the error:

rm -f libleveldb.a
ar -rs libleveldb.a ./db/builder.o ./db/db_impl.o ./db/db_iter.o 
./db/filename.o ./db/dbformat.o ./db/log_reader.o ./db/log_writer.o 
./db/memtable.o ./db/repair.o ./db/table_cache.o ./db/version_edit.o 
./db/version_set.o ./db/write_batch.o ./port/port_posix.o ./table/block.o 
./table/block_builder.o ./table/format.o ./table/iterator.o ./table/merger.o 
./table/table.o ./table/table_builder.o ./table/two_level_iterator.o 
./util/arena.o ./util/cache.o ./util/coding.o ./util/comparator.o 
./util/crc32c.o ./util/env.o ./util/env_posix.o ./util/hash.o 
./util/histogram.o ./util/logging.o ./util/options.o ./util/status.o
ar: creating libleveldb.a
creating Makefile

make
g++ -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I.   
-fPIC -fno-strict-aliasing -g -g -O2  -fPIC  -I../../leveldb/include   -c 
leveldb.cc
gcc -shared -o leveldb.so leveldb.o -L. -L/usr/lib -L. -Wl,-Bsymbolic-
functions -rdynamic -Wl,-export-dynamic    -lruby1.8  -lpthread -lrt -ldl -
lcrypt -lm   -lc -L../../leveldb -lleveldb
/usr/bin/ld: ../../leveldb/libleveldb.a(db_impl.o): relocation R_X86_64_32S 
against `vtable for leveldb::DBImpl::RecoverLogFile(unsigned long, 
leveldb::VersionEdit*, unsigned long*)::LogReporter' can not be used when 
making a shared object; recompile with -fPIC
../../leveldb/libleveldb.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [leveldb.so] エラー 1



This is my g++:

g++ --version
g++ (Ubuntu/Linaro 4.4.5-15ubuntu1) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


On Monday 20 June 2011 06:59:02 William Morgan wrote:
> Reformatted excerpts from William Morgan's message of 2011-06-19:
> > Reformatted excerpts from Horacio Sanson's message of 2011-06-19:
> > > ./port/port_posix.h:14:22: fatal error: cstdatomic:
> > > そのようなファイルやディレクトリはありません
> > 
> > What is the output of g++ --version on your system, please?
> 
> Try version 0.4. I believe it should work for oyu.

-- 
regards,                                                                                                                                                                                                       
Horacio Sanson
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel