Jump to content
OpenSplice DDS Forum
JMStranz

Get "glibc" version from OpenSplice RTS libraries

Recommended Posts

I want to check (on Linux) if the OpenSplice RTS libraries are executable on the node.

For that I would like to compare the version of "glibc" installed on the node with the version of "glibc" used to build the libraries.
If the versions differ, the DDS application should output a corresponding error message.

How can I find the version of "glibc" used to build the OpenSplice RTS libraries?
Does the meta configuration file "ospl_metaconfig.xml" contain a relevant entry?

For any hint I would be very grateful!

Jan-Marc.

Share this post


Link to post
Share on other sites

if you do an 'ldd' on for istance $OSPL_HOME/lib/libspliced.so you'll get something like this:

hansh@perf2:~/ADLINK/Vortex_v2/Device/VortexOpenSplice/6.9.181127OSS/HDE/x86_64.linux/lib$ ldd libspliced.so
        linux-vdso.so.1 =>  (0x00007ffd1c702000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00002ae91a668000)
        libddskernel.so => /work/hansh/ADLINK/Vortex_v2/Device/VortexOpenSplice/6.9.181127OSS/HDE/x86_64.linux/lib/libddskernel.so (0x00002ae91aa32000)
        /lib64/ld-linux-x86-64.so.2 (0x00002ae91a22f000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00002ae91ae09000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00002ae91b112000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00002ae91b316000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00002ae91b533000)

would that be helpful ?

 

Share this post


Link to post
Share on other sites

Hi Hans!

Thank you for your hint.

I already knew the use of "ldd".

However, it only indicates that "libc.so.6" is used and from which directory; but not which version of "libc.so.6" was used during the build!

I was hoping that maybe a define or an entry would be created during the build process.

For explanation:
The "OpenSplice Run-Time-System (RTS)" can be easily installed by only unpacking the installation archive.
Unfortunately there is no check if the installed RTS is compatible for the respective node!
How could this be checked?

Best regards,
Jan-Marc.

Share this post


Link to post
Share on other sites

As far as I know you can't get the exact glibc version used while building a library. You can get the ABI version (try ldd -v -r) which provides exactly the info you need to determine if it is compatible with the glibc installed on a particular machine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×