niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Not Unix » VMS » vmsperl
build failure 5.84-5.88
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Chris Sharman
*nix forums addict


Joined: 02 Aug 2005
Posts: 83

PostPosted: Tue Feb 07, 2006 11:31 am    Post subject: build failure 5.84-5.88 Reply with quote

Alpha VMS 7.3-1, DEC C 6.5-001, MMK 3.9-6, MMS 3.4-3.
Just a default build.
I can't upgrade VMS (I need appletalk to work), and the prebuilt
binaries are for vms 7.3-2 up.
I want a copy of perl to massage VMS/RMS data files into a format
suitable for load into mysql.
First I need to build it, then I need to write scripts for each file.

Fairly consistent failure building attrs with 5.8.8,.4,.7:
Making attrs (dynamic)
Writing Descrip.MMS for attrs
Perl 5.00503 required--this is only version 5.00404, stopped at
.../../lib/ExtUtils/Command.pm line 3.
BEGIN failed--compilation aborted at ../../lib/ExtUtils/Command.pm line 3.
BEGIN failed--compilation aborted.
%SYSTEM-F-NOLOGNAM, no logical name match
%MMK-F-ERRUPD, error status %X000001BC occurred when updating target
[--.LIB].EXISTS
%MMK-F-ERRUPD, error status %X1C14803C occurred when updating target DYNEXT

While I'm asking, here's the script I wrote for one file (no binary
data, so I could ftp this one to fedora & perl it there). Criticism
welcome - my first perl. (file contains a 16 character key, padded with
spaces on vms, and a largeish varchar field (up to 2k) containing '\r'
and printable characters).

open(INFILE, "/var/lib/mysql/Stationery/Style.sql") or die("Can't open
input");
open(OUTFILE, ">/var/lib/mysql/Stationery/Style.imp") or die("Can't open
output");
while (<INFILE>) {
$k = substr($_,0,16);
# print $k,"|\n";
$k =~ s/\s+$//;
# print $k,"|\n";
s/\s+$//;
print OUTFILE '"',$k,'"',"\t",substr($_,16),"\n";
break;
}

Thanks
Chris

Any views expressed in this message are those of the sender and not necessarily those of CCA Group. The unauthorized use, disclosure, copying or alteration of this message is forbidden. The contents of this message may be confidential and/or privileged, copyright CCA Group and are intended solely for the use of the individual or entity to whom they are addressed. Whilst this message has been scanned, CCA Group cannot guarantee that it is virus free or compatible with your systems and accepts no responsibility for any loss or damage arising from its use. The recipient is advised to run their own anti-virus software. If you receive this message in error please contact postmaster@ccagroup.co.uk immediately, destroy any copies and delete it from your computer systems.
Back to top
John E. Malmberg
*nix forums Guru Wannabe


Joined: 30 May 2005
Posts: 264

PostPosted: Tue Feb 07, 2006 12:45 pm    Post subject: Re: build failure 5.84-5.88 Reply with quote

Chris Sharman wrote:
Quote:
Alpha VMS 7.3-1, DEC C 6.5-001, MMK 3.9-6, MMS 3.4-3.
Just a default build.
I can't upgrade VMS (I need appletalk to work), and the prebuilt
binaries are for vms 7.3-2 up.
I want a copy of perl to massage VMS/RMS data files into a format
suitable for load into mysql.
First I need to build it, then I need to write scripts for each file.

Fairly consistent failure building attrs with 5.8.8,.4,.7:
Making attrs (dynamic)
Writing Descrip.MMS for attrs
Perl 5.00503 required--this is only version 5.00404, stopped at
../../lib/ExtUtils/Command.pm line 3.
BEGIN failed--compilation aborted at ../../lib/ExtUtils/Command.pm line 3.
BEGIN failed--compilation aborted.
%SYSTEM-F-NOLOGNAM, no logical name match
%MMK-F-ERRUPD, error status %X000001BC occurred when updating target
[--.LIB].EXISTS
%MMK-F-ERRUPD, error status %X1C14803C occurred when updating target DYNEXT

Watch out for logical names like LIB and BIN that can cause Perl to
malfunction. There is a DECC$DISABLE_TO_VMS_LOGNAME_TRANSLATION feature
logical that can be set before doing the build that can prevent some of
these translations.

You may also need to enable the DECC$DISABLE_POSIX_ROOT logical name to
prevent some confusion.

If either of these make the build work for you, please post back here.

The GNV product incorrectly sets the BIN logical name in the system
table, and other applications may set a LIB logical name.

I am not working on 5.8.8 myself as it does not have critical features
that I need for some projects and customers, so I am trying to get blead
up to speed for that.

Quote:
While I'm asking, here's the script I wrote for one file (no binary
data, so I could ftp this one to fedora & perl it there). Criticism
welcome - my first perl. (file contains a 16 character key, padded with
spaces on vms, and a largeish varchar field (up to 2k) containing '\r'
and printable characters).

I can not help with that at the moment, but I would recommend looking at
CPAN to see if there is a MYSQL data access module for Perl that has
been ported to OpenVMS that you can add in to your Perl.

If there is one, and it has not been ported to OpenVMS, I would
recommend posting back here and also letting the maintainer of the VMS
port of Mysql know about that.

I do not have Mysql running or have any experience with it.

-John
wb8tyw@qsl.net
Personal Opinion Only
Back to top
Craig A. Berry
*nix forums Guru Wannabe


Joined: 27 May 2005
Posts: 143

PostPosted: Tue Feb 07, 2006 1:50 pm    Post subject: Re: build failure 5.84-5.88 Reply with quote

At 11:31 AM +0000 2/7/06, Chris Sharman wrote:
Quote:
Alpha VMS 7.3-1, DEC C 6.5-001, MMK 3.9-6, MMS 3.4-3.
Just a default build.
I can't upgrade VMS (I need appletalk to work), and the prebuilt
binaries are for vms 7.3-2 up.

One of the ones I pointed you to yesterday was built on 7.2-1, as its
name implies:

http://h71000.www7.hp.com/freeware/freeware70/perl/perl-5_8_4-vmsaxp-7_2-1.zip

But that said, you should be able to build Perl in your environment:
I've done it many times on a system that fits the same description.

Quote:
I want a copy of perl to massage VMS/RMS data files into a format
suitable for load into mysql.
First I need to build it, then I need to write scripts for each file.

Fairly consistent failure building attrs with 5.8.8,.4,.7:
Making attrs (dynamic)
Writing Descrip.MMS for attrs
Perl 5.00503 required--this is only version 5.00404, stopped at
../../lib/ExtUtils/Command.pm line 3.

Somehow it's confused about what version of Perl it's building. I
would make sure that you have not unpacked the source archive into a
directory that already has an old Perl or parts of it, and after that
check symbols, logical names, and command tables to see why it's
pointing to an old Perl while trying to build a new one.

Quote:
BEGIN failed--compilation aborted at ../../lib/ExtUtils/Command.pm line 3.
BEGIN failed--compilation aborted.
%SYSTEM-F-NOLOGNAM, no logical name match
%MMK-F-ERRUPD, error status %X000001BC occurred when updating target
[--.LIB].EXISTS
%MMK-F-ERRUPD, error status %X1C14803C occurred when updating target DYNEXT

While I'm asking, here's the script I wrote for one file (no binary
data, so I could ftp this one to fedora & perl it there). Criticism
welcome - my first perl. (file contains a 16 character key, padded with
spaces on vms, and a largeish varchar field (up to 2k) containing '\r'
and printable characters).

open(INFILE, "/var/lib/mysql/Stationery/Style.sql") or die("Can't open
input");
open(OUTFILE, ">/var/lib/mysql/Stationery/Style.imp") or die("Can't open
output");
while (<INFILE>) {

I would think you would want a chomp call here if there are newlines
in the input file.

Quote:
$k = substr($_,0,16);
# print $k,"|\n";
$k =~ s/\s+$//;
# print $k,"|\n";
s/\s+$//;
print OUTFILE '"',$k,'"',"\t",substr($_,16),"\n";
break;
}

Thanks
Chris


--
________________________________________
Craig A. Berry
mailto:craigberry@mac.com

"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
Back to top
Craig A. Berry
*nix forums Guru Wannabe


Joined: 27 May 2005
Posts: 143

PostPosted: Tue Feb 07, 2006 4:18 pm    Post subject: Re: build failure 5.84-5.88 Reply with quote

On Tuesday, February 07, 2006, at 08:33AM, Chris Sharman <chris.sharman@ccagroup.co.uk> wrote:

Quote:
... failed again - is it tripping over ODS5
(disk$web:[tools.perl-5^.8^.8]) ?
I think I'll build without dots.

From README.vms, which is recommended reading for anyone buliding Perl on VMS, especially those who have run into trouble while attempting to do so:

=head1 Unpacking the Perl source code

You may need to set up a foreign symbol for the unpacking utility of choice.

If you unpack a perl source kit with a name containing multiple periods on
an ODS-5 volume using recent versions of vmstar (e.g. V3.4 or later) you may
need to be especially careful in unpacking the tape archive file. Try to use
the ODS-2 compatability qualifiers such as:

vmstar /extract/verbose/ods2 perl-V^.VIII^.III.tar

or:

vmstar -xvof perl-5^.8^.3.tar

If you neglected to use the /ODS2 qualifier or the -o switch then you
could rename the source directory:

set security/protection=(o:rwed) perl-5^.8^.3.dir
rename perl-5^.8^.3.dir perl-5_8_3.dir

Perl on VMS as of 5.8.3 does not completely handle extended file
parse styles such as are encountered on ODS-5. While it can be built,
installed, and run on ODS-5 filesystems; it may encounter
trouble with characters that are otherwise illegal on ODS-2
volumes (notably the ^. escaped period sequence).
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 5:12 pm | All times are GMT
navigation Forum index » Not Unix » VMS » vmsperl
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts MySQL Max Build Policy Kaj Arnö MySQL 0 Fri Jul 21, 2006 2:08 pm
No new posts RedirectMatch failure at ISP dlspaude@visi.com Apache 0 Fri Jul 21, 2006 11:10 am
No new posts Backup failure notification for 10g EM Console (not grid) NetComrade Server 0 Fri Jul 21, 2006 6:36 am
No new posts invalid hash entry in internal DNS code causes assertion ... Bertold Kolics Squid 0 Thu Jul 20, 2006 7:56 pm
No new posts re-build physical standby in DG setup EdStevens Server 3 Thu Jul 20, 2006 4:37 pm

Credit Cards | Credit Counseling | Mobile Phone deals | Loan | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1831s ][ Queries: 16 (0.0568s) ][ GZIP on - Debug on ]