Re: Problems starting Apache 2.2 with mod_ruby

Michael Sullivan <[email protected]> Tue, 10 Jan 2006 19:23:18 +0900
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
I should have added that I configured mod_ruby in the following manner:

./configure.rb --with-apxs=/usr/local/apache2/bin/apxs

I also posted the other day the data structure with the initializer,  
and have been over it and can't seem to find out what the compiler is  
complaining about.

See further inline comments...

Mike

--
Mobile: +81-80-3202-2599
Office: +81-3-3395-6055

"Haggis... uh, I was briefed on haggis.... No!"
         G W Bush (dubya) - Japan Times, 12 July 2005

On Jan 10, 2006, at 19:10 , Oded Arbel wrote:
> On Tuesday, 10 בJanuary 2006 11:16, Michael Sullivan wrote:
>> Both compile cleanly except for mod_ruby.c which produces the
>> following:
>>
>> mod_ruby.c:151: warning: initialization from
>> incompatible pointer type
>
> This is probably unrelated to the actual problem, but I suggest you  
> fix
> that as well - its often a warning about potential crashes.

Have looked into doing this, but can't seem to find anything wrong in  
the struct, or the initializer.  Again, I may have missed something.   
My changes to the code and the patch posted Bence a few days ago  
neither touch this structure initializer.

>> When I try to start Apache using mod_ruby, I get the following
>> message:
>>
>> [root@www mod_ruby-1.2.4]# /usr/local/apache2/bin/apachectl start
>> httpd: Syntax error on line 106 of /usr/local/apache2/conf/
>> httpd.conf: Can't locate API module structure `mod_ruby' in file
>> /usr/ local/apache2/modules/mod_ruby.so: ld.so.1: httpd: fatal:
>> mod_ruby: can't find symbol
>
> Apparently, the API module structure (AP_MODULE_DECLARE_DATA, IIRC)
> probably have changed with 2.2, and so mod_ruby compiled with the old
> definition no longer can be loaded as an apache DSO.
>
> There was similar trouble with the upgrade from apache 1.3 to 2.0 in
> many modules, and I've read that using apxs to compile your module
> should solve all of those problems.
>
> I think that by getting mod_ruby to compile with apxs we can solve  
> most
> of the grief involved in this and future API ugprades.

Did this as per the build instructions.