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