[Mono-list] mono and NGPT pthreads on linux

Paolo Molaro lupus@ximian.com
Sun, 7 Apr 2002 13:19:53 +0200


On 04/07/02 Marijn Ros wrote:
> 1. The configure script doesn't support --with-gc=none (or
> --without-gc), but I needed it because I do have libgc6, linked to
> linuxthreads. I simply changed the *) case back to what is was before
> linking with libgc6 worked, but adding an xnone) case would
> be better of course.

This has been fixed in cvs a couple of days after the release, IIRC.
I have a question, though: isn't NGPT supposed to be also binary
compatible with linuxthreads? Did you get some errors linking
in libgc?

> 2. The configure script doesn't add -lpthread to the LIBS. With
> linuxthreads, this is not needed (because of -lrt?), but with
> NGPT-pthreads it is. I fixed this by adding -lpthread in the makefiles
> of all program directories, but of course it should be fixed in the
> configure script.

Yes, I think this same issue may cause some of the build errors 
on OpenBSD that someone reported a while ago.

> 3. icall.c uses environ. This gave me some problems, as glibc needs
> __USE_GNU to export that variable. I changed the two occurrances to
> __environ, but this also should be detected by the configure script
> and __USE_GNU being defined accordingly.

I think adding a:

extern char **environ;

in the file should fix the problem and should be portable to some odd
systems, too.

Thanks for testing and the feedback!

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better