It works if I do ...

autoconf; ./configure --prefix=3D/Users/santiago/.rubies/2.1.0; make; make
install

It doesn't if I do ...

autoconf; ./configure --prefix=3D/Users/santiago/.rubies/2.1.0
--with-opt-dir=3D"$(brew --prefix openssl):$(brew --prefix readline):$(brew
--prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"; make;
make install

So, yeah, something is wrong when I use those deps from homebrew.



On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott <e / zzak.io> wrote:

> Sorry I missed the gist, can you try building outside of $srcdir?
>
> I'm not able to repro it on x86_64:
> 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
>
>
> On Dec 19, 2013, at 4:59 PM, Santiago Pastorino <spastorino / gmail.com>
> wrote:
>
> zzak, make distclean is the first thing I've ran. Read the gist again :),
> even more after that I've ran git clean.
>
> On Thu, Dec 19, 2013 at 6:52 PM, zzak (Zachary Scott) <e / zzak.io> wrote:
>
>>
>> Issue #9264 has been updated by zzak (Zachary Scott).
>>
>> Category set to build
>> Status changed from Open to Feedback
>>
>> Can you try 'make distclean' and then try again?
>> ----------------------------------------
>> Bug #9264: Compiling error: encdb.bundle Undefined symbols for
>> architecture x86_64
>> https://bugs.ruby-lang.org/issues/9264#change-43766<http://mandrillapp.c=
om/track/click.php?u=3D30080831&id=3Dd06aa0df30174c449e5fb0a3008e3b1e&url=
=3Dhttps%3A%2F%2Fbugs.ruby-lang.org%2Fissues%2F9264%23change-43766&url_id=
=3D225987c1762bf60ca111aefb17bebb4eb75877f4>
>>
>> Author: spastorino (Santiago Pastorino)
>> Status: Feedback
>> Priority: Normal
>> Assignee:
>> Category: build
>> Target version: current: 2.1.0
>> ruby -v: 2.1
>> Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
>>
>>
>> Using today's trunk, I'm getting the following error on compiling
>>
>> compiling ./enc/encdb.c
>> linking encoding encdb.bundle
>> Undefined symbols for architecture x86_64:
>>   "_rb_enc_set_base", referenced from:
>>       _Init_encdb in encdb.o
>>   "_rb_enc_set_dummy", referenced from:
>>       _Init_encdb in encdb.o
>>   "_rb_encdb_alias", referenced from:
>>       _Init_encdb in encdb.o
>>   "_rb_encdb_declare", referenced from:
>>       _Init_encdb in encdb.o
>>   "_rb_encdb_dummy", referenced from:
>>       _Init_encdb in encdb.o
>>   "_rb_encdb_replicate", referenced from:
>>       _Init_encdb in encdb.o
>>   "_rb_encdb_set_unicode", referenced from:
>>       _Init_encdb in encdb.o
>> ld: symbol(s) not found for architecture x86_64
>>
>> Here is the full trace ...
>>
>> https://gist.github.com/spastorino/1ad2858fce42d0e0a2e2<http://mandrilla=
pp.com/track/click.php?u=3D30080831&id=3Dd06aa0df30174c449e5fb0a3008e3b1e&u=
rl=3Dhttps%3A%2F%2Fgist.github.com%2Fspastorino%2F1ad2858fce42d0e0a2e2&url_=
id=3Dda5d50ceba97df265d3ded7d5ab74b04aa595c7b>
>>
>> Thanks in advance.
>>
>>
>> --
>> http://bugs.ruby-lang.org/<http://mandrillapp.com/track/click.php?u=3D30=
080831&id=3Dd06aa0df30174c449e5fb0a3008e3b1e&url=3Dhttp%3A%2F%2Fbugs.ruby-l=
ang.org%2F&url_id=3D4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec>
>>
>
>
>