Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
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 19 2003 10:46AM

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


Michael Peppler                              Data Migrations, Inc.       
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions -