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 MBAY dot NET>
Subject: Sybperl2.10 with Perl5.005x
Date: Dec 7 1998 2:50PM

glen@SOCRATES.BERKELEY.EDU writes:
 > Should sybperl-2.10 compile under any perl5.005x? I have gotten
 > all of my favorite perl modules to compile under perl5.005_53,
 > except sybperl.  Unfortunately, pTk doesn't seem to like any
 > flavor of Perl5.004, and I would really like to get those two
 > working together.

There's a problem with some #defines with the _5x series.

Here's a patch:

First DBlib.xs:

*** /tmp/geta22576	Mon Dec  7 06:49:00 1998
--- DBlib.xs	Mon Nov 30 08:52:08 1998
***************
*** 23,36 ****
  #define dTHR	extern int errno
  #endif
  
! #if !defined(PL_na)
  #define PL_na na
- #endif
- #if !defined(PL_sv_undef)
  #define PL_sv_undef sv_undef
- #endif
- #if !defined(PL_dirty)
  #define PL_dirty dirty
  #endif
  
  
--- 23,34 ----
  #define dTHR	extern int errno
  #endif
  
! #if PATCHLEVEL < 5 && SUBVERSION < 5
! 
  #define PL_na na
  #define PL_sv_undef sv_undef
  #define PL_dirty dirty
+ 
  #endif




Second, CTlib.xs:

*** /tmp/geta22590	Mon Dec  7 06:49:55 1998
--- CTlib.xs	Fri Nov 27 17:17:49 1998
***************
*** 25,38 ****
  #define dTHR 	extern int errno
  #endif
  
! #if !defined(PL_na)
  #define PL_na na
- #endif
- #if !defined(PL_sv_undef)
  #define PL_sv_undef sv_undef
- #endif
- #if !defined(PL_dirty)
  #define PL_dirty dirty
  #endif
  
  #include 
--- 25,36 ----
  #define dTHR 	extern int errno
  #endif
  
! #if PATCHLEVEL < 5 && SUBVERSION < 5
! 
  #define PL_na na
  #define PL_sv_undef sv_undef
  #define PL_dirty dirty
+ 
  #endif
  
  #include 

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com