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

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

From:
Nicholas Clark
Date:
November 17, 2003 12:58
Subject:
[perl #24471] gv.c: identifier "copy" is undefined
Message ID:
20031117205746.GP6287@plum.flirble.org
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: jim@rrsl.rsmas.miami.edu, Nicholas Clark <nick@ccl4.org>
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

cpp_stuff='42'

in config.sh 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

cpp_stuff='1'

into

cpp_stuff='42'

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

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 -----



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