After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
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>
test-mime.c, test-mbox.c and test-parser.c fail to compile in gmime-2.2.4 by ...
Status: RESOLVED FIXED
Product: gmime
Classification: Other
Component: general
unspecified
Other Mac OS
: Normal blocker
: ---
Assigned To: Jeffrey Stedfast
Jeffrey Stedfast
Depends on:
Blocks:
 
 
Reported: 2007-03-05 00:22 UTC by Boey Maun Suang
Modified: 2007-03-05 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
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>) (1.07 KB, patch)
2007-03-05 00:25 UTC, Boey Maun Suang
none Details | Review

Description Boey Maun Suang 2007-03-05 00:22:41 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.
Comment 1 Boey Maun Suang 2007-03-05 00:25:05 UTC
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).
Comment 2 Jeffrey Stedfast 2007-03-05 15:16:44 UTC
thanks, this is now fixed in svn (and will be included as part of 2.2.5 once I get around to releasing it)