bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX xlc gets confused by logic in stdio.h


From: Bruno Haible
Subject: Re: AIX xlc gets confused by logic in stdio.h
Date: Sun, 17 Jan 2010 19:34:49 +0100
User-agent: KMail/1.9.9

Ralf Wildenhues wrote:
> I'm seeing this on AIX 5.3:
> 
>         /tmp/gl/build-aux/compile cc -qlanglvl=extc89 -qlanglvl=extc99  -g   
> -o test-select test-select.o ../gllib/libgnu.a   -lm  
> ld: 0711-317 ERROR: Undefined symbol: .__printf__
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> ...
> #if 1
> # if 1
> /* Don't break __attribute__((format(printf,M,N))).  */
> #  define printf __printf__
> extern int printf (const char *format, ...)
>        __attribute__ ((__format__ (__printf__, 1, 2))) _GL_ARG_NONNULL ((1));
> # endif
> #elif 1 && 0 && 1
> /* Don't break __attribute__((format(printf,M,N))).  */
> # define printf __printf__
> extern int printf (const char *format, ...)
>        __attribute__ ((__format__ (__printf__, 1, 2))) _GL_ARG_NONNULL ((1));
> #elif defined GNULIB_POSIXCHECK
> # undef printf
> # define printf \
>     (GL_LINK_WARNING ("printf is not always POSIX compliant - " \

This is all as expected. Can you look with "nm" what symbols are defined by
gllib/printf.o, and whether the need for the symbol comes from test-select.o
or from libintl?

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]