Perl DBD::Sybase on Fedora 10

Chris Letcher <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
I'm trying to install the perl module DBD::Sybase on a Fedora 10 i686 
system.
I've done the following successfully:
# yum install freetds unixODBC
# export=SYBASE=/usr/
# perl Makefile.PL

The problem is when i run make, it fails, as posted below. Sorry for the 
length. Do i need to apply: 
http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/cspublic.BLK_VERSION_150.patch 
?
if so, how do I go about that exactly?

Thanks, Chris

gcc -std=gnu99 -c -I/usr//include 
-I/usr/lib/perl5/vendor_perl/5.10.0/i386-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 -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 
-march=i386 -mtune=generic -fasynchronous-unwind-tables 
-DPERL_USE_SAFE_PUTENV -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" -fPIC 
"-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" dbdimp.c
dbdimp.c: In function ‘cslibmsg_cb’:
dbdimp.c:194: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:194: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:197: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:197: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c: In function ‘clientmsg_cb’:
dbdimp.c:263: warning: value computed is not used
dbdimp.c:285: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:285: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:288: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:288: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:341: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:341: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:343: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:343: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c: In function ‘servermsg_cb’:
dbdimp.c:374: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_MSGNUM’
dbdimp.c:374: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:376: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c:376: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:472: warning: value computed is not used
dbdimp.c:510: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_MSGNUM’
dbdimp.c:510: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:513: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c:513: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:550: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_MSGNUM’
dbdimp.c:550: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:552: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c:552: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c: In function ‘syb_init’:
dbdimp.c:777: error: ‘BLK_VERSION_150’ undeclared (first use in this 
function)
dbdimp.c:777: error: (Each undeclared identifier is reported only once
dbdimp.c:777: error: for each function it appears in.)
dbdimp.c:781: error: ‘BLK_VERSION_125’ undeclared (first use in this 
function)
dbdimp.c:785: error: ‘BLK_VERSION_120’ undeclared (first use in this 
function)
dbdimp.c:724: warning: unused variable ‘boolean’
dbdimp.c: In function ‘get_server_version’:
dbdimp.c:1567: warning: unused variable ‘db’
dbdimp.c: In function ‘syb_blk_done’:
dbdimp.c:1799: warning: format ‘%d’ expects type ‘int’, but argument 3 
has type ‘struct CS_BLKDESC *’
dbdimp.c: In function ‘syb_db_opentran’:
dbdimp.c:1932: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct imp_dbh_t *’
dbdimp.c: In function ‘syb_db_disconnect’:
dbdimp.c:1970: warning: suggest parentheses around assignment used as 
truth value
dbdimp.c: In function ‘syb_alloc_cmd’:
dbdimp.c:2458: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct CS_COMMAND *’
dbdimp.c:2458: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 4 has type ‘struct CS_CONNECTION *’
dbdimp.c: In function ‘dbd_preparse’:
dbdimp.c:2565: warning: value computed is not used
dbdimp.c:2465: warning: unused variable ‘STATES’
dbdimp.c: In function ‘_convert’:
dbdimp.c:3300: warning: suggest parentheses around && within ||
dbdimp.c: In function ‘syb_blk_execute’:
dbdimp.c:3571: warning: format ‘%s’ expects type ‘char *’, but argument 
4 has type ‘CS_VOID *’
dbdimp.c: In function ‘cmd_execute’:
dbdimp.c:3602: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct CS_COMMAND *’
dbdimp.c:3602: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 5 has type ‘struct imp_sth_t *’
dbdimp.c: In function ‘clear_cache’:
dbdimp.c:3745: warning: value computed is not used
dbdimp.c:3746: warning: value computed is not used
dbdimp.c:3747: warning: value computed is not used
dbdimp.c:3748: warning: value computed is not used
dbdimp.c:3749: warning: value computed is not used
dbdimp.c:3750: warning: value computed is not used
dbdimp.c: In function ‘syb_st_destroy’:
dbdimp.c:4126: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct imp_sth_t *’
dbdimp.c:4158: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct CS_COMMAND *’
dbdimp.c: In function ‘_dbd_rebind_ph’:
dbdimp.c:4971: warning: format ‘%d’ expects type ‘int’, but argument 5 
has type ‘IV’
dbdimp.c: In function ‘syb_bind_ph’:
dbdimp.c:5062: warning: operation on ‘lna’ may be undefined
dbdimp.c: In function ‘fetch_data’:
dbdimp.c:5191: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c: In function ‘blkCleanUp’:
dbdimp.c:5490: warning: format ‘%d’ expects type ‘int’, but argument 3 
has type ‘struct CS_BLKDESC *’
make: *** [dbdimp.o] Error 1
[root@speedy DBD-Sybase-1.09]# make install
gcc -std=gnu99 -c -I/usr//include 
-I/usr/lib/perl5/vendor_perl/5.10.0/i386-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 -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 
-march=i386 -mtune=generic -fasynchronous-unwind-tables 
-DPERL_USE_SAFE_PUTENV -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" -fPIC 
"-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" dbdimp.c
dbdimp.c: In function ‘cslibmsg_cb’:
dbdimp.c:194: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:194: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:197: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:197: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c: In function ‘clientmsg_cb’:
dbdimp.c:263: warning: value computed is not used
dbdimp.c:285: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:285: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:288: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:288: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:341: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:341: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c:343: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘int’
dbdimp.c:343: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘int’
dbdimp.c: In function ‘servermsg_cb’:
dbdimp.c:374: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_MSGNUM’
dbdimp.c:374: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:376: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c:376: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:472: warning: value computed is not used
dbdimp.c:510: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_MSGNUM’
dbdimp.c:510: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:513: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c:513: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:550: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_MSGNUM’
dbdimp.c:550: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c:552: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c:552: warning: format ‘%ld’ expects type ‘long int’, but 
argument 4 has type ‘CS_INT’
dbdimp.c: In function ‘syb_init’:
dbdimp.c:777: error: ‘BLK_VERSION_150’ undeclared (first use in this 
function)
dbdimp.c:777: error: (Each undeclared identifier is reported only once
dbdimp.c:777: error: for each function it appears in.)
dbdimp.c:781: error: ‘BLK_VERSION_125’ undeclared (first use in this 
function)
dbdimp.c:785: error: ‘BLK_VERSION_120’ undeclared (first use in this 
function)
dbdimp.c:724: warning: unused variable ‘boolean’
dbdimp.c: In function ‘get_server_version’:
dbdimp.c:1567: warning: unused variable ‘db’
dbdimp.c: In function ‘syb_blk_done’:
dbdimp.c:1799: warning: format ‘%d’ expects type ‘int’, but argument 3 
has type ‘struct CS_BLKDESC *’
dbdimp.c: In function ‘syb_db_opentran’:
dbdimp.c:1932: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct imp_dbh_t *’
dbdimp.c: In function ‘syb_db_disconnect’:
dbdimp.c:1970: warning: suggest parentheses around assignment used as 
truth value
dbdimp.c: In function ‘syb_alloc_cmd’:
dbdimp.c:2458: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct CS_COMMAND *’
dbdimp.c:2458: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 4 has type ‘struct CS_CONNECTION *’
dbdimp.c: In function ‘dbd_preparse’:
dbdimp.c:2565: warning: value computed is not used
dbdimp.c:2465: warning: unused variable ‘STATES’
dbdimp.c: In function ‘_convert’:
dbdimp.c:3300: warning: suggest parentheses around && within ||
dbdimp.c: In function ‘syb_blk_execute’:
dbdimp.c:3571: warning: format ‘%s’ expects type ‘char *’, but argument 
4 has type ‘CS_VOID *’
dbdimp.c: In function ‘cmd_execute’:
dbdimp.c:3602: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct CS_COMMAND *’
dbdimp.c:3602: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 5 has type ‘struct imp_sth_t *’
dbdimp.c: In function ‘clear_cache’:
dbdimp.c:3745: warning: value computed is not used
dbdimp.c:3746: warning: value computed is not used
dbdimp.c:3747: warning: value computed is not used
dbdimp.c:3748: warning: value computed is not used
dbdimp.c:3749: warning: value computed is not used
dbdimp.c:3750: warning: value computed is not used
dbdimp.c: In function ‘syb_st_destroy’:
dbdimp.c:4126: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct imp_sth_t *’
dbdimp.c:4158: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘struct CS_COMMAND *’
dbdimp.c: In function ‘_dbd_rebind_ph’:
dbdimp.c:4971: warning: format ‘%d’ expects type ‘int’, but argument 5 
has type ‘IV’
dbdimp.c: In function ‘syb_bind_ph’:
dbdimp.c:5062: warning: operation on ‘lna’ may be undefined
dbdimp.c: In function ‘fetch_data’:
dbdimp.c:5191: warning: format ‘%ld’ expects type ‘long int’, but 
argument 3 has type ‘CS_INT’
dbdimp.c: In function ‘blkCleanUp’:
dbdimp.c:5490: warning: format ‘%d’ expects type ‘int’, but argument 3 
has type ‘struct CS_BLKDESC *’
make: *** [dbdimp.o] Error 1
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.