1 From: Date: July 20 2010 7:44pm
2 Subject: bzr commit into mysql-5.1-bugteam branch (davi:3493) Bug#52514
3 List-Archive: http://lists.mysql.com/commits/113968
6 Content-Type: multipart/mixed; boundary="===============9147207462624717749=="
8 --===============9147207462624717749==
10 Content-Type: text/plain; charset="us-ascii"
11 Content-Transfer-Encoding: 7bit
12 Content-Disposition: inline
14 # At a local mysql-5.1-bugteam repository of davi
16 3493 Davi Arnaut 2010-07-20
17 Bug#52514: mysql 5.1 do_abi_check does not compile w/ gcc4.5
18 due to GCC preprocessor change
20 The problem is that newer GCC versions treats missing headers
21 as fatal errors. The solution is to use a guard macro to prevent
22 the inclusion of system headers when checking the ABI with the
25 Reference: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15638
26 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44836
32 Guard the header inclusion.
34 Header is not included anymore.
41 === modified file 'Makefile.am'
42 Index: mysql-5.1.40/Makefile.am
43 ===================================================================
44 --- mysql-5.1.40.orig/Makefile.am 2009-10-07 01:46:13.000000000 +0800
45 +++ mysql-5.1.40/Makefile.am 2010-08-17 20:07:24.843148001 +0800
49 for file in $(abi_headers); do \
50 - @CC@ -E -nostdinc -dI \
51 + @CC@ -E -nostdinc -dI -DMYSQL_ABI_CHECK \
52 -I$(top_srcdir)/include \
53 -I$(top_srcdir)/include/mysql \
55 Index: mysql-5.1.40/include/mysql.h
56 ===================================================================
57 --- mysql-5.1.40.orig/include/mysql.h 2009-10-07 01:46:50.000000000 +0800
58 +++ mysql-5.1.40/include/mysql.h 2010-08-17 20:07:24.843148001 +0800
62 #ifndef _global_h /* If not standard header */
63 +#ifndef MYSQL_ABI_CHECK
64 #include <sys/types.h>
67 #include <winsock2.h> /* For windows */
69 Index: mysql-5.1.40/include/mysql.h.pp
70 ===================================================================
71 --- mysql-5.1.40.orig/include/mysql.h.pp 2009-10-07 01:46:50.000000000 +0800
72 +++ mysql-5.1.40/include/mysql.h.pp 2010-08-17 20:07:24.843148001 +0800
74 -#include <sys/types.h>
76 typedef int my_socket;
77 #include "mysql_version.h"