hyperic / sigar

System Information Gatherer And Reporter
http://sigar.hyperic.com/
Apache License 2.0
1.51k stars 505 forks source link

undefined symbol: sigar_skip_token #60

Open jhass opened 9 years ago

jhass commented 9 years ago
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
jhass commented 9 years ago

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 commented 9 years ago

Thanks.

tetherit commented 8 years ago

Any updates on a permanent fix?

verymilan commented 8 years ago

I ran into this problem with Debian 8 also.

anatol commented 8 years ago

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

MhdSyrwan commented 8 years ago

Is there any updates regarding this issue ?

tarasmatsyk commented 8 years ago

Workaround did not work for Ubuntu 16.04 LTS

tarator commented 8 years ago

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

hilkoc commented 8 years ago

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

roflomglol commented 8 years ago

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

amreesh commented 7 years ago

:( 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 commented 7 years ago

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 commented 7 years ago

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

kostya commented 6 years ago

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 commented 6 years ago

The first solution https://github.com/hyperic/sigar/issues/60#issuecomment-111600492 works on Ubuntu 16.04 when building libsigar manually:

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