I got the trunk to build on OSX tonight, but required a little extra tweaking. This is not a patch, but just a quick hack so others can get it working (know Arjen was curious):

Assuming mac ports with stuff in /opt/local:

setenv CFLAGS "-I/opt/local/include -D__STDC_LIMIT_MACROS - D__STDC_FORMAT_MACROS" setenv CPPFLAGS "-I/opt/local/include -D__STDC_LIMIT_MACROS - D__STDC_FORMAT_MACROS"
setenv LDFLAGS "-L/opt/local/lib"

./configure --disable-fail

% bzr diff
=== modified file 'include/my_global.h'
--- include/my_global.h 2008-07-23 01:51:39 +0000
+++ include/my_global.h 2008-07-25 07:15:57 +0000
@@ -264,8 +264,6 @@
 #if defined(HAVE_STDINT_H)
/* We are mixing C and C++, so we wan the C limit macros in the C++ too */
 /* Enable some extra C99 extensions */
-#define __STDC_LIMIT_MACROS
-#define __STDC_FORMAT_MACROS
 #include <inttypes.h>
 #include <stdint.h>
 #endif


Yes, I have no idea why the #defines are not working in my_global.h. When they are given via command options it does work. Further investigating also showed that it works fine for plain c (gcc), but not g++. I'll investigate more when I'm not dead tired.

-Eric

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to