[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texinfo bug/patch
From: |
Tyler |
Subject: |
Re: Texinfo bug/patch |
Date: |
Fri, 11 Jan 2002 13:24:27 -0500 (EST) |
On Fri, 11 Jan 2002, Eli Zaretskii wrote:
> > From: Tyler <address@hidden>
> > Date: Thu, 10 Jan 2002 22:51:27 -0500 (EST)
> >
> > Has anyone noticed that Texinfo doesn't like to compile with GCC 3.0.2,
> > and if not, would anyone like a patch for it?
>
> Texinfo compiles for me with GCC 3.0.2 without a hitch. Perhaps the
> problem is not the compiler but the system headers? What error
> messages do you see?
>
Error message received was:
-DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE
_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c info.c
info.c:567:1: directives may not be used inside a macro argument
info.c:567:1: unterminated argument list invoking macro "printf"
info.c: In function `info_short_help':
info.c:571: parse error before string constant
make[2]: *** [info.o] Error 1
I did some research and found that this error is due to the combination of
gcc 3.0.2 and glibc 2.2.3. The problem is apparently that glibc defines
printf as a macro. My bad for not looking around more before posting.
This can be fixed by either #undef-ing printf first or rewriting the
printf statement(s). To be honest, I could use a better explanation of
why this happens.
--
tyler at zerodivide dot cx
AIM: zerodivide1101
Mobile SMS: tyler-mobile at zerodivide dot cx
Now playing/last played: Nothing.
Congratulation levelup!