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