[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX xlc gets confused by logic in stdio.h
From: |
Ralf Wildenhues |
Subject: |
Re: AIX xlc gets confused by logic in stdio.h |
Date: |
Sun, 17 Jan 2010 19:43:54 +0100 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
* Bruno Haible wrote on Sun, Jan 17, 2010 at 07:34:49PM CET:
> 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.
[...]
>
> 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?
It comes from test-select.o:
$ nm -B ../gllib/printf.o
44 t .bf
116 t .ef
0 T .printf
- U .rpl_vfprintf
152 d TOC
160 d _$STATIC
176 d _$STATIC
- U _iob
156 d _iob
152 d printf
164 D printf
$ nm -B test-select.o | grep print
- U .__printf__
$ cc -qlanglvl=extc89 -qlanglvl=extc99 -DHAVE_CONFIG_H -I. -I../../gltests
-I. -I../../gltests -I.. -I../../gltests/.. -I../gllib
-I../../gltests/../gllib -D_THREAD_SAFE -g ../../gltests/test-select.c -E
[...]
#line 128 "../gllib/stdio.h"
extern int dprintf (int fd, const char *format, ...)
;
#line 178
extern int _gl_warn_on_use;
#line 184
extern FILE * rpl_fopen (const char *filename, const char *mode)
;
#line 198
extern int rpl_fprintf (FILE *fp, const char *format, ...)
[...]
#line 501
extern int __printf__ (const char *format, ...)
;
[...]
#line 51 "../../gltests/test-select.c"
[...]
static void
failed (const char *reason)
{
if (++failures > 1)
__printf__ (" ");
__printf__ ("failed (%s)\n", reason);
}
Cheers,
Ralf