Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307159 - dev-lang/ruby-1.8.7_p249 fails on x86-solaris with USE=threads
Summary: dev-lang/ruby-1.8.7_p249 fails on x86-solaris with USE=threads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL: http://redmine.ruby-lang.org/issues/s...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-28 09:43 UTC by Daniel Vergien
Modified: 2010-02-28 13:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vergien 2010-02-28 09:43:15 UTC
Compiling ruby with USE=threads fails on solaris 10 with the following message:
i386-pc-solaris2.10-gcc -shared -o ../../.ext/i386-solaris2.10/bigdecimal.so bigdecimal.o -L. -L../.. -L.  -Wl,-E    -Wl,-R -Wl,/nilfisk/home/dve/gentoo-new/usr/lib -L/nilfisk/home/dve/gentoo-new/usr/lib -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
/nilfisk/home/dve/gentoo-new/usr/lib/gcc/i386-pc-solaris2.10/4.4.3/../../../../i386-pc-solaris2.10/bin/ld: ../../libruby18.so: pthread_mutex_unlock: invalid version 2 (max 0)
../../libruby18.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/i386-solaris2.10/bigdecimal.so] Error 1

compiling with USE="-threads" works fine
Comment 1 Fabian Groffen gentoo-dev 2010-02-28 09:45:06 UTC
can you try if manually replacing -lpthread with -pthread solves the issue?
Comment 2 Daniel Vergien 2010-02-28 10:05:53 UTC
I changed -lpthread in the Makefiles and rbconfig.rb to -pthread and then it compiles fine.
Comment 3 Fabian Groffen gentoo-dev 2010-02-28 12:35:16 UTC
I fixed this a bit hacky in the configure script by relying on GCC's -pthread unconditionally.