[Mono-list] Unable to build Mono 0.31

Richard Torkar richard.torkar@htu.se
Mon, 22 Mar 2004 18:01:02 +0100


On Mon, 2004-03-22 at 11:40 +0000, Rich Wareham wrote:

> On Monday 22 Mar 2004 09:04, Tracy Barlow wrote:
> > I get the following errors when attempting to make Mono 0.31
> 
> ...
> 
> > /usr/lib/libgthread-2.0.so /usr/lib/libgmodule-2.0.so -ldl
> > /usr/lib/libglib-2.0.so -licui18n -licuuc -licudata -lnsl -lpthread -lm
> > -lrt -Wl,--rpath -Wl,/usr/local/lib
> > ./.libs/libmono.so: undefined reference to `___tls_get_addr'
> > collect2: ld returned 1 exit status
> 
> I had this error crop up when I made an ebuild for 0.31 from the 0.30.1 
> version in Gentoo. It appears that Mono now does different things if it 
> thinks NPTL is enabled. Calling ./configure --without-nptl fixed it for me.

The "correct" way to "fix" this problem is to compile glibc using the
nptl flag, i.e. 

USE="nptl"

and then use the 2.6.* kernels in Gentoo.

Maybe put this in the FAQ or something, Paolo?

/Richard