develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [perl #24471] gv.c: identifier "copy" is undefined

From:
Nicholas Clark
Date:
November 15, 2003 15:23
Subject:
Re: [perl #24471] gv.c: identifier "copy" is undefined
Message ID:
20031115232248.GW6287@plum.flirble.org
On Fri, Nov 14, 2003 at 05:56:20PM -0500, jim@rrsl.rsmas.miami.edu wrote:

> > If that just moved the error further on, what happens with the build if
> > 
> > a: you edit config.h to remove these lines:
> > 
> > #if 42 == 1
> > #define CAT2(a,b)	a/**/b
> > #define STRINGIFY(a)	"a"
> > 		/* If you can get stringification with catify, tell me how! */
> > #endif
> > 
> > b: you 'restore' those lines, and add a #error directive inside them
> 
> My config.h file has
> 
> #if 1 == 1
> #define CAT2(a,b)       a/**/b
> ...
> 
> and
> 
> #if 1 == 42
> #define PeRl_CaTiFy(a, b)       a ## b
> ...
> 
> Do you want me to switch the 1 == 1 and 1 == 42 guard statements?

No, just take out the entire first block (from #if 1 == 1 to its corresponding
#endif)

However, based on your other message I'm not sure that this will actually
solve the preprocessor concatenation problem that you're seeing.
(Which I suspect is a preprocessor bug, but I've been bitten before
by SGI's compiler knowing more than me about the C standard, so I am wary)

Nicholas Clark



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About