[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] build failure with cpp-3.3
From: |
Richard Dawe |
Subject: |
Re: [bug-inetutils] build failure with cpp-3.3 |
Date: |
Thu, 23 Oct 2003 22:19:30 +0100 |
Hello.
Robert Millan wrote:
>
> Hi!
>
> ifconfig fails to build with preprocessor errors when attempting with cpp-3.3:
>
> if gcc -DHAVE_CONFIG_H -I. -I../../inetutils-1.4.2+20031022/ifconfig -I..
> -g -O2 -MT options.o -MD -MP -MF ".deps/options.Tpo" \
> -c -o options.o `test -f
> '../../inetutils-1.4.2+20031022/ifconfig/options.c' || echo
> '../../inetutils-1.4.2+20031022/ifconfig/'`../../inetutils-1.4.2+20031022/ifconfig/options.c;
> \
> then mv -f ".deps/options.Tpo" ".deps/options.Po"; \
> else rm -f ".deps/options.Tpo"; exit 1; \
> fi
> ../../inetutils-1.4.2+20031022/ifconfig/options.c:256:42: pasting "->" and
> "address" does not give a valid preprocessing token
[snip]
This means you the macro concatenation operator is used unnecessarily. E.g.:
for:
#define MACRO(x, y) x->##y
You don't need the "##".
The other cases have a bogus "##" before a semicolon.
I would contribute a patch, but I can't get paperwork.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
"You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek