[Mono-list] mono and NGPT pthreads on linux
marijn ros
marijn@mad.scientist.com
Sun, 07 Apr 2002 08:14:58 -0500
----- Original Message -----
From: Paolo Molaro <lupus@ximian.com>
Date: Sun, 7 Apr 2002 13:19:53 +0200
To: mono-list@ximian.com
Subject: Re: [Mono-list] mono and NGPT pthreads on linux
> 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.
That's nice to hear.
> I have a question, though: isn't NGPT supposed to be also binary
> compatible with linuxthreads? Did you get some errors linking
> in libgc?
NGPT leaves the original linuxthreads library in place and uses a totally different major number (12 instead of 0). And libgc claims it is very linuxthreads specific. So I didn't even try.
> > 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
Sometimes it does, sometimes it doesn't.
> lupus@ximian.com Monkeys do it better
>
>
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup