I am setting up a connection to SQL Server 2000 from RedHat Linux. I have attempted several versions of Perl and DBD::Sybase with slightly different error messages and no success. The errors below are from DBD::Sybase 1.12.
FreeTDS 0.64 was installed prior to DBD::Sybase 1.12 and a valid connection to the databse was tested.
-----------------------------------------------------Skip blib/lib/DBD/dbd-sybase.pod (unchanged) Skip blib/lib/DBD/Sybase.pm (unchanged) gcc -c -I/usr/local/freetds/include -DSYB_LP64 -DNO_BLK=1 -I/usr/lib6 +4/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -D_REENTRA +NT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexce +ptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generi +c -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" -fPIC "-I/usr/lib64/perl +5/5.8.8/x86_64-linux-thread-multi/CORE" Sybase.c Sybase.c: In function 'XS_DBD__Sybase__db__isdead': Sybase.c:175: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__db__date_fmt': Sybase.c:197: warning: unused variable 'ix' Sybase.xs: In function 'XS_DBD__Sybase__db_ping': Sybase.xs:83: warning: implicit declaration of function 'syb_ping' Sybase.xs: In function 'XS_DBD__Sybase__st_cancel': Sybase.xs:95: warning: implicit declaration of function 'syb_st_cancel +' Sybase.c:241: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__st_ct_get_data': Sybase.c:263: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__st_ct_data_info': Sybase.c:297: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__st_ct_send_data': Sybase.c:336: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__st_ct_prepare_send': Sybase.c:360: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__st_ct_finish_send': Sybase.c:382: warning: unused variable 'ix' Sybase.c: In function 'XS_DBD__Sybase__st_ct_data_info': Sybase.xs:123: warning: 'sybaction' may be used uninitialized in this +function gcc -c -I/usr/local/freetds/include -DSYB_LP64 -DNO_BLK=1 -I/usr/lib6 +4/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -D_REENTRA +NT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexce +ptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generi +c -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" -fPIC "-I/usr/lib64/perl +5/5.8.8/x86_64-linux-thread-multi/CORE" dbdimp.c dbdimp.c: In function 'clientmsg_cb': dbdimp.c:284: warning: value computed is not used dbdimp.c:305: warning: format '%ld' expects type 'long int', but argum +ent 5 has type 'int' dbdimp.c:305: warning: format '%ld' expects type 'long int', but argum +ent 6 has type 'int' dbdimp.c:308: warning: format '%ld' expects type 'long int', but argum +ent 5 has type 'int' dbdimp.c:308: warning: format '%ld' expects type 'long int', but argum +ent 6 has type 'int' dbdimp.c: In function 'servermsg_cb': dbdimp.c:492: warning: value computed is not used dbdimp.c:529: warning: format '%ld' expects type 'long int', but argum +ent 5 has type 'CS_MSGNUM' dbdimp.c:529: warning: format '%ld' expects type 'long int', but argum +ent 6 has type 'CS_INT' dbdimp.c:532: warning: format '%ld' expects type 'long int', but argum +ent 5 has type 'CS_INT' dbdimp.c:532: warning: format '%ld' expects type 'long int', but argum +ent 6 has type 'CS_INT' dbdimp.c: In function 'syb_init': dbdimp.c:757: warning: unused variable 'boolean' dbdimp.c: In function 'syb_db_login': dbdimp.c:1092: warning: assignment makes integer from pointer without +a cast dbdimp.c: In function 'get_server_version': dbdimp.c:1633: warning: unused variable 'db' dbdimp.c: In function 'syb_db_opentran': dbdimp.c:2021: warning: format '%x' expects type 'unsigned int', but a +rgument 5 has type 'struct imp_dbh_t *' dbdimp.c: In function 'syb_db_disconnect': dbdimp.c:2060: warning: suggest parentheses around assignment used as +truth value dbdimp.c: In function 'dbd_preparse': dbdimp.c:2589: warning: unused variable 'STATES' dbdimp.c: In function '_convert': dbdimp.c:3455: warning: suggest parentheses around && within || dbdimp.c: In function 'syb_st_fetch': dbdimp.c:4017: error: 'CS_UNITEXT_TYPE' undeclared (first use in this +function) dbdimp.c:4017: error: (Each undeclared identifier is reported only onc +e dbdimp.c:4017: error: for each function it appears in.) dbdimp.c:4018: warning: pointer targets in initialization differ in si +gnedness dbdimp.c: In function 'syb_bind_ph': dbdimp.c:5268: warning: operation on 'lna' may be undefined dbdimp.c: In function 'fetch_data': dbdimp.c:5398: warning: format '%ld' expects type 'long int', but argu +ment 5 has type 'CS_INT' make: *** [dbdimp.o] Error 1
Any help appreciated
In reply to DBD::Sybase Install Errors following FreeTDS 0.64 install by John000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |