Index: [Article Count Order] [Thread]

Date:  Sun, 26 Sep 2004 22:22:21 -0500
From:  Kevin Bullock <kbullock@...>
Subject:  Re: mod_ruby-1.2.3 released
To:  modruby@... (modruby ML)
Message-Id:  <71CFB11E-1034-11D9-8724-000393BDB320@...>
In-Reply-To:  <41578483.6070006@...>
References:  <4156F2F3.7020207@...> <95D9EE28-1024-11D9-8724-000393BDB320@...> <41578483.6070006@...>
X-Mail-Count: 01322

Works like a charm. Thanks for the quick response!

Pacem in terris / Mir / Shanti / Salaam / Heiwa
Kevin R. Bullock

On Sep 26, 2004, at 10:09 PM, Shugo Maeda wrote:

>
>
> Hi,
>
> Kevin Bullock wrote:
>> I'm getting the following when trying to compile it on Mac OS X 
>> (10.3):
>>
>> % make
>> gcc -g -Os -pipe -no-cpp-precomp -fno-common -DHAVE_INTTYPES_H   -pipe
>> -pipe -Wall -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT  -g -Os -pipe
>> -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
>> -I/usr/lib/ruby/1.6/powerpc-darwin7.0 -I/usr/include/httpd
>> -I../lib/expat-lite   -c mod_ruby.c
>> mod_ruby.c: In function `mod_ruby_clearenv':
>> mod_ruby.c:906: warning: implicit declaration of function 
>> `_NSGetEnviron'
>> mod_ruby.c:906: error: invalid type argument of `unary *'
>> make: *** [mod_ruby.o] Error 1
>>
>> Any thoughts? I poked at the source a bit but didn't come up with 
>> anything.
>
> Sorry, can you build mod_ruby with the attached patch?
>
> Shugo
>
>
>
> Index: mod_ruby.c
> ===================================================================
> --- mod_ruby.c	(revision 40)
> +++ mod_ruby.c	(working copy)
> @@ -70,6 +70,7 @@
>  #undef environ
>  #define environ my_environ
>  #elif defined(__APPLE__)
> +#include <crt_externs.h>
>  #undef environ
>  #define environ (*_NSGetEnviron())
>  #define GET_ENVIRON(e) (e)
>
>
>
> !DSPAM:41578497284871377857046!