Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17177 closed defect (fixed)

Ruby19 install fails on intel 10.4.11 with multiply defined symbols

Reported by: joda@… Owned by: febeling@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), joda@…, arto.bendiken@…
Port: ruby19

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I tried sudo port -v install ruby19

Eventually I got this:

cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../../../.ext/i386-darwin8/json/ext/parser.bundle parser.o unicode.o -L. -L../../../.. -L. -L/opt/local/lib    -lruby1.9  -lpthread -ldl -lobjc
compiling mathn/complex
mkdir -p ../../../.ext/i386-darwin8/mathn
/usr/bin/gcc-4.0 -I. -I../../../.ext/include/i386-darwin8 -I../../.././include -I../../.././ext/mathn/complex -DRUBY_EXTCONF_H=\"extconf.h\" -DEXT_MATHN -DCANON -DCLCANON  -fno-common -O2 -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o complex.o -c complex.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../../.ext/i386-darwin8/mathn/complex.bundle complex.o -L. -L../../.. -L. -L/opt/local/lib    -lruby1.9  -lpthread -ldl -lobjc
/usr/bin/ld: multiple definitions of symbol _rb_complex_raw
complex.o definition of _rb_complex_raw in section (__TEXT,__text)
../../../libruby1.9.dylib(complex.o) definition of _rb_complex_raw
/usr/bin/ld: multiple definitions of symbol _rb_complex_polar
complex.o definition of _rb_complex_polar in section (__TEXT,__text)
../../../libruby1.9.dylib(complex.o) definition of _rb_complex_polar
/usr/bin/ld: multiple definitions of symbol _rb_complex_new
complex.o definition of _rb_complex_new in section (__TEXT,__text)
../../../libruby1.9.dylib(complex.o) definition of _rb_complex_new
/usr/bin/ld: multiple definitions of symbol _rb_Complex
complex.o definition of _rb_Complex in section (__TEXT,__text)
../../../libruby1.9.dylib(complex.o) definition of _rb_Complex
collect2: ld returned 1 exit status
make[1]: *** [../../../.ext/i386-darwin8/mathn/complex.bundle] Error 1
make: *** [exts] Error 1
Warning: the following items did not execute (for ruby19): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

This is on a recently selfupdated macports on OS 10.4.11 on a MacBookPro

Change History (12)

comment:1 Changed 16 years ago by joda@…

Cc: joda@… added

Cc Me!

comment:2 Changed 16 years ago by joda@…

Because I failed to RTFM first, I failed to add the maintainer's email
febeling@…

comment:3 Changed 16 years ago by febeling@…

Owner: changed from macports-tickets@… to febeling@…

No worries, I've seen it.

Problem is, I don't have access to a 10.4 system, and on my machine (10.5.5), it builds fine. But I'll have a look if there is something upstream, because that's where I suspect the cause.

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:5 Changed 16 years ago by febeling@…

Can someone try to build port19 on 10.4 to confirm this report, and maybe as well try to build the tarball directly? The ruby 1.9 bugtracker doesn't have an issues for that, but we should probably file one, if the problem can be reproduced.

Ruby 1.9 bugtracker is here: http://redmine.ruby-lang.org/projects/show/ruby-19

comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

I experienced the same issue, also on a 10.4.11 MacBook Pro. I did not try building standalone.

comment:7 Changed 16 years ago by febeling@…

Since the portfile is very straightforward I just assume that the build configuration is broken for 10.4.11. I filed a bug against ruby-1.9.

comment:8 Changed 16 years ago by arto.bendiken@…

Cc: arto.bendiken@… added

Cc Me!

comment:9 Changed 16 years ago by arto.bendiken@…

I'm experiencing this issue on 10.4.11 as well.

comment:10 Changed 16 years ago by arto.bendiken@…

The bleeding edge Ruby 1.9 SVN snapshot now built fine for me, so despite the lack of information on the upstream ticket I believe this issue has been resolved.

As for updating our portfile to make this build successfully, we'll probably just have to wait for the next official 1.9 snapshot, or else use the dailies at ftp://ftp.ruby-lang.org/pub/ruby/snapshot.tar.gz - the problem there being that the checksums will keep changing.

comment:11 Changed 16 years ago by febeling@…

Resolution: fixed
Status: newclosed

This is reported to be fixed in latest 1.9.1 revisions, from which preview2 is derived. Please reopen if this still gives trouble. See r42916 and #17474.

comment:12 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.