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 peppler dot org>
Subject: Re: Error while building sybperl on Windows 2000
Date: Apr 17 2003 12:43AM

On Wed, 2003-04-16 at 09:14, Abhin Parkhi wrote:
> Michael,
>  
> This is the output of perl Makefile.PL



OK that looks fine.

I think it's something a little weirder. On most systems "TRUE" is a
#define in C, and the DBlib.xs code has the following:

        if (strEQ(name, "TRUE"))
#ifdef TRUE
            return TRUE;
#else
            goto not_there;
#endif

around line 3136 or so. It appears that although TRUE is a valid symbol,
it isn't a #define (because the "goto not_there" is what gets executed).

Try changing this block to

        if (strEQ(name, "TRUE"))
            return TRUE;

and then rebuild.

Michael

> Michael Peppler  wrote:
>         On Wed, 2003-04-16 at 06:56, Abhin Parkhi wrote:
>         > Hi,
>         > 
>         > I am trying to build Sybperl 2.15 on a Windows 2000 machine.
>         I have 
>         > Sybase 12.5 and Activestate perl 5.8.0. Here is the error
>         that I get
>         > while 
>         > making test.
>         > 
>         > Thanks!
>         > 
>         > -- Abhin
>         > 
>         > C:\MYDOWN~1\SYBPER~1.15>nmake test
>         > 
>         > Microsoft (R) Program Maintenance Utility Version 7.00.9466
>         > Copyright (C) Microsoft Corporation. All rights reserved.
>         > 
>         > C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" 
>         > "test_harness(0, '..
>         > \blib\lib', '..\blib\arch')" t\bcp.t
>         > t\bcp....Your vendor has not defined Sybase::DBlib macro
>         TRUE at 
>         > t\bcp.t line 44
>         
>         What is the output of the rest of the make?
>         
>         In particular, what is the output of "perl Makefile.PL" ?
>         
>         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
> 
> 
> ______________________________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
-- 
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