50ButtonsEach / fliclib-linux-dist

114 stars 19 forks source link

Version GLIBCXX_3.4.21 not defined #44

Open gustavotemple opened 8 years ago

gustavotemple commented 8 years ago

Hello guys!

When I try to run the daemon:

$ ./daemon -l -f flic.sqlite3
./daemon:` relocation error: ./daemon: symbol _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time refere

The list dynamic dependencies:

$ ldd daemon 
    linux-vdso.so.1 =>  (0x00007ffccdeff000)
    libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fe3e15c5000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fe3e12bd000)
    libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007fe3e0f49000)
    libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fe3e0cf8000)
    libjson-glib-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so.0 (0x00007fe3e0ad3000)
    libsoup-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libsoup-2.4.so.1 (0x00007fe3e0812000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe3e0505000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe3e01ff000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe3dffe7000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe3dfdc9000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe3dfa04000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe3df7ff000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fe3df5c1000)
    libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007fe3df3bd000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe3df1a3000)
    libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fe3def80000)
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fe3ded65000)
    libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fe3deb5c000)
    libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007fe3de7f5000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fe3e18a6000)

The GLIBCXX versions:

$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX_3.4.
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21

The link:

$ ll /usr/lib/x86_64-linux-gnu/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Dec  5 20:27 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.21

The path:

$ more /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/lib
Emill commented 8 years ago

What Linux distribution are you running? Btw you should try our new sdk at https://github.com/50ButtonsEach/fliclib-linux-hci

gustavotemple commented 8 years ago

Hello @Emill, @Ziemowit, @fabianbergmark,

The new sdk ran well, but when I try to run the command line tool for managing the daemon:

$ ./flic 
./flic: relocation error: ./flic: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time referenc

My Linux distribution:

$ uname -a
Linux 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

My gcc:

$ gcc-5 --version
gcc-5 (Ubuntu 5.3.0-3ubuntu1~14.04) 5.3.0 20151204

The versions table: https://github.com/FoldingAtHome/fah-client-pub/issues/1147#issuecomment-134731211

Emill commented 8 years ago

The client program "flic" is not compatible with the new SDK. Instead you can try the client "simpleclient" that is included in the new SDK or some of the examples in the clientlib directory.

gustavotemple commented 8 years ago

Hello @Emill,

I have tested the fliclib-linux-hci, and it works fine!

Thank you very much!

I have asked here about port to the new SDK: https://github.com/hardillb/node-flic-buttons/issues/1

Thanks :+1: