https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-12-20T05:52:58ZRuby Issue Tracking SystemRuby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437662013-12-20T05:52:58Zzzak (zzak _)
<ul><li><strong>Category</strong> set to <i>build</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Can you try 'make distclean' and then try again?</p> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437672013-12-20T07:23:17ZAnonymous
<ul></ul><p>zzak, make distclean is the first thing I've ran. Read the gist again :),<br>
even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a></p>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437682013-12-20T07:23:18Zzzak (zzak _)
<ul></ul><p>Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>zzak, make distclean is the first thing I've ran. Read the gist again :), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a></p>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437692013-12-20T08:23:16ZAnonymous
<ul></ul><p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make<br>
install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew<br>
--prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make;<br>
make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29<br>
13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>zzak, make distclean is the first thing I've ran. Read the gist again :),<br>
even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=https%3A%2F%2Fbugs.ruby-lang.org%2Fissues%2F9264%23change-43766&url_id=225987c1762bf60ca111aefb17bebb4eb75877f4" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=https%3A%2F%2Fbugs.ruby-lang.org%2Fissues%2F9264%23change-43766&url_id=225987c1762bf60ca111aefb17bebb4eb75877f4</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=https%3A%2F%2Fgist.github.com%2Fspastorino%2F1ad2858fce42d0e0a2e2&url_id=da5d50ceba97df265d3ded7d5ab74b04aa595c7b" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=https%3A%2F%2Fgist.github.com%2Fspastorino%2F1ad2858fce42d0e0a2e2&url_id=da5d50ceba97df265d3ded7d5ab74b04aa595c7b</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=http%3A%2F%2Fbugs.ruby-lang.org%2F&url_id=4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=http%3A%2F%2Fbugs.ruby-lang.org%2F&url_id=4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec</a></p>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437702013-12-20T08:53:22Zzzak (zzak _)
<ul></ul><p>I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code> --with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0 --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make; make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:<br>
Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>zzak, make distclean is the first thing I've ran. Read the gist again :), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a></p>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437722013-12-20T22:53:19ZAnonymous
<ul></ul><p>It works but I'm missing to link against homebrew's gdbm, libyaml and<br>
libffi not sure how to do the same thing for the rest of the packages ...</p>
<p>On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code><br>
--with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make<br>
install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew<br>
--prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make;<br>
make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29<br>
13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>zzak, make distclean is the first thing I've ran. Read the gist again :),<br>
even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
</blockquote>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437732013-12-20T23:23:15Zzzak (zzak _)
<ul></ul><p>Maybe this will help? <a href="https://gist.github.com/mrkn/6647630" class="external">https://gist.github.com/mrkn/6647630</a></p>
<p>I think you can use the --with-*-dir flags at your disposal, though I'm not sure you want to use the whole script.</p>
<p>Thanks to <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a> for writing this!</p>
<p>On Dec 20, 2013, at 8:47 AM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>It works but I'm missing to link against homebrew's gdbm, libyaml and libffi not sure how to do the same thing for the rest of the packages ...</p>
<p>On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:<br>
I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code> --with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0 --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make; make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:<br>
Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>zzak, make distclean is the first thing I've ran. Read the gist again :), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a></p>
</blockquote>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437742013-12-20T23:23:15ZAnonymous
<ul></ul><p>Now I did ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-openssl-dir="$(brew --prefix openssl)" --with-readline-dir="$(brew<br>
--prefix readline)" --with-libyaml-dir="$(brew --prefix libyaml)"<br>
--with-gdbm-dir="$(brew --prefix gdbm)" --with-libffi-dir="$(brew --prefix<br>
libffi)"; make; make install</p>
<p>and it's working fine for most options but not all. gdbm and libyaml are<br>
not being correctly linked ...</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle<br>
psych.bundle:<br>
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current<br>
version 3.2.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version<br>
1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version<br>
228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml<br>
/usr/local/opt/libyaml</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle<br>
gdbm.bundle:<br>
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current<br>
version 5.0.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version<br>
1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version<br>
228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm<br>
/usr/local/opt/gdbm</p>
<p>On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino<br>
<a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a>wrote:</p>
<blockquote>
<p>It works but I'm missing to link against homebrew's gdbm, libyaml and<br>
libffi not sure how to do the same thing for the rest of the packages ...</p>
<p>On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code><br>
--with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make<br>
install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew<br>
--prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make;<br>
make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29<br>
13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>zzak, make distclean is the first thing I've ran. Read the gist again<br>
:), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
</blockquote>
</blockquote>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437752013-12-20T23:23:15Zzzak (zzak _)
<ul></ul><p>Could you also try --with-yaml-dir and --with-dbm-dir?</p>
<p>On Dec 20, 2013, at 9:13 AM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>Now I did ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0 --with-openssl-dir="$(brew --prefix openssl)" --with-readline-dir="$(brew --prefix readline)" --with-libyaml-dir="$(brew --prefix libyaml)" --with-gdbm-dir="$(brew --prefix gdbm)" --with-libffi-dir="$(brew --prefix libffi)"; make; make install</p>
<p>and it's working fine for most options but not all. gdbm and libyaml are not being correctly linked ...</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle<br>
psych.bundle:<br>
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current version 3.2.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml<br>
/usr/local/opt/libyaml</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle<br>
gdbm.bundle:<br>
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current version 5.0.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm<br>
/usr/local/opt/gdbm</p>
<p>On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:<br>
It works but I'm missing to link against homebrew's gdbm, libyaml and libffi not sure how to do the same thing for the rest of the packages ...</p>
<p>On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:<br>
I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code> --with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0 --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make; make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:<br>
Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a> wrote:</p>
<blockquote>
<p>zzak, make distclean is the first thing I've ran. Read the gist again :), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a></p>
</blockquote>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437762013-12-20T23:23:15ZAnonymous
<ul></ul><p>I'm wrong, it's working perfectly now :). Not sure why using --with-opt-dir<br>
it doesn't and that's the approach ruby-install uses. So maybe it worth<br>
patching ruby-install if that's not correct.</p>
<p>BTW because I also saw in the script you sent if I try adding<br>
--with-opt-dir="$(brew --prefix)" it doesn't work either.</p>
<p>On Fri, Dec 20, 2013 at 12:13 PM, Santiago Pastorino<br>
<a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a>wrote:</p>
<blockquote>
<p>Now I did ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-openssl-dir="$(brew --prefix openssl)" --with-readline-dir="$(brew<br>
--prefix readline)" --with-libyaml-dir="$(brew --prefix libyaml)"<br>
--with-gdbm-dir="$(brew --prefix gdbm)" --with-libffi-dir="$(brew --prefix<br>
libffi)"; make; make install</p>
<p>and it's working fine for most options but not all. gdbm and libyaml are<br>
not being correctly linked ...</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle<br>
psych.bundle:<br>
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current<br>
version 3.2.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version<br>
1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version<br>
228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml<br>
/usr/local/opt/libyaml</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle<br>
gdbm.bundle:<br>
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current<br>
version 5.0.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version<br>
1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version<br>
228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm<br>
/usr/local/opt/gdbm</p>
<p>On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino <<a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a></p>
<blockquote>
<p>wrote:</p>
</blockquote>
<blockquote>
<p>It works but I'm missing to link against homebrew's gdbm, libyaml and<br>
libffi not sure how to do the same thing for the rest of the packages ...</p>
<p>On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code><br>
--with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make<br>
install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew<br>
--prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make;<br>
make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29<br>
13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>zzak, make distclean is the first thing I've ran. Read the gist again<br>
:), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a>wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437772013-12-20T23:41:17Zzzak (zzak _)
<ul><li><strong>Subject</strong> changed from <i>Compiling error: encdb.bundle Undefined symbols for architecture x86_64</i> to <i>with-opt-dir not working</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul><p>Assigning this to nobu, maybe he has some ideas why with-opt-dir doesn't work</p> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437812013-12-21T00:29:13ZAnonymous
<ul></ul><p>After a git pull everything seems to be working fine.</p>
<p>Fixed here <a href="http://bugs.ruby-lang.org/issues/9256" class="external">http://bugs.ruby-lang.org/issues/9256</a></p>
<p>On Fri, Dec 20, 2013 at 12:22 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Could you also try --with-yaml-dir and --with-dbm-dir?</p>
<p>On Dec 20, 2013, at 9:13 AM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>Now I did ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-openssl-dir="$(brew --prefix openssl)" --with-readline-dir="$(brew<br>
--prefix readline)" --with-libyaml-dir="$(brew --prefix libyaml)"<br>
--with-gdbm-dir="$(brew --prefix gdbm)" --with-libffi-dir="$(brew --prefix<br>
libffi)"; make; make install</p>
<p>and it's working fine for most options but not all. gdbm and libyaml are<br>
not being correctly linked ...</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle<br>
psych.bundle:<br>
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current<br>
version 3.2.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version<br>
1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version<br>
228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml<br>
/usr/local/opt/libyaml</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle<br>
gdbm.bundle:<br>
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current<br>
version 5.0.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version<br>
1197.1.1)<br>
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version<br>
228.0.0)</p>
<p>~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm<br>
/usr/local/opt/gdbm</p>
<p>On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino <<a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a></p>
<blockquote>
<p>wrote:</p>
</blockquote>
<blockquote>
<p>It works but I'm missing to link against homebrew's gdbm, libyaml and<br>
libffi not sure how to do the same thing for the rest of the packages ...</p>
<p>On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>I've been using the following:</p>
<p>../configure --with-openssl-dir=<code>brew --prefix openssl</code><br>
--with-readline-dir=<code>brew --prefix readline</code> --with-zlib-dir=<code>brew --prefix zlib</code> --prefix=/Users/zzak/.rubies/ruby-trunk</p>
<p>Although I'm missing a few of the deps, maybe you can try that?</p>
<p>On Dec 19, 2013, at 6:16 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>It works if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0; make; make<br>
install</p>
<p>It doesn't if I do ...</p>
<p>autoconf; ./configure --prefix=/Users/santiago/.rubies/2.1.0<br>
--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew<br>
--prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make;<br>
make install</p>
<p>So, yeah, something is wrong when I use those deps from homebrew.</p>
<p>On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Sorry I missed the gist, can you try building outside of $srcdir?</p>
<p>I'm not able to repro it on x86_64:<br>
Darwin mba-2.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29<br>
13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64</p>
<p>On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <a href="mailto:spastorino@gmail.com" class="email">spastorino@gmail.com</a><br>
wrote:</p>
<p>zzak, make distclean is the first thing I've ran. Read the gist again<br>
:), even more after that I've ran git clean.</p>
<p>On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a>wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Category set to build<br>
Status changed from Open to Feedback</p>
<a name="Can-you-try-make-distclean-and-then-try-again"></a>
<h2 >Can you try 'make distclean' and then try again?<a href="#Can-you-try-make-distclean-and-then-try-again" class="wiki-anchor">¶</a></h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43766" class="external">https://bugs.ruby-lang.org/issues/9264#change-43766</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fbugs.ruby-lang.org%252Fissues%252F9264%2523change-43766%26url_id%3D225987c1762bf60ca111aefb17bebb4eb75877f4&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Feedback<br>
Priority: Normal<br>
Assignee:<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttps%253A%252F%252Fgist.github.com%252Fspastorino%252F1ad2858fce42d0e0a2e2%26url_id%3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a><a href="http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56" class="external">http://mandrillapp.com/track/click.php?u=30080831&id=a9cbdf35a8c942f78c745ce9aae4b3af&url=http%3A%2F%2Fmandrillapp.com%2Ftrack%2Fclick.php%3Fu%3D30080831%26id%3Dd06aa0df30174c449e5fb0a3008e3b1e%26url%3Dhttp%253A%252F%252Fbugs.ruby-lang.org%252F%26url_id%3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec&url_id=c494404aa6c81c09fb33b10ce491d145f54f7c56</a></p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437822013-12-21T00:29:13ZAnonymous
<ul></ul><p>Zzak, this was fixed here <a href="http://bugs.ruby-lang.org/issues/9256" class="external">http://bugs.ruby-lang.org/issues/9256</a></p>
<p>On Fri, Dec 20, 2013 at 12:41 PM, zzak (Zachary Scott) <a href="mailto:e@zzak.io" class="email">e@zzak.io</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a> has been updated by zzak (Zachary Scott).</p>
<p>Subject changed from Compiling error: encdb.bundle Undefined symbols for<br>
architecture x86_64 to with-opt-dir not working<br>
Status changed from Feedback to Assigned<br>
Assignee set to nobu (Nobuyoshi Nakada)</p>
<h2>Assigning this to nobu, maybe he has some ideas why with-opt-dir doesn't<br>
work</h2>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: with-opt-dir not working (Closed)" href="https://bugs.ruby-lang.org/issues/9264">#9264</a>: with-opt-dir not working<br>
<a href="https://bugs.ruby-lang.org/issues/9264#change-43777" class="external">https://bugs.ruby-lang.org/issues/9264#change-43777</a></p>
<p>Author: spastorino (Santiago Pastorino)<br>
Status: Assigned<br>
Priority: Normal<br>
Assignee: nobu (Nobuyoshi Nakada)<br>
Category: build<br>
Target version: current: 2.1.0<br>
ruby -v: 2.1<br>
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN</p>
<p>Using today's trunk, I'm getting the following error on compiling</p>
<p>compiling ./enc/encdb.c<br>
linking encoding encdb.bundle<br>
Undefined symbols for architecture x86_64:<br>
"_rb_enc_set_base", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_enc_set_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_alias", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_declare", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_dummy", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_replicate", referenced from:<br>
_Init_encdb in encdb.o<br>
"_rb_encdb_set_unicode", referenced from:<br>
_Init_encdb in encdb.o<br>
ld: symbol(s) not found for architecture x86_64</p>
<p>Here is the full trace ...</p>
<p><a href="https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2" class="external">https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2</a></p>
<p>Thanks in advance.</p>
<p>--<br>
<a href="http://bugs.ruby-lang.org/" class="external">http://bugs.ruby-lang.org/</a></p>
</blockquote> Ruby master - Bug #9264: with-opt-dir not workinghttps://bugs.ruby-lang.org/issues/9264?journal_id=437832013-12-21T00:46:57Zzzak (zzak _)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Great!</p>
<p>Fixed by r44297 from <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Build failure on Mac OS X after r44257 (Closed)" href="https://bugs.ruby-lang.org/issues/9256">#9256</a>, thanks for reporting Santiago!</p>