On Fri, 2005-10-07 at 09:34 +0200, Leopold Toetsch wrote:

> [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:

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

That's strange.  Which version of glibc do you have?  What does the
manpage for posix_memalign say?  Mine's:

       #define _XOPEN_SOURCE 600
       #include <stdlib.h>

       int posix_memalign(void **memptr, size_t alignment, size_t size);

I'm on kernel 2.6.12 on Linux/PPC with glibc 2.3.4.20041102.

-- c

Reply via email to