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

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

Thread Previous | Thread Next
From:
Martin Vorlaender
Date:
June 28, 2002 02:58
Subject:
RE: logical name SYS confuses compiler (was RE: [PATCH: RC2] addgetppid() to vmsperl)
Message ID:
a5fc258a5614605a7735e4e2ff5cd1993d1c319a@pdv-systeme.de
Craig A. Berry <craigberry@mac.com> wrote:
> Martin Vorlaender wrote:
> >Give that man a cigar!
>
> I don't smoke, but I'll take one of those nice German beers :-).

Promised I'll buy you one. If you ever come to the vicinity of Goslar,
Germany...

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

Sorry, but there's no SYS on the Alpha. I'll look into that later.

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

It certainly is. I defined SYS to point to the reference copies of the
DEC C header files, and the build went smooth. MMS TEST, though,
wouldn't
even start (fails at the point where it tries to deassign the - system -
logical). Finally I gave up fighting and deassign/system'ed it... (it
really is nice sometimes to have admin privileges ;-)

MMS TEST barked at 27 tests:

ext/Time/HiRes/HiRes.................FAILED at test 14

not ok 14
# Time::HiRes::time() not close to time()
# s = -317041.3570998907, n = 100, s/n = -3170.413570998907

lib/File/Spec/t/rel2abs2rel..........FAILED at test 4

not ok 4 - canonpath on abs executable
Can't pipe "[---.vorlaender.sources.perl-5_8_0-rc2]perl.exe;1
rel2abs2rel543163348.pl":
 no such file or directory at ../lib/file/spec/t/rel2abs2rel.t line 43.
#     Failed test (../lib/file/spec/t/rel2abs2rel.t at line 65)
#          got: ''
#     expected: 'ok
# '

Could be due to the call sequence I used
($ MCR Sys$Disk:[-]Perl.exe "-I[-.lib]" ../lib/File/Spec/t/rel2abs2rel )

lib/Math/BigInt/t/bare_mbi...........FAILED at test 2326
lib/Math/BigInt/t/bigintpm...........FAILED at test 2326
lib/Math/BigInt/t/sub_mbi............FAILED at test 2326

The message behind all of these is

# Test 2326 got: '1701411834604692e+23'
(../lib/math/bigint/t/bigintpm.inc at line 394)
#      Expected: '1e+129'

lib/Tie/File/t/01_gen................FAILED at test 36
lib/Tie/File/t/04_splice.............FAILED at test 9
lib/Tie/File/t/05_size...............FAILED at test 10
lib/Tie/File/t/07_rv_splice..........FAILED at test 6
lib/Tie/File/t/09_gen_rs.............FAILED at test 25
lib/Tie/File/t/10_splice_rs..........FAILED at test 9
lib/Tie/File/t/11_rv_splice_rs.......FAILED at test 6
lib/Tie/File/t/13_size_rs............FAILED at test 8
lib/Tie/File/t/15_pushpop............FAILED at test 12
lib/Tie/File/t/17_misc_meth..........FAILED at test 9
lib/Tie/File/t/19_cache..............FAILED at test 8
lib/Tie/File/t/20_cache_full.........FAILED at test 12
lib/Tie/File/t/22_autochomp..........FAILED at test 36
lib/Tie/File/t/23_rv_ac_splice.......FAILED at test 6
lib/Tie/File/t/24_cache_loop.........FAILED at test 3
lib/Tie/File/t/25_gen_nocache........FAILED at test 36
lib/Tie/File/t/26_twrite.............FAILED at test 2
lib/Tie/File/t/30_defer..............FAILED at test 13
lib/Tie/File/t/31_autodefer..........FAILED at test 27
lib/Tie/File/t/32_defer_misc.........FAILED at test 17
lib/Tie/File/t/33_defer_vs...........FAILED at test 13

The message behind all of these is

truncate not implemented at ../lib/Tie/File.pm line 745, <FH> line ...

lib/vmsish...........................FAILED at test 22

In singular testing I get

not ok 22 - (time) UTC:1025256379 VMS:1025256379
not ok 23 - (localtime)
# UTC: 19 26 11 28 5 102 5 178 -1
# VMS: 19 26 11 28 5 102 5 178 -1
not ok 24 - (gmtime)
# UTC: 19 26 9 28 5 102 5 178 0
# VMS: 19 26 9 28 5 102 5 178 0
not ok 25 - (stat) UTC: 1022943813  VMS: 1022943813

cu,
  Martin
--
                       | Martin Vorlaender         VMS & WNT programmer
 OpenVMS is today      | work: mv@pdv-systeme.de
 what Microsoft wants  |       http://www.pdv-systeme.de/users/martinv/
 Windows NT 8.0 to be! | home: martin@radiogaga.harz.de


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