Skip to content

Instantly share code, notes, and snippets.

@Cl3MM
Created November 25, 2013 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cl3MM/7640398 to your computer and use it in GitHub Desktop.
Save Cl3MM/7640398 to your computer and use it in GitHub Desktop.
Error with Arpa/inet.h
$ gem install bson -v '2.0.0.rc3' --platform=ruby --no-rdoc --no-ri
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bson:
ERROR: Failed to build gem native extension.
c:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating native-i386-mingw32.def
compiling native.c
In file included from c:/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0,
from c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70,
from c:/Ruby200/include/ruby-2.0.0/ruby.h:33,
from native.c:33:
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:276:12: error: conflicting types for
'gettimeofday'
In file included from native.c:24:0:
c:\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw
32/include/sys/time.h:42:13: note: previous declaration of 'gettimeofday' was he
re
In file included from c:/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0,
from c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70,
from c:/Ruby200/include/ruby-2.0.0/ruby.h:33,
from native.c:33:
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h: In function 'rb_w32_pow':
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:801:5: warning: implicit declaration
of function '_controlfp' [-Wimplicit-function-declaration]
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:802:16: error: '_PC_64' undeclared (f
irst use in this function)
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:802:16: note: each undeclared identif
ier is reported only once for each function it appears in
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:802:24: error: '_MCW_PC' undeclared (
first use in this function)
make: *** [native.o] Error 1
Gem files will remain installed in c:/Ruby200/lib/ruby/gems/2.0.0/gems/bson-2.0.
0.rc3 for inspection.
Results logged to c:/Ruby200/lib/ruby/gems/2.0.0/gems/bson-2.0.0.rc3/ext/bson/ge
m_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment