tddium/rfuse-ng — Issue #1: Errors building native extension
Author: colindean
Created: 2011-10-23 21:12:07+00:00
State: open

Assuming that this repo is the one associated with the gem available on rubygems.org...

I'm having this problem when I try to install it:

```
Installing rfuse-ng (0.5.3) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/colin/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -lfuse... yes
creating Makefile

make
gcc -I. -I/home/colin/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/home/colin/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/colin/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wall -Werror -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -o filler.o -c filler.c
filler.c: In function ‘rfiller_push’:
filler.c:21:5: error: implicit declaration of function ‘STR2CSTR’ [-Werror=implicit-function-declaration]
filler.c:21:5: error: passing argument 2 of ‘f->filler’ makes pointer from integer without a cast [-Werror]
filler.c:21:5: note: expected ‘const char *’ but argument is of type ‘int’
filler.c:26:5: error: passing argument 2 of ‘f->filler’ makes pointer from integer without a cast [-Werror]
filler.c:26:5: note: expected ‘const char *’ but argument is of type ‘int’
filler.c: In function ‘rfiller_push_old’:
filler.c:37:3: error: passing argument 2 of ‘f->df’ makes pointer from integer without a cast [-Werror]
filler.c:37:3: note: expected ‘const char *’ but argument is of type ‘int’
cc1: all warnings being treated as errors

make: *** [filler.o] Error 1

Gem files will remain installed in /home/colin/.rvm/gems/ruby-1.9.2-p290@cratefs/gems/rfuse-ng-0.5.3 for inspection.
Results logged to /home/colin/.rvm/gems/ruby-1.9.2-p290@cratefs/gems/rfuse-ng-0.5.3/ext/gem_make.out
An error occured while installing rfuse-ng (0.5.3), and Bundler cannot continue.
Make sure that `gem install rfuse-ng -v '0.5.3'` succeeds before bundling.
```

I'm on Ubuntu 11.10, using Ruby 1.9.2p290 and whatever packages come from the Ubuntu repo for FUSE stuff.