develooper Front page | perl.vmsperl | Postings from June 2002

logical name SYS confuses compiler (was RE: [PATCH: RC2] addgetppid() to vmsperl)

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
June 27, 2002 08:20
Subject:
logical name SYS confuses compiler (was RE: [PATCH: RC2] addgetppid() to vmsperl)
Message ID:
a05111b00b940d3a0c96e@[172.16.52.1]
At 2:03 PM +0200 6/27/02, Martin Vorlaender wrote:
>
>Give that man a cigar!

I don't smoke, but I'll take one of those nice German beers :-).

>Because SYS was defined (systemwide!) to SYS$LIBRARY:,
>including <sys/stat.h> grabbed the old VAX C header file.

So that gets to the root of your VAX build problems.  If you have SYS
defined on the Alpha where POSIX fails to build, there could be a
similar problem.  For example the compiler might be looking at older
extracted reference copies rather than up-to-date copies in the text
libraries.

Now what to do about it.  I have a feeling that the stuff in
[.vms]descrip_mms.template where SYS is defined may only be there for
VAX C and/or GNU C.  I'm reluctant to simply cut it out, though,
because I don't know what might depend on it.  Does anyone know the
history here?  It seems at the least we should add SYS to the list of
dangerous logical names.
-- 
________________________________________
Craig A. Berry
mailto:craigberry@mac.com

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Thread Previous | Thread Next


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