|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: help compiling 2.14 on Mac OS X
Date: May 3 2002 12:13AM
On Thu, 2002-05-02 at 16:35, Lucas Rockwell wrote:
> Hi all,
>
> I am trying to get 2.14 to install on OS X and I am getting an error with
> CTlib. However, before I give the error, I want to mention that I have
> gotten 2.13 to compile, but then I have a problem with "dbgetmacprocs" in
> DBlib. I get the following error for that:
>
> dyld: perl Undefined symbols:
> _dbgetmaxprocs
You can just stub it out.
In DBlib.xs, at the top, add something like:
static int dbgetmaxprocs() { return 25; }
and try again.
>
> When I remove all mention of CTlib from the Makefile for 2.14 it does
> compile, but then the make test fails with the same error above. So, even
> if I get 2.14 to compile, I think I'll still have this problem.
>
> Anyway, here is the 2.14 make error:
>
> [earth:~/src/sybperl-2.14] lr% make
> cc -c -I/usr/local/freetds/include -pipe -fno-common
> -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include -O3
> -DVERSION=\"2.14\" -DXS_VERSION=\"2.14\"
> -I/System/Library/Perl/darwin/CORE -DCTLIBVS=100 -DSYBPLVER='"2.14"'
> -DDO_TIE CTlib.c
> CTlib.xs: In function `initialize':
> CTlib.xs:1963: `CS_COMPLETION_CB' undeclared (first use in this function)
> CTlib.xs:1963: (Each undeclared identifier is reported only once
> CTlib.xs:1963: for each function it appears in.)
> CTlib.xs: In function `XS_Sybase__CTlib_ct_callback':
> CTlib.xs:6735: `CS_COMPLETION_CB' undeclared (first use in this function)
The completion callback is used for async database access. This
functionality is not available with FreeTDS.
Try adding something like:
#define CS_COMPLETION_CB 1
at the top of CTlib.xs, and try again...
BTW - in a few months you'll have native Sybase libs for OS X.
Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler@peppler.org *or* mpeppler@mbay.net
http://www.mbay.net/~mpeppler
International Sybase User Group: http://www.isug.com
|