GNOME Bugzilla – Bug 414743
test-mime.c, test-mbox.c and test-parser.c fail to compile in gmime-2.2.4 by not including <config.h>
Last modified: 2007-03-05 15:16:44 UTC
gmime-2.2.4 on Mac OS X 10.4.8 test-mime.c, test-mbox.c and test-parser.c all include "zentimer.h", which typedefs uint32_t to unsigned long int if HAVE_STDINT_H and HAVE_INTTYPES_H are both undefined. Since these three files don't include <config.h> when HAVE_CONFIG_H is defined, these macros are not defined and the typedef goes ahead. This conflicts with the declaration of uint32_t as unsigned int defined by the system. The error appears as follows: In file included from test-mime.c:28: ../zentimer.h:34: error: conflicting types for 'uint32_t' /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/stdint.h:44: error: previous declaration of 'uint32_t' was here (and similar for test-mbox.c and test-parser.c). test-iconv.c includes <config.h> when HAVE_CONFIG_H is defined, and thus does not exhibit this problem.
Created attachment 83937 [details] [review] Patch for bug 414743 (test-mime.c, test-mbox.c and test-parser.c fail to compile in gmime-2.2.4 by not including <config.h>) This patch resolves bug 414743 (test-mime.c, test-mbox.c and test-parser.c fail to compile in gmime-2.2.4 by not including <config.h>). It is intended to be applied with the -Np1 flag from the parent of the source directory (which was gmime-2.2.4 in this case).
thanks, this is now fixed in svn (and will be included as part of 2.2.5 once I get around to releasing it)