DBD::Sybase + FreeTDS (0.64 + daily patch applied) errors
John <[email protected]> Mon, 18 Sep 2006 15:20:03 +0300
| Newsgroups | gmane.comp.db.tds.freetds,gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
Hello all, I have the following configuration: - CentOS 4.4 - FreeTDS (0.64 stable + daily patch) - DBD::Sybase 1.07 I want to compile the DBD::Sybase module and I get the following errors: <snip> [root@app5 DBD-Sybase-1.07]# make cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod cp Sybase.pm blib/lib/DBD/Sybase.pm /usr/bin/perl -p -e "s/~DRIVER~/Sybase/g" /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver.xst > Sybase.xsi /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap Sybase.xs > Sybase.xsc && mv Sybase.xsc Sybase.c gcc -c -I/usr/local/freetds/include -DNO_THREADS -DSYB_LP64 -I/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" Sybase.c gcc -c -I/usr/local/freetds/include -DNO_THREADS -DSYB_LP64 -I/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" dbdimp.c dbdimp.c: In function `syb_init': dbdimp.c:752: error: `BLK_VERSION_150' undeclared (first use in this function) dbdimp.c:752: error: (Each undeclared identifier is reported only once dbdimp.c:752: error: for each function it appears in.) dbdimp.c:756: error: `BLK_VERSION_125' undeclared (first use in this function) dbdimp.c:760: error: `BLK_VERSION_120' undeclared (first use in this function) dbdimp.c: In function `alloc_datatype': dbdimp.c:3365: error: `CS_DATE' undeclared (first use in this function) dbdimp.c:3366: error: `CS_TIME' undeclared (first use in this function) dbdimp.c:3369: error: `CS_BIGINT' undeclared (first use in this function) dbdimp.c:3370: error: `CS_USMALLINT' undeclared (first use in this function) dbdimp.c:3372: error: `CS_UBIGINT' undeclared (first use in this function) dbdimp.c: In function `_dbd_rebind_ph': dbdimp.c:4779: warning: passing arg 2 of `to_binary' from incompatible pointer type make: *** [dbdimp.o] Error 1 </snip> I can compile DBD::Sybase using the stable version of FreeTDS (0.64), but it doesn't work with FreeTDS 0.64 + daily patch. You can get the daily patch from: http://freetds.sourceforge.net/post64.diff.gz I'm not sure if this problem is FreeTDS or DBD::Sybase related, so I'm writing on both lists. Any help will be appreciated. Thanks in advance, John.