[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Modified:
>    trunk/config/init/hints/linux.pl
> Log:
> Defined _X_OPEN_SOURCE=600 in ccflags to fix implicit POSIX function
>       declaration warnings when compiling src/platform.c.

> +if ( $cflags !~ /-D_XOPEN_SOURCE=/ ) {
> +    # Request visibility of all POSIX symbols
> +    $cflags .= ' -D_XOPEN_SOURCE=600';
> +}

This doesn't work on my box - I get tons of warnings and it eventually
dies:

#v+
/usr/include/sched.h:69: warning: its scope is only this definition or 
declaration, which is probably not what you want.
/usr/include/sched.h:70: warning: `struct timespec' declared inside parameter 
list
In file included from include/parrot/parrot.h:101,
                 from src/tsq.c:19:
/usr/include/pthread.h:346: warning: `struct timespec' declared inside 
parameter list
In file included from include/parrot/parrot.h:286,
                 from src/tsq.c:19:
include/parrot/tsq.h:56: warning: `struct timespec' declared inside parameter 
list
src/tsq.c:333: warning: `struct timespec' declared inside parameter list
src/tsq.c:333: conflicting types for `queue_timedwait'
include/parrot/tsq.h:56: previous declaration of `queue_timedwait'
src/tsq.c: In function `queue_timedwait':
src/tsq.c:334: warning: passing arg 3 of `pthread_cond_timedwait' from 
incompatible pointer type
make: *** [src/tsq.o] Error 1

#v-

$ uname -a
Linux thu8 2.2.16 #5 Thu Oct 12 20:07:01 CEST 2000 i686 unknown

leo

Reply via email to