tddium/rfuse-ng — pull request #2 by leoc (2012-05-16 15:53:57+00:00)
Title: Got errors compiling the extensions

I got some errors as I added rfusefs to my projects Gemfile. Rfusefs depends on rfuse-ng.

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

/home/arthur/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb
checking for main() in -lfuse... yes
creating Makefile

make
compiling file_info.c
compiling bufferwrapper.c
compiling intern_rfuse.c
intern_rfuse.c: In function ‘intern_fuse_fd’:
intern_rfuse.c:53:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
intern_rfuse.c: In function ‘intern_fuse_process’:
intern_rfuse.c:69:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
cc1: all warnings being treated as errors
make: *** [intern_rfuse.o] Error 1

Gem files will remain installed in /home/arthur/.rvm/gems/ruby-1.9.3-p125@rindle/gems/rfuse-ng-0.5.3 for inspection.
Results logged to /home/arthur/.rvm/gems/ruby-1.9.3-p125@rindle/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.
```

Then I forked and the first thing I did was to switch the whole thing to a setting that´s bundler specific. It was kind of mixed with a Jeweler Rakefile.

When I did a `rake install` everthing installed fine.

I don´t know. I will investigate.