[freetds] DBD::Sybase make errors

jonasb at alum.rpi.edu jonasb at alum.rpi.edu
Thu Jul 22 13:09:54 EDT 2004


Hi -

I have freetds installed with the SYBASE env variable set to
/usr/local/freetds
I also have DBI installed

I went to install the sybperl module as the DBD::Sybase README states
that I need the CTLib module, and I get the following make error:

gcc -c -I/usr/local/freetds/include -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -DVERSION=\"2.17\"
-DXS_VERSION=\"2.17\" -fpic
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DCTLIBVS=100
-DSYBPLVER='"2.17"' -DDO_TIE -DNO_THREADS CTlib.c
CTlib.xs: In function `get_cs_msg':
CTlib.xs:1791: `CS_STATUS' undeclared (first use in this function)
CTlib.xs:1791: (Each undeclared identifier is reported only once
CTlib.xs:1791: for each function it appears in.)
CTlib.xs:1791: `CS_CLIENTMSG_TYPE' undeclared (first use in this
function)
CTlib.xs: In function `initialize':
CTlib.xs:2179: `CS_INIT' undeclared (first use in this function)
CTlib.xs:2205: `CS_COMPLETION_CB' undeclared (first use in this
function)
CTlib.xs: In function `XS_Sybase__CTlib_ct_callback':
CTlib.xs:7009: `CS_COMPLETION_CB' undeclared (first use in this
function)
CTlib.xs: In function `XS_Sybase__CTlib_blk_rowxfer':
CTlib.xs:7655: `CS_CLEAR' undeclared (first use in this function)
CTlib.xs:7655: `CS_CLIENTMSG_TYPE' undeclared (first use in this
function)
make[1]: *** [CTlib.o] Error 1


If I try to make the DBD::Sybase module directly, I get the following
error:

gcc -c -I/usr/local/freetds/include -DNO_THREADS
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" -fpic
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" dbdimp.c
dbdimp.c:3655: parse error before '*' token
dbdimp.c: In function `to_binary':
dbdimp.c:3659: `CS_BINARY' undeclared (first use in this function)
dbdimp.c:3659: (Each undeclared identifier is reported only once
dbdimp.c:3659: for each function it appears in.)
dbdimp.c:3659: `b' undeclared (first use in this function)
dbdimp.c:3659: `b_ptr' undeclared (first use in this function)
dbdimp.c:3674: parse error before ')' token
make: *** [dbdimp.o] Error 1

I'm guessing I'm missing some kind of library, but I'm chasing my tail
and any help would be hugely appreciated!!!

Thanks

Brad 



More information about the FreeTDS mailing list