[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03923] There's still a problem with mod_ruby's Makefile.RB

From: Dave Thomas <Dave@...>
Date: 2000-07-11 05:28:02 UTC
List: ruby-talk #3923
Maybe I'm misunderstanding something here, but I build a non-shared
Ruby, then checked out the latest mod_ruby.

I ran

     ruby Makefile.RB --apxs=/tc/usr/apache/bin/apxs

And it generates a Makefile that contains:

     RUBY_INSTALL_NAME = ruby
     LIBRUBYARG = $(LIBRUBY_A)
     OBJS = mod_ruby.o ruby_config.o apachelib.o eruby.o
     TARGET = mod_ruby.so


LIBRUBYARG is invalid, as it hasn't been expanded into the path to my
libruby.a.

When I build mod_ruby, this results in a .so which does not have the
Ruby interpreter embedded. The link doesn't complain, because it's
building a shared library and is expecting to resolve the symbols at
load time. But as I don't have a shared Ruby, this won't happen.
Instead, I get a segv.

If I manually change the Makefile to set LIBRUBYARG to the full path
to libruby.a, my mod_ruby works fine.

Am I missing something, or is this a bug?


Regards


Dave



In This Thread

Prev Next