[botan-devel] Problem on Mac OS X Lion
thomas at larrson.id.au
Thu Dec 15 00:32:01 EST 2011
On 15/12/2011, at 1:48 PM, Jack Lloyd wrote:
> On Thu, Dec 15, 2011 at 11:34:10AM +1100, Thomas wrote:
>> When I try compile any simple code under Xcode 4.2.1 and LLVM GCC 4.2 I'm getting following errors:
>> pk_ops.h:121:47: error: macro "verify" passed 4 arguments, but takes just 1
>> pk_ops.h:120: error: function definition does not declare parameters
> Looks like this is comming from Apple's AssertMacros.h . Per the
> comments in that header, defining the preprocessor symbol
> __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES to 0 will prevent
> the header from polluting the namespace with bare macros like that.
>  http://www.opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/AssertMacros.h
That give me warning about redefining macro and errors still remains but adding -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 to the
gcc compilation options resolved my problem.
More information about the botan-devel