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: Re: Building Solaris Sybperl 2.08.52
Date: Dec 15 1997 4:10PM

Mike Bassman wrote:
> 
> I'm a longtime user of Sybperl 2.05 on SunOS.
> 
> I was building the new version on Solaris,
> and I'm having quite a bit of difficulty.
> Having tried both Sun's cc (Sparcworks)
> and GNU's acc, I still get compile errors (appended).

Do you *REALLY* have Sybase OpenClient 4.0 on the Solaris box???

I didn't even know such a beast existed!

Anyway, try this patch to DBlib.xs:

*** /tmp/geta1284	Mon Dec 15 08:08:55 1997
--- DBlib.xs	Mon Dec 15 08:07:46 1997
***************
*** 91,96 ****
--- 91,97 ----
  #if DBLIBVS < 420
  #define dbrecftos(s)		not_here("dbrecftos")
  #define dbsafestr(a,b,c,d,e,f)	not_here("dbsafestr")
+ #define dbversion()		"4.00"
  #ifndef DBDOUBLE
  #define DBDOUBLE	1
  #endif
***************
*** 99,104 ****
--- 100,118 ----
  #endif
  #ifndef DBBOTH
  #define DBBOTH	2
+ typedef struct daterec
+ {
+ 	DBINT		dateyear;	/* 1900 to the future */
+ 	DBINT		datemonth;	/* 0 - 11 */
+ 	DBINT		datedmonth;	/* 1 - 31 */
+ 	DBINT		datedyear;	/* 1 - 366 */
+ 	DBINT		datedweek;	/* 0 - 6 (Mon. - Sun.) */
+ 	DBINT		datehour;	/* 0 - 23 */
+ 	DBINT		dateminute;	/* 0 - 59 */
+ 	DBINT		datesecond;	/* 0 - 59 */
+ 	DBINT		datemsecond;	/* 0 - 997 */
+ 	DBINT		datetzone;	/* 0 - 127 */
+ } DBDATEREC;
  #endif
  #endif /* DBLIBVS < 420 */
  #endif /* DBLIBVS < 461 */


Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler