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

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

Nicholas Clark
November 17, 2003 12:58
[perl #24471] gv.c: identifier "copy" is undefined
Message ID:
Heiko Schlichting said that I could/should forward this to the list.
Seems interesting. I've not yet looked at Configure, or what it's up to
in the CPP tests, but it seems that we have enough information to work
round the problem. (without needing to assign blame either way]

Nicholas Clark

----- Forwarded message from Heiko Schlichting <heiko@FU-Berlin.DE> -----

Date: Mon, 17 Nov 2003 18:17:42 +0100
From: Heiko Schlichting <heiko@FU-Berlin.DE>
To:, Nicholas Clark <>
Subject: [perl #24471] gv.c: identifier "copy" is undefined
User-Agent: Mutt/1.5.4i

Jim, Nick,

I noticed your conversion on the perlbug list but as I'm not on the list
myself please excuse that I bother both of you with personal mail.
I noticed the same problem which Jim reported on my systems using IRIX MIPS
compiler 7.4.1 too. The problem occurs with perl 5.6.1 and 5.8.2 (didn't
tried other versions).

Without the modifications Nick suggested I can fix the problem setting


in before Configure distributes it variables. Looking at the code
of Configure I assume that it is not are problem of the compiler but
a misbehavior of Configure testing with cppstdin instead of cc -E with
input from a file. The IRIX compiler behaves in a different way for input
from stdin and for input from a file:

| [heiko@Punkt] 107 (/tmp): cat cpp_stuff.c
| #define RCAT(a,b)a/**/b
| #define ACAT(a,b)a ## b
| RCAT(Rei,ser)
| ACAT(Cir,cus)
| [heiko@Punkt] 108 (/tmp): cc -E - < cpp_stuff.c
| # 1 ""
| Reiser
| Cir ## cus
| [heiko@Punkt] 109 (/tmp): cc -E cpp_stuff.c
| #line 1 "cpp_stuff.c"
| Rei ser
| Circus

Surprising, but not really a bug. The Configure script tests with input
from stdin but during compilation it used input from a file. Correcting
this manually by changing




seems to fix the problem - at least for me. If you find this information
valuable for someone else you have my permission to forward this text or
the information where ever you want (with or without mentioning me).


Heiko Schlichting        | Freie Universität Berlin
heiko@FU-Berlin.DE       | Zentraleinrichtung für Datenverarbeitung (ZEDAT)
Telefon +49 30 838-54327 | Fabeckstraße 32
Telefax +49 30 838454327 | 14195 Berlin

----- End forwarded message ----- Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About