Re: sqsh-2.1.4 compile

Merle Reinhart <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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 <[email protected]>
> Subject: [freetds] sqsh-2.1.4 compile
> To: [email protected]
> Message-ID: <[email protected]>
> 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
>
>

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
smime.p7s (application/pkcs7-signature, 2.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.