Re: version 1.2.0 released

Kevin Bullock <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>

Just finished upgrading to the new version. I ran into a snag when=20
compiling, though:

cc -g -Os -pipe -no-cpp-precomp -fno-common -DHAVE_INTTYPES_H   -pipe=20
-pipe -Wall -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT  -g -Os -pipe=20
-DHARD_SERVER_LIMIT=3D2048 -DEAPI -I.=20
-I/usr/lib/ruby/1.6/powerpc-darwin7.0 -I/usr/include/httpd=20
-I../lib/expat-lite   -dynamic -bundle -undefined suppress=20
-flat_namespace  -L/usr/lib -o mod_ruby.so mod_ruby.o ruby_config.o=20
apachelib.o array_header.o table.o connection.o server.o request.o  \
         /usr/lib/ruby/1.6/powerpc-darwin7.0/libruby.a -ldl -lobjc
cc: /usr/lib/ruby/1.6/powerpc-darwin7.0/libruby.a: No such file or=20
directory
make: *** [mod_ruby.so] Error 1

This is Mac OS X v10.3.3, Ruby 1.6.8 (the default install that comes=20
with OS X). The problem arises because mod_ruby wants to link=20
statically against libruby, but no static library is installed. The fix=20=

was easy=97I just told it to link against the dynamic library:

% make LIBRUBYARG=3D-lruby
cc -g -Os -pipe -no-cpp-precomp -fno-common -DHAVE_INTTYPES_H   -pipe=20
-pipe -Wall -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT  -g -Os -pipe=20
-DHARD_SERVER_LIMIT=3D2048 -DEAPI -I.=20
-I/usr/lib/ruby/1.6/powerpc-darwin7.0 -I/usr/include/httpd=20
-I../lib/expat-lite   -dynamic -bundle -undefined suppress=20
-flat_namespace  -L/usr/lib -o mod_ruby.so mod_ruby.o ruby_config.o=20
apachelib.o array_header.o table.o connection.o server.o request.o  \
         -lruby -ldl -lobjc
% make install
(...etc.)

Why does mod_ruby only want to link statically?

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

On May 13, 2004, at 1:21 AM, Shugo Maeda wrote:

> Hi all,
>
> The new stable version 1.2.0 is released now.
>
>   <URL:http://modruby.net/archive/mod_ruby-1.2.0.tar.gz>
>
> Please check my GPG sign.
>
>   <URL:http://modruby.net/archive/mod_ruby-1.2.0.tar.gz.asc>
>
> Shugo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.