freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Patrick Spinler <pspinler AT yahoo.com>
- To: freetds AT lists.ibiblio.org
- Cc: Randall P Runtsch <rruntsch AT mayo.edu>, David K Berry <Berry.David AT mayo.edu>, Kim D Nelson <nelson.kim AT mayo.edu>
- Subject: [freetds] VMS decc FreeTDS compilation question
- Date: Mon, 13 Oct 2003 15:06:54 -0500
Hello all:
I'm trying to compile a sybase client C program using Compaq C V6.4-005 on OpenVMS Alpha V7.3-1 against FreeTDS 0.61_2 downloaded from <http://www.freetds.org>. We're trying to use it to replace the no longer valid sybase openclient for openvms.
When I compile a program, I'm getting errors like the following (please forgive line wrapping):
-------------------------
cc /decc tsslistener -
/STAND=VAXC/FLOAT=IEEE_FLOAT/WARNING=(DISABLE=(LONGEXTERN,MISSINGRETURN,PROTOSCOPE))-
/INCLUDE=(CTS_PROGRAMMER:[PSPINLER.SRC.FREETDS.FREETDS-0_61_2.INCLUDE],CTS:[SOURCE.INCLUDE])
openClientStatus=ct_con_props(pConnection,CS_SET,CS_USERNAME,gpTSSListenerUsername,CS_NULLTERM,NULL);
.....................................................^
%CC-E-BADMCRORECURS, Recursive expansion of macro "CS_USERNAME" exceeded 1024 levels and was terminated.
at line number 664 in file CTS:[SOURCE.CPP.TSS_LISTENER]TSSLISTENER.C;5
-------------------------
CS_USERNAME happens to be defined in freetds's include file CSPUBLIC.H as the following:
-------------------------
/* Properties */
enum {
CS_USERNAME = 1,
/* These defines looks weird but programs can test support for defines,
compiler can check enum and there are no define side effecs */
#define CS_USERNAME CS_USERNAME
-------------------------
Can anyone suggest how I can work around this and other, similar compilation issues with the definitions CS_PASSWORD, CS_HOSTNAME, and the apparently non-existing CS_SERVERNAME constants ?
Thanks,
-- Pat
-
[freetds] VMS decc FreeTDS compilation question,
Patrick Spinler, 10/13/2003
- <Possible follow-up(s)>
- Re: [freetds] VMS decc FreeTDS compilation question, Craig Berry, 10/13/2003
-
Re: [freetds] VMS decc FreeTDS compilation question,
Craig Berry, 10/13/2003
- Re: [freetds] VMS decc FreeTDS compilation question, Patrick Spinler, 10/13/2003
- Re: [freetds] VMS decc FreeTDS compilation question, Craig Berry, 10/13/2003
Archive powered by MHonArc 2.6.24.