[#62297] Re: [ruby-cvs:52906] nari:r45760 (trunk): * gc.c (gc_after_sweep): suppress unnecessary expanding heap. — Eric Wong <normalperson@...>
nari@ruby-lang.org wrote:
7 messages
2014/05/02
[#62307] Re: [ruby-cvs:52906] nari:r45760 (trunk): * gc.c (gc_after_sweep): suppress unnecessary expanding heap.
— SASADA Koichi <ko1@...>
2014/05/03
(2014/05/03 4:41), Eric Wong wrote:
[#62402] Re: [ruby-cvs:52906] nari:r45760 (trunk): * gc.c (gc_after_sweep): suppress unnecessary expanding heap.
— Eric Wong <normalperson@...>
2014/05/05
SASADA Koichi <ko1@atdot.net> wrote:
[#62523] [ruby-trunk - Feature #9632] [PATCH 0/2] speedup IO#close with linked-list from ccan — ko1@...
Issue #9632 has been updated by Koichi Sasada.
3 messages
2014/05/11
[#62556] doxygen (Re: Re: [ruby-trunk - Feature #9632] [PATCH 0/2] speedup IO#close with linked-list from ccan) — Tanaka Akira <akr@...>
2014-05-11 8:50 GMT+09:00 Eric Wong <normalperson@yhbt.net>:
3 messages
2014/05/13
[#62727] [RFC] vm_method.c (rb_method_entry_make): avoid freed me in m_tbl — Eric Wong <normalperson@...>
rb_unlink_method_entry may cause old_me to be swept before the new
7 messages
2014/05/24
[#63039] Re: [RFC] vm_method.c (rb_method_entry_make): avoid freed me in m_tbl
— SASADA Koichi <ko1@...>
2014/06/10
Hi,
[#63077] Re: [RFC] vm_method.c (rb_method_entry_make): avoid freed me in m_tbl
— Eric Wong <normalperson@...>
2014/06/10
SASADA Koichi <ko1@atdot.net> wrote:
[#63086] Re: [RFC] vm_method.c (rb_method_entry_make): avoid freed me in m_tbl
— SASADA Koichi <ko1@...>
2014/06/11
(2014/06/11 4:47), Eric Wong wrote:
[#63087] Re: [RFC] vm_method.c (rb_method_entry_make): avoid freed me in m_tbl
— Eric Wong <normalperson@...>
2014/06/11
SASADA Koichi <ko1@atdot.net> wrote:
[#62862] [RFC] README.EXT: document rb_gc_register_mark_object — Eric Wong <normalperson@...>
Any comment on officially supporting this as part of the C API?
5 messages
2014/05/30
[ruby-core:62500] [ruby-trunk - Bug #9824] [Rejected] mkmf.rb top_srcdir not printed in Makefile of ext/openssl
From:
nobu@...
Date:
2014-05-10 12:28:28 UTC
List:
ruby-core #62500
Issue #9824 has been updated by Nobuyoshi Nakada.
Description updated
Status changed from Open to Rejected
Currently openssl extension is tightly bound with the core due to thread handling, so build without `ext/extmk.rb` is not supported.
----------------------------------------
Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
https://bugs.ruby-lang.org/issues/9824#change-46660
* Author: Ignacio Rodrigo
* Status: Rejected
* Priority: Normal
* Assignee:
* Category: ext/openssl
* Target version:
* ruby -v: 2.1.2-p95 (2014-05-08 revision 45877) [x64-mswin64_100]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Hi,
First of all, apologies in advance for the lack of technical knowledge about Ruby, I'm pretty new to it, but I think I have detected a bug in the build process of ext/openssl.
As a newbie, I was trying to build ruby 2.1.2-p95 on my Windows 64-bits machine by compiling everything natively. Compiling ruby itself for Windows x64 went fine, compiling the ext/zlib went fine but... when it came to ext/openssl:
In the windows command prompt I ran:
~~~
cd ext/openssl
ruby extconf.rb --with-openssl-dir=<openssl_path>
~~~
Everything run fine and the Makefile was created. Then I run:
nmake (using the x64 compiler)
...and got the following error:
~~~
NMAKE : fatal error U1073: don't know how to make 'thread_native.h'
~~~
After going crazy looking for answers on the internet to no avail I decided to have a look at the Makefile generated. On the last line, I saw:
~~~makefile
ossl.obj: $(top_srcdir)/thread_native.h $(top_srcdir)/thread_$(THREAD_MODEL).h
~~~
So I said to myself, "OK, so I just need to specify the top_srcdir. I looked for it elsewhere in Makefile and it just wasn't specified anywhere! I realised that all the paths where specified at the top at:
~~~makefile
#### Start of system configuration section. ####
srcdir = .
topdir = etc...
~~~
So I just added:
~~~makefile
top_srcdir: D:\ruby-2.1.2 (the uncompressed ruby 2.1.2-p95 version folder, where thread_native.h and other *.h files are located).
~~~
Then I run again in ext/openssl:
nmake
...followed by...
nmake install
...and everything run fine and works!
As I'm pretty new to Ruby I have no idea of the inner workings of Ruby but I tried to track down why the top_srcdir: line was missing in the configuration in Makefile and I managed to track it down to mkmf.rb file in the ruby-2.1.2 folder. Specifically in line 1838 of mkmf.rb:
~~~ruby
#{"top_srcdir = " + $top_srcdir.sub(%r"\A#{Regexp.quote($topdir)}/", "$(topdir)/") if $extmk}
~~~
I presume `top_srcdir` did not get printed out to the `Makefile` because `$extmk` (which I cannot figure out what it is) returned `false` (notice the "`if $extmk`" conditional).
As I said, I am not at all familiar with the inner workings of Ruby so I was hoping one of you could help fix this so that other people in my same situation don't go crazy trying to fix it?
Thanks a lot for taking the time to read this and for your help in advance!
--
https://bugs.ruby-lang.org/