Ah! I understood. You are right. Thanks! syuu 2010/7/17 Yehuda Sadeh Weinraub <yehudasa@xxxxxxxxx>: > On Thu, Jul 15, 2010 at 10:06 PM, Takuya ASADA <syuu@xxxxxxxxxxxx> wrote: >> Hi, >> >> Oh sorry I didn't describe the environment. >> The distribution is CentOS 5.5 x86, gcc is 4.1.2. >> I tried both current source code from git and version 0.20.2 source code. >> >> I also tried to implement the other operations, these codes are could >> compiled successfully. >> ex) http://github.com/syuu1228/radoscmds/blob/master/put_obj.cc >> This uses rados->write_full(). >> > > I bet it's some inconsistency in the way size_t is defined. You can > try casting the last parameter to unsigned long and see whether it > fixes it. You can also try adding _FILE_OFFSET_BITS=64 when compiling > it, like this: > > # g++ -D_FILE_OFFSET_BITS=64 -lcrypto -lrados -lcrush get_obj.cc > > Thanks, > Yehuda > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html