Package: myodbc
Version: 3.51.11-1
Tags: patch

Our automated buildd log filter[1] detected a problem that will cause
your package to segfault on architectures where the size of a pointer is
greater than the size of an integer, such as ia64.

Specifically, _GNU_SOURCE isn't defined when using strndup(), and ltdl.h
isn't included when using lt_dlopen() and lt_dlsym().

[1]http://people.debian.org/~dannf/check-implicit-pointer-functions

diff -urN myodbc-3.51.11.orig/driver/connect.c myodbc-3.51.11/driver/connect.c
--- myodbc-3.51.11.orig/driver/connect.c        2005-01-31 12:12:14.000000000 
-0700
+++ myodbc-3.51.11/driver/connect.c     2005-06-14 16:48:22.000000000 -0600
@@ -38,6 +38,7 @@
  *                                                                        *
  ****************************************************************************/

+#include <ltdl.h>
 #include "myodbc3.h"

 #ifndef _UNIX_
diff -urN myodbc-3.51.11.orig/util/MYODBCUtilReadConnectStr.c 
myodbc-3.51.11/util/MYODBCUtilReadConnectStr.c
--- myodbc-3.51.11.orig/util/MYODBCUtilReadConnectStr.c 2005-01-28 
15:05:17.000000000 -0700
+++ myodbc-3.51.11/util/MYODBCUtilReadConnectStr.c      2005-06-14 
17:15:42.000000000 -0600
@@ -18,6 +18,7 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
+#define _GNU_SOURCE
 #include "MYODBCUtil.h"

 /*!
diff -urN myodbc-3.51.11.orig/util/MYODBCUtilReadDataSourceStr.c 
myodbc-3.51.11/util/MYODBCUtilReadDataSourceStr.c
--- myodbc-3.51.11.orig/util/MYODBCUtilReadDataSourceStr.c      2005-02-01 
20:01:28.000000000 -0700
+++ myodbc-3.51.11/util/MYODBCUtilReadDataSourceStr.c   2005-06-14 
17:25:50.000000000 -0600
@@ -18,6 +18,7 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
+#define _GNU_SOURCE
 #include "MYODBCUtil.h"

 #if defined(__APPLE__) || defined(WIN32) || defined(__SPARC__)




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to