kkaempf/wbem-explorer — Issue #1: webm-explorer's Gemfile dependancy 'sfcc' fails to install (Linux)
Author: mingus
Created: 2011-12-12 14:22:31+00:00
State: open

Hi, I'm attempting to install the wbem-explorer app for evaluation, and I'm having trouble getting the sfcc gem to install. I'm on Fedora 15 on a x86_64 box with the native Fedora 'sblim-sfcc' and 'sblim-sfcc-devel' packages installed (version 2.2.1-2.fc15). Since the Gemfile wants sfcc 0.3.0, I updated the Gemfile line to pull the specific branch with 0.3.0:

```gem 'sfcc', '>= 0.3.0' , :git => "https://github.com/kkaempf/ruby-sfcc.git", :branch => "kkaempf"
```

Error from doing a 'bundle install --path=vendor/cache':

Using sfcc (0.3.0) from https://github.com/kkaempf/ruby-sfcc.git (at kkaempf) with native extensions /usr/local/ruby/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/local/ruby/bin/ruby extconf.rb
checking for NewCIMCEnv() in -lcmpisfcc... no
Cannot find NewCIMCEnv() in libcmpisfcc
Is sblim-sfcc-devel installed ?
checking for cimc.h in /usr/include/cimc... yes
checking for cmcimacs.h in /usr/include/CimClientLib... yes
creating Makefile

make
gcc -I. -I/usr/local/ruby/include/ruby-1.9.1/x86_64-linux -I/usr/local/ruby/include/ruby-1.9.1/ruby/backward -I/usr/local/ruby/include/ruby-1.9.1 -I. -I/usr/include/cimc -I/usr/include/CimClientLib -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o sfcc.o -c sfcc.c
sfcc.c: In function `hash_to_cimargs_iterator':
sfcc.c:251:20: error: dereferencing pointer to incomplete type
sfcc.c: In function `sfcc_cimargs_to_hash':
sfcc.c:284:15: error: dereferencing pointer to incomplete type
sfcc.c:289:23: error: dereferencing pointer to incomplete type
make: *** [sfcc.o] Error 1

Gem files will remain installed in /home/agarrison/wbem-explorer/vendor/cache/ruby/1.9.1/bundler/gems/ruby-sfcc-a28cfdbc4981 for inspection.
Results logged to /home/agarrison/wbem-explorer/vendor/cache/ruby/1.9.1/bundler/gems/ruby-sfcc-a28cfdbc4981/ext/sfcc/gem_make.out
from /usr/local/ruby/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:530:in `block in build_extensions'
from /usr/local/ruby/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `each'
from /usr/local/ruby/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `build_extensions'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/source.rb:459:in `generate_bin'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/source.rb:565:in `install'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `block (2 levels) in run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `block in run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/bin/bundle:13:in `'
from /usr/local/ruby/bin/bundle:19:in `load'
from /usr/local/ruby/bin/bundle:19:in `

'

My C is extremely rusty, so any ideas if there's a workaround for this? Maybe it just doesn't like Fedora's version. Thanks!