Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: sigar_skip_token #60

Open
jhass opened this issue Jun 9, 2015 · 15 comments
Open

undefined symbol: sigar_skip_token #60

jhass opened this issue Jun 9, 2015 · 15 comments

Comments

@jhass
Copy link

jhass commented Jun 9, 2015

ruby: symbol lookup error: .... ruby/2.2.0/extensions/x86_64-linux/2.2.0/sigar-0.7.3/sigar.so: undefined symbol: sigar_skip_token
  • Archlinux x86_64

  • ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

  • Happens with:

    Using built-in specs.
    COLLECT_GCC=/usr/bin/gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/gcc-multilib/src/gcc-5-20150519/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
    Thread model: posix
    gcc version 5.1.0 (GCC) 
    
  • Happens with:

    clang version 3.6.1 (tags/RELEASE_361/final)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.1.0
    Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/5.1.0
    Found candidate GCC installation: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0
    Found candidate GCC installation: /usr/lib64/gcc/x86_64-unknown-linux-gnu/5.1.0
    Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/5.1.0
    Candidate multilib: .;@m64
    Candidate multilib: 32;@m32
    Selected multilib: .;@m64
    
@jhass
Copy link
Author

jhass commented Jun 12, 2015

Further investigation shows this is caused by a change in inlining behaviour,

gem install sigar -- --with-cppflags="-fgnu89-inline"

works around this. For bundler do

bundle config --local build.sigar '--with-cppflags="-fgnu89-inline"'

@l29ah
Copy link

l29ah commented Aug 30, 2015

Thanks.

@tetherit
Copy link

Any updates on a permanent fix?

@verymilan
Copy link

I ran into this problem with Debian 8 also.

@anatol
Copy link

anatol commented Jan 4, 2016

Just have this problem at Arch Linux. Any update on the fix?

anatol added a commit to anatol/quarry that referenced this issue Jan 4, 2016
kostya added a commit to kostya/sigar that referenced this issue Feb 26, 2016
@MhdSyrwan
Copy link

MhdSyrwan commented Apr 26, 2016

Is there any updates regarding this issue ?

@tarasmatsyk
Copy link

Workaround did not work for Ubuntu 16.04 LTS

@tarator
Copy link

tarator commented Aug 14, 2016

For me the fix mentioned above worked (Fresh Ubuntu 16.04, with rvm)
gem install sigar -- --with-cppflags="-fgnu89-inline"

@hilkoc
Copy link

hilkoc commented Aug 16, 2016

For me the workaround
gem install sigar -- --with-cppflags="-fgnu89-inline"
worked on ubuntu 16.04.1 LTS. Thanks @jhass

@roflomglol
Copy link

roflomglol commented Sep 16, 2016

@jhass @tarator thanks, guys! Works regardless of ruby version management system, I mean it worked for rbenv too.

@amreesh
Copy link

amreesh commented Jul 1, 2017

:( workaround didn't work on my ubuntu 16.04

/home/diaspora/diaspora/vendor/bundle/ruby/2.3.0/bin/loader_eye --stop_all -c config/eye.rb: symbol lookup error: /home/diaspora/diaspora/vendor/bundle/ruby/2.3.0/gems/sigar-0.7.3/lib/sigar.so: undefined symbol: sigar_skip_token

@FinnWoelm
Copy link

Did you get it to work, @amreesh ? I just spent about four hours trying all kinds of different things... And now it's working. Please don't ask me why or how but it is possible... :o

@AlexYaruki
Copy link

AlexYaruki commented Aug 19, 2017

I don't have experience with Ruby but problem is with manual installation or with gem tool (package management ?)

@kostya
Copy link

kostya commented Jan 23, 2018

i think i fix it in my fork https://github.com/kostya/sigar, can someone check that it installed? gem install kostya-sigar

@leskin-in
Copy link

The first solution #60 (comment) works on Ubuntu 16.04 when building libsigar manually:

./autogen.sh && ./configure && make CFLAGS=-fgnu89-inline && sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests