kostya / eye-http

Http interface for the Eye gem
MIT License
10 stars 3 forks source link

FreeBSD 13 sigar compiled problem #8

Open emanzx opened 3 years ago

emanzx commented 3 years ago
/usr/local/lib/ruby/site_ruby/2.7/rubygems/package.rb:509: warning: Using the last argument as keyword parameters is deprecated
Building native extensions. This could take a while...
ERROR:  Error installing eye:
    ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.7/gems/kostya-sigar-2.0.8/bindings/ruby
/usr/local/bin/ruby27 -I /usr/local/lib/ruby/site_ruby/2.7 -r ./siteconf20210421-89413-sf3bob.rb extconf.rb
Ruby platform=amd64-freebsd13
checking for -lkvm... yes
rbsigar_generated.rx needs update
generating rbsigar_generated.rx
fatal: not a git repository (or any of the parent directories): .git
../../src/sigar_ptql.c -> sigar_ptql.c
../../src/sigar_getline.c -> sigar_getline.c
../../src/sigar_format.c -> sigar_format.c
../../src/sigar_fileinfo.c -> sigar_fileinfo.c
../../src/sigar_signal.c -> sigar_signal.c
../../src/sigar_util.c -> sigar_util.c
../../src/sigar.c -> sigar.c
../../src/sigar_cache.c -> sigar_cache.c
../../src/os/darwin/darwin_sigar.c -> darwin_sigar.c
creating Makefile

current directory: /usr/local/lib/ruby/gems/2.7/gems/kostya-sigar-2.0.8/bindings/ruby
make "DESTDIR=" clean

current directory: /usr/local/lib/ruby/gems/2.7/gems/kostya-sigar-2.0.8/bindings/ruby
make "DESTDIR="
compiling darwin_sigar.c
darwin_sigar.c:1968:27: error: no member named 'fd_lastfile' in 'struct filedesc'
    procfd->total = filed.fd_lastfile;
                    ~~~~~ ^
1 error generated.
*** Error code 1

Stop.
make: stopped in /usr/local/lib/ruby/gems/2.7/gems/kostya-sigar-2.0.8/bindings/ruby

make failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.7/gems/kostya-sigar-2.0.8 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.7/extensions/amd64-freebsd-13/2.7/kostya-sigar-2.0.8/gem_make.out

I have found some solution that you may use to solve the error. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248460