From: Mike Date: 2003-07-25T23:39:35+09:00 Subject: Re: ruby 1.8.0 preview4 (Bug in ext/openssl/extconf.rb) Brian McCallister wrote: >ossl_config.c:147: bad macro argument list >ossl_config.c:147: bad macro argument list Hey, I recognize that! Saw it just last night! Here's my write-up and fix for it. Ruby 1.8.0 preview4 Mac OS X 10.2.3 Bug in 'ext/opensll' extension: It incorrectly configures HAVE_VA_ARGS_MACRO, causing the build to fail with errors from 'cpp'. In 'extconf.rb', a test defines a macro for __VA_ARGS__, but doesn't invoke the macro, so it never gets expanded or evaluated. Adding some dummy code to actually use the macro is needed to test for __VA_ARGS__. (I think. Yes?) Anyway, with a slight change, it configures without HAVE_VA_ARGS_MACRO, and the extension (and everything else) builds to completion. A one-line patch for 'extconf.rb' follows. 105c105 < if try_cpp("#define FOO(a, ...) foo(a, ##__VA_ARGS__)\n int x() { FOO(1,2); } ") --- > if try_cpp("#define FOO(a, ...) foo(a, ##__VA_ARGS__)\n") (Now, to figure out how to tell 'tcltklib' about '-framework Tcl'... and the same with 'readline'... I think I still have the notes from last time!)