weird g++ error
Robert Millan
rmh@debian.org
Sat, 11 Sep 2004 10:48:57 +0200
On Sat, Sep 11, 2004 at 09:01:16AM +0200, Guillem Jover wrote:
>
> I've tracked that down to:
>
> [-- test-bad.cc --------]
> #include <pthreads.h>
> #include <cstdlib>
> int main() { return 0; }
> [-- test-bad.cc --------]
>
> [...]
>
> And in <pthreads.h> from (GNU pth) we have:
>
> [-- <pthread.h> --------]
> #define system __pthread_system
> [-- <pthread.h> --------]
>
> [...]
>
> There are multiple ways to fix this:
>
> [...]
> * Do not define those macros in <pthread.h> as they are not defined
Nice work. Being compatible with Linuxthreads and/or NPTL sounds like the
sanest to me. Well, we're going to get rid of GNU pth eventualy anyway.
Let's just remember this to ensure the new implementation (whatever it is)
doesn't define that macro. I don't recall this error (found in openduke) to
cause major number of FTBFS so I would ignore it for now.
Btw, I have been tampering with a bunch of threading implementations. I
found NGPT, which looked promised but it's dead (superceeded by NPTL), then
I played with libkse (from FreeBSD), which needs considerable work for Glibc
integration, and I'm currently considering a fork of linuxthreads [1]. I hope
I can do some serious work on this after finished with kfreebsd-headers.
[1] I'm referring to Bruno Haible's patched linuxthreads, not the FreeBSD
fork of linuxthreads which can be found in the FreeBSD ports collection.
--
.''`. Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `' http://www.debian.org/ports/kfreebsd-gnu
`-