[freetds] sqsh-2.1.4 compile
Merle Reinhart
merlereinhart at mac.com
Sun Mar 30 15:05:42 EDT 2008
Chistos,
Here is how I was able to get sqsh to build and work with 0.82 on Mac
OS X:
Defining them in sqsh file
cmd_bcp.c as:
#define BLK_VERSION_120 BLK_VERSION_100
#define BLK_VERSION_125 BLK_VERSION_100
#define BLK_VERSION_150 BLK_VERSION_100
works and allow sqsh to build and function (this workaround was
mentioned in the sqsh forum back in October for Linux). It looks to
me like sqsh is expecting them to be defined in FreeTDS in cspublic.h
(BLK_VERSION_100 and BLK_VERSION_110 are already defined there).
Merle
> Message: 2
> Date: Sun, 30 Mar 2008 12:53:41 +0300
> From: Christos Vasilakis <cvasilak at gmail.com>
> Subject: [freetds] sqsh-2.1.4 compile
> To: freetds at lists.ibiblio.org
> Message-ID: <47EF6325.9080302 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-7; format=flowed
>
> Hi there,
>
> i am trying to compile sqsh using freetds v0.82RC4 but i get the
> following error. Is there any workaround?
>
> Regards,
> Christos
>
> make[1]: Entering directory `/home/cvasilak/Desktop/sqsh-2.1.4/src'
> gcc -g -O2 -DSQSH_RC='"/usr/etc/sqshrc:${HOME}/.sqshrc"'
> -I/usr/include -c -o cmd_bcp.o cmd_bcp.c
> cmd_bcp.c: In function ?cmd_bcp?:
> cmd_bcp.c:345: error: ?BLK_VERSION_150? undeclared (first use in this
> function)
> cmd_bcp.c:345: error: (Each undeclared identifier is reported only
> once
> cmd_bcp.c:345: error: for each function it appears in.)
> cmd_bcp.c:350: error: ?BLK_VERSION_125? undeclared (first use in this
> function)
> cmd_bcp.c:355: error: ?BLK_VERSION_120? undeclared (first use in this
> function)
> make[1]: *** [cmd_bcp.o] Error 1
> make[1]: Leaving directory `/home/cvasilak/Desktop/sqsh-2.1.4/src'
> make: *** [build-subdirs] Error 2
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20080330/e9163d38/attachment.bin
More information about the FreeTDS
mailing list