Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: plugin compile problem
Hi Andreas,
On Saturday 31 May 2003 6:55 pm, Andreas Fatum wrote:
> On Fri, 30 May 2003, Andreas Schultz wrote:
> > investigated the possibilities and the only reliable fix is to add
> > - -D_GNU_SOURCE to all Makefiles. Adding a #define _GNU_SOURCE to
> > thread.h doesn't help since pthread_types.h gets included before it
> > through other system headers.
>
> Andreas,
>
> pthread_types.h gets included by pthreads.h and that gets included in
> thread.h (and only from there!). So that's not the reason for your tests
> to have failed.
Not on my box with gcc-2.95.4. I have to admit that the specific circumstances
are quite elaborate and most likely highly dependant on the compiler version,
but '/usr/include/sys/types.h' includes 'bits/pthreadtypes.h' which defines
the rw_lock structures at least on debian unstable with gcc-2.95.4 and
libc6-dev-2.3.1-17.
> The reason is that you have to define "GNU_SOURCE" in the Makefiles _but_
> if you want to define it directly in the header-files you have to use
> "USE_GNU" instead. Below is a patch for thread.h which did it for me here.
what compiler and glibc version are you using?
Andreas
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index