Project

General

Profile

Actions

Bug #9264

closed

with-opt-dir not working

Added by spastorino (Santiago Pastorino) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
ruby -v:
2.1
[ruby-core:59209]

Description

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

Thanks in advance.

Updated by zzak (zzak _) almost 11 years ago

  • Category set to build
  • Status changed from Open to Feedback

Can you try 'make distclean' and then try again?

Updated by Anonymous almost 11 years ago

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) 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

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

Thanks in advance.

--
http://bugs.ruby-lang.org/

Updated by zzak (zzak _) almost 11 years ago

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 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) 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

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

Thanks in advance.

--
http://bugs.ruby-lang.org/

Updated by Anonymous almost 11 years ago

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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
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) 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-43766http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=https%3A%2F%2Fbugs.ruby-lang.org%2Fissues%2F9264%23change-43766&url_id=225987c1762bf60ca111aefb17bebb4eb75877f4

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/1ad2858fce42d0e0a2e2http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=https%3A%2F%2Fgist.github.com%2Fspastorino%2F1ad2858fce42d0e0a2e2&url_id=da5d50ceba97df265d3ded7d5ab74b04aa595c7b

Thanks in advance.

--
http://bugs.ruby-lang.org/http://mandrillapp.com/track/click.php?u=30080831&id=d06aa0df30174c449e5fb0a3008e3b1e&url=http%3A%2F%2Fbugs.ruby-lang.org%2F&url_id=4ad531f9fb1c4bc5ca429ed0a59826e5f0e15aec

Updated by zzak (zzak _) almost 11 years ago

I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl --with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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 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) 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

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

Thanks in advance.

--
http://bugs.ruby-lang.org/

Updated by Anonymous almost 11 years ago

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 ...

On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott wrote:

I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl
--with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino
wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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
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) 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-43766http://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

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/1ad2858fce42d0e0a2e2http://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

Thanks in advance.

--
http://bugs.ruby-lang.org/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

Updated by zzak (zzak _) almost 11 years ago

Maybe this will help? https://gist.github.com/mrkn/6647630

I think you can use the --with-*-dir flags at your disposal, though I'm not sure you want to use the whole script.

Thanks to @mrkn (Kenta Murata) for writing this!

On Dec 20, 2013, at 8:47 AM, Santiago Pastorino wrote:

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 ...

On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott wrote:
I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl --with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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 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) 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

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

Thanks in advance.

--
http://bugs.ruby-lang.org/

Updated by Anonymous almost 11 years ago

Now I did ...

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

and it's working fine for most options but not all. gdbm and libyaml are
not being correctly linked ...

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle
psych.bundle:
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current
version 3.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml
/usr/local/opt/libyaml

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle
gdbm.bundle:
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current
version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm
/usr/local/opt/gdbm

On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino
wrote:

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 ...

On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott wrote:

I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl
--with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino
wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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
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) 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-43766http://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

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/1ad2858fce42d0e0a2e2http://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

Thanks in advance.

--
http://bugs.ruby-lang.org/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

Updated by zzak (zzak _) almost 11 years ago

Could you also try --with-yaml-dir and --with-dbm-dir?

On Dec 20, 2013, at 9:13 AM, Santiago Pastorino wrote:

Now I did ...

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

and it's working fine for most options but not all. gdbm and libyaml are not being correctly linked ...

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle
psych.bundle:
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current version 3.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml
/usr/local/opt/libyaml

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle
gdbm.bundle:
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm
/usr/local/opt/gdbm

On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino wrote:
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 ...

On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott wrote:
I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl --with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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 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) 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

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

Thanks in advance.

--
http://bugs.ruby-lang.org/

Updated by Anonymous almost 11 years ago

I'm wrong, it's working perfectly now :). Not sure why using --with-opt-dir
it doesn't and that's the approach ruby-install uses. So maybe it worth
patching ruby-install if that's not correct.

BTW because I also saw in the script you sent if I try adding
--with-opt-dir="$(brew --prefix)" it doesn't work either.

On Fri, Dec 20, 2013 at 12:13 PM, Santiago Pastorino
wrote:

Now I did ...

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

and it's working fine for most options but not all. gdbm and libyaml are
not being correctly linked ...

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle
psych.bundle:
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current
version 3.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml
/usr/local/opt/libyaml

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle
gdbm.bundle:
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current
version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm
/usr/local/opt/gdbm

On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino <

wrote:

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 ...

On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott wrote:

I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl
--with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino
wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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
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) 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-43766http://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

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/1ad2858fce42d0e0a2e2http://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

Thanks in advance.

--
http://bugs.ruby-lang.org/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

Updated by zzak (zzak _) almost 11 years ago

  • Subject changed from Compiling error: encdb.bundle Undefined symbols for architecture x86_64 to with-opt-dir not working
  • Status changed from Feedback to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)

Assigning this to nobu, maybe he has some ideas why with-opt-dir doesn't work

Updated by Anonymous almost 11 years ago

After a git pull everything seems to be working fine.

Fixed here http://bugs.ruby-lang.org/issues/9256

On Fri, Dec 20, 2013 at 12:22 PM, Zachary Scott wrote:

Could you also try --with-yaml-dir and --with-dbm-dir?

On Dec 20, 2013, at 9:13 AM, Santiago Pastorino
wrote:

Now I did ...

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

and it's working fine for most options but not all. gdbm and libyaml are
not being correctly linked ...

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L psych.bundle
psych.bundle:
/usr/local/lib/libyaml-0.2.dylib (compatibility version 3.0.0, current
version 3.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix libyaml
/usr/local/opt/libyaml

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 otool -L gdbm.bundle
gdbm.bundle:
/usr/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current
version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

~/.rubies/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0 brew --prefix gdbm
/usr/local/opt/gdbm

On Fri, Dec 20, 2013 at 11:47 AM, Santiago Pastorino <

wrote:

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 ...

On Thu, Dec 19, 2013 at 9:30 PM, Zachary Scott wrote:

I've been using the following:

../configure --with-openssl-dir=brew --prefix openssl
--with-readline-dir=brew --prefix readline --with-zlib-dir=brew --prefix zlib --prefix=/Users/zzak/.rubies/ruby-trunk

Although I'm missing a few of the deps, maybe you can try that?

On Dec 19, 2013, at 6:16 PM, Santiago Pastorino
wrote:

It works if I do ...

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

It doesn't if I do ...

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

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

On Thu, Dec 19, 2013 at 8:18 PM, Zachary Scott 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
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) 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-43766http://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

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/1ad2858fce42d0e0a2e2http://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

Thanks in advance.

--
http://bugs.ruby-lang.org/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

Updated by Anonymous almost 11 years ago

Zzak, this was fixed here http://bugs.ruby-lang.org/issues/9256

On Fri, Dec 20, 2013 at 12:41 PM, zzak (Zachary Scott) wrote:

Issue #9264 has been updated by zzak (Zachary Scott).

Subject changed from Compiling error: encdb.bundle Undefined symbols for
architecture x86_64 to with-opt-dir not working
Status changed from Feedback to Assigned
Assignee set to nobu (Nobuyoshi Nakada)

Assigning this to nobu, maybe he has some ideas why with-opt-dir doesn't
work

Bug #9264: with-opt-dir not working
https://bugs.ruby-lang.org/issues/9264#change-43777

Author: spastorino (Santiago Pastorino)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
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

Thanks in advance.

--
http://bugs.ruby-lang.org/

Updated by zzak (zzak _) almost 11 years ago

  • Status changed from Assigned to Closed

Great!

Fixed by r44297 from #9256, thanks for reporting Santiago!

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0