PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at bluewin dot ch>
Subject: sybperl 2.15 with ActiveState perl 5.8.0
Date: Aug 20 2003 2:03PM

Edward Haynes has figured out what needed to be fixed in the sybperl
code to allow it to build against the current 5.8.0 release of
ActiveState perl for Windows. His change is a simple one:

In CTlib.pm and DBlib.pm the AUTOLOAD() subroutine needs to be modified
like this:

  sub AUTOLOAD {
    my $constname;
    ($constname = $AUTOLOAD) =~ s/.*:://;
    
    # The second argument to constant() is never used...
    my $val = constant($constname, 0);
    # Ensure ActivePerl does not mishandle local $!
    local $! = 0;         #### <-------- ADD THIS LINE
    if ($! != 0) {
        if ($! =~ /Invalid/) {
            $AutoLoader::AUTOLOAD = $AUTOLOAD;
            goto &AutoLoader::AUTOLOAD;
        }
        else {
            croak "Your vendor has not defined Sybase::CTlib macro
$constname";
        }
    }
    eval "sub $AUTOLOAD { $val }";
    goto &$AUTOLOAD;
}

Edward used Visual C++ .NET to build sybperl, and will submit PPM files
to ActiveState.

His build uses the 11.1.1 OpenClient package because he's currently
using an 11.9.2 ASE server.

However, he's also built it with OC 12.5, and would be interested in
getting in contact with someone who could run the tests against a 12.5
server to make sure that everything works correctly. So if you have a
Windows system with OC 12.5 installed and ActiveState perl (5.8.0) and
would like to give this a try please contact Edward or myself (Edward is
at edward.haynes@salotteries.sa.gov.au)

Thanks.

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.mbay.net/~mpeppler/resume.html