Git Product home page Git Product logo

Comments (15)

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu any thoughts?
I tried two machines. both of them failed to get the code compiled. I do check and verify all of library necessary are installed.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

Hi @jupiturliu thanks for this report. I've been on vacation and can look at this now. How did you install Ceph (e.g. source, stable/dev?), and had you previously installed Ceph and/or go-ceph on the same machine? Since go-ceph just links against the C libraries, this doesn't appear to be a go-ceph issue, but it might be related to a missing library path.

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

Hi @noahdesu Happy new year. thanks for your reply. I am actually compiling the ceph by myself. Here is the scripts I created to compile Ceph @ https://github.com/omnicube/utils/blob/master/ceph_compiling.sh
I developed several features inside of Ceph. I just want to have a quick try with any example written in go. I do installed librbd and librados2 library. What else do I need to install? By the way, I am using Ubuntu 14.04.
thanks,
James

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

It seems like Ceph was compiled against libnss but that libnss (or a different version) was used when compiling go-ceph. I'll try to confirm this bug. Have you tried to compile go-ceph against Ceph installed from pre-built packages?

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu I did not get a chance to try pre-built ceph package. I will find a machine to have a try tonight if allowed.

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu with standard Ceph release,I did not get this error.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

Ok thanks for the update, that's good news. I looked at your script that compiles Ceph. Would you mind sending me the parameters you are using for configure? I built from source recently and everything worked for me so I am having a little trouble reproducing this. Can you compile other programs against librados or librbd? One thing that you might want to check is that cgo can find libnss. Perhaps libnss is installed in a path that cgo won't look for automatically.

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu I just enabled rocksdb with ./configure --with-librocksdb-static. What kind of other programs I supposed to build. I do build fio with librbd support. I am able to run the fio test with librbd engine against new ceph build.

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu I switched to another machine and tried to configure the ceph with like this one and see how it goes. ./configure --with-nss

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

@jupiturliu ok let me know how that goes. if that doesn't fix it, i will create post step-by-step instructions that works for me so you can compare and maybe we can narrow down where the problem is. thanks for your patience.

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu
Just recompiled the code with ./configure --with-nss. I still did not get luck to make it work. Using ldd to check dependence of librbd that go-ceph rely on. I do see the my own build libraods was linked to librbd correctly.
ldd /usr/lib/librbd.so
linux-vdso.so.1 => (0x00007fff76ecb000)
librados.so.2 => /home/jamesliu/WorkSpace/ceph-install/lib/librados.so.2 (0x00007f8317a6a000)
libboost_thread.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0 (0x00007f8317839000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f8317612000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f83173f4000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f83171ec000)
liblttng-ust.so.0 => /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0 (0x00007f8316fa1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8316d9d000)
libboost_system.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0 (0x00007f8316b99000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8316894000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f831658e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f83161c8000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8315fb1000)
libcrypto++.so.9 => /usr/lib/libcrypto++.so.9 (0x00007f83158e6000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f83156e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f831c6de000)
liblttng-ust-tracepoint.so.0 => /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0 (0x00007f83154c6000)
liburcu-bp.so.1 => /usr/lib/liburcu-bp.so.1 (0x00007f83152bf000)
liburcu-cds.so.1 => /usr/lib/liburcu-cds.so.1 (0x00007f83150b8000)

Whenever I removed my own built rados library in the library path and use standard one, everything works fine.
Pretty sure the problem come from ceph build.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

Do you have multiple version of Ceph installed (e.g. one via a package
manager, and the one you built)? If so, does it work if you remove the one
that is installed via the package manager? It might be that there is cross
linking going on.

On Wed, Jan 6, 2016 at 5:10 PM, jupiturliu [email protected] wrote:

@noahdesu https://github.com/noahdesu
Just recompiled the code with ./configure --with-nss. I still did not get
luck to make it work. Using ldd to check dependence of librbd that go-ceph
rely on. I do see the my own build libraods was linked to librbd correctly.
ldd /usr/lib/librbd.so
linux-vdso.so.1 => (0x00007fff76ecb000)
librados.so.2 => /home/jamesliu/WorkSpace/ceph-install/lib/librados.so.2
(0x00007f8317a6a000)
libboost_thread.so.1.54.0 =>
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0 (0x00007f8317839000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f8317612000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f83173f4000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f83171ec000)
liblttng-ust.so.0 => /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0
(0x00007f8316fa1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8316d9d000)
libboost_system.so.1.54.0 =>
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0 (0x00007f8316b99000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f8316894000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f831658e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f83161c8000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8315fb1000)
libcrypto++.so.9 => /usr/lib/libcrypto++.so.9 (0x00007f83158e6000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f83156e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f831c6de000)
liblttng-ust-tracepoint.so.0 =>
/usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0 (0x00007f83154c6000)
liburcu-bp.so.1 => /usr/lib/liburcu-bp.so.1 (0x00007f83152bf000)
liburcu-cds.so.1 => /usr/lib/liburcu-cds.so.1 (0x00007f83150b8000)

Whenever I removed my own built rados library in the library path and use
standard one, everything works fine.
Pretty sure the problem come from ceph build.


Reply to this email directly or view it on GitHub
#5 (comment).

from go-ceph.

jupiturliu avatar jupiturliu commented on May 24, 2024

@noahdesu It is likely, I will make sure the librbd and librados libary are from same sources. I will let you know soon.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

Is this still an issue? I've not heard of this problem and haven't been able to reproduce it.

from go-ceph.

phlogistonjohn avatar phlogistonjohn commented on May 24, 2024

Hello, I'm automatically closing all issues filed prior to 2018 that have not been commented on recently. If this issue is still relevant to you please reopen the issue and restart the discussion. Thank you for your understanding.

from go-ceph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.