clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
* gem fails to build on Win 7 32 bit, DevKit 3.7.2 (rubyinstaller.org)
@ 2016-07-25 15:07 Ben Armstrong
  2016-07-25 21:04 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Armstrong @ 2016-07-25 15:07 UTC (permalink / raw)
  To: clogger-public

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

Hi,

I want to use clogger on Windows with the rubyinstaller.org version of 
Ruby 2.2.4. However, the native gem will not build. I have attached the 
gem_make.out from my failed attempt. Please resolve or let me know if 
there's anything else I can try to help solve this.

Thanks,

Ben

[-- Attachment #2: gem_make.out --]
[-- Type: text/plain, Size: 3061 bytes --]

current directory: c:/Ruby22/lib/ruby/gems/2.2.0/gems/clogger-2.0.2/ext/clogger_ext
c:/Ruby22/bin/ruby.exe -r ./siteconf20160725-8240-12azzw.rb extconf.rb
checking for ruby.h... yes
checking for fcntl.h... yes
checking for F_GETFL in fcntl.h... no
checking for O_NONBLOCK in unistd.h,fcntl.h... yes
checking for CLOCK_MONOTONIC in time.h... yes
checking for clockid_t in time.h... yes
checking for clock_gettime() in time.h... yes
checking for localtime_r() in time.h... yes
checking for gmtime_r() in time.h... yes
checking for struct tm.tm_gmtoff in time.h... no
checking for rb_str_set_len() in ruby.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region() in ruby.h... no
checking for rb_thread_io_blocking_region() in ruby.h... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  c:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/clogger-2.0.2/mkmf.log

current directory: c:/Ruby22/lib/ruby/gems/2.2.0/gems/clogger-2.0.2/ext/clogger_ext
make "DESTDIR=" clean

current directory: c:/Ruby22/lib/ruby/gems/2.2.0/gems/clogger-2.0.2/ext/clogger_ext
make "DESTDIR="
generating clogger_ext-i386-mingw32.def
compiling clogger.c
In file included from clogger.c:11:0:
c:\devkit4.7.2\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/sys/time.h:42:13: error: conflicting types for 'gettimeofday'
In file included from c:/Ruby22/include/ruby-2.2.0/ruby/defines.h:163:0,
                 from c:/Ruby22/include/ruby-2.2.0/ruby/ruby.h:29,
                 from c:/Ruby22/include/ruby-2.2.0/ruby.h:33,
                 from clogger.c:1:
c:/Ruby22/include/ruby-2.2.0/ruby/win32.h:318:12: note: previous declaration of 'gettimeofday' was here
In file included from clogger.c:24:0:
blocking_helpers.h:57:0: warning: "stat" redefined [enabled by default]
In file included from c:/Ruby22/include/ruby-2.2.0/ruby/defines.h:163:0,
                 from c:/Ruby22/include/ruby-2.2.0/ruby/ruby.h:29,
                 from c:/Ruby22/include/ruby-2.2.0/ruby.h:33,
                 from clogger.c:1:
c:/Ruby22/include/ruby-2.2.0/ruby/win32.h:199:0: note: this is the location of the previous definition
clogger.c: In function 'to_path':
clogger.c:994:3: warning: passing argument 2 of 'fstati64' from incompatible pointer type [enabled by default]
In file included from c:/Ruby22/include/ruby-2.2.0/ruby/defines.h:163:0,
                 from c:/Ruby22/include/ruby-2.2.0/ruby/ruby.h:29,
                 from c:/Ruby22/include/ruby-2.2.0/ruby.h:33,
                 from clogger.c:1:
c:/Ruby22/include/ruby-2.2.0/ruby/win32.h:483:12: note: expected 'struct _stat64 *' but argument is of type 'struct stat *'
clogger.c:996:3: warning: passing argument 2 of 'my_stat' from incompatible pointer type [enabled by default]
In file included from clogger.c:24:0:
blocking_helpers.h:21:12: note: expected 'struct _stat64 *' but argument is of type 'struct stat *'
make: *** [clogger.o] Error 1

make failed, exit code 2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-25 15:07 gem fails to build on Win 7 32 bit, DevKit 3.7.2 (rubyinstaller.org) Ben Armstrong
2016-07-25 21:04 ` Eric Wong
2016-07-26  9:35   ` Ben Armstrong
2016-07-26 15:24     ` Ben Armstrong

clogger RubyGem user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/clogger-public
	git clone --mirror http://ou63pmih66umazou.onion/clogger-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.clogger
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.clogger

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox