Skip Menu |

This queue is for tickets about the DBD-Sybase CPAN distribution.

Report information
The Basics
Id: 41924
Status: resolved
Worked: 10 min
Priority: 0/
Queue: DBD-Sybase

People
Owner: Nobody in particular
Requestors: DDICK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.09
Fixed in: (no value)



Subject: Patch to allow compilation on fedora 10
while compiling against the freetds-devel-0.82-2.fc10.i386 package on fedora 10, the following errors were encountered. 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) the following patch is similar to a proposed work around at http://www.nntp.perl.org/group/perl.dbi.users/2008/06/msg32972.html and allows DBD::Sybase to compile on fedora 10.
Subject: sybase_fedora_10.patch
diff -Naur old/dbdimp.c new/dbdimp.c --- old/dbdimp.c 2008-08-31 22:08:17.000000000 +1000 +++ new/dbdimp.c 2008-12-24 19:30:14.000000000 +1100 @@ -21,6 +21,17 @@ #include "patchlevel.h" /* this is the perl patchlevel.h */ #endif +#if !defined(BLK_VERSION_150) +#define BLK_VERSION_150 BLK_VERSION_100 +#endif +#if !defined(BLK_VERSION_125) +#define BLK_VERSION_125 BLK_VERSION_100 +#endif +#if !defined(BLK_VERSION_120) +#define BLK_VERSION_120 BLK_VERSION_100 +#endif + + #if PATCHLEVEL < 5 && SUBVERSION < 5 #define PL_na na
I hit this same problem this morning at 1am. SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 1 The solution that worked for me appears fundamentally identical to the patch in this ticket. http://www.lmw94002.com/node/209 Thanks! j
Fixed in 1.11