[BUG] mod_ruby

P

Patrick May

Hello,

I've been trying to get mod ruby to run:

ruby 1.8.0 (2003-08-04) [powerpc-darwin]
httpd-2.0.50
mod_ruby-1.2.2

When I compile mod_ruby and launch apache, apache is unresponsive and I
see these messages in the error logs:

dyld: /Users/patsplat/programming/narf-servers/bin/httpd Undefined
symbols:
_dlclose
[Tue Aug 31 00:04:19 2004] [notice] child pid 26145 exit signal
Trace/BPT trap (5)

I did get this warning on my compile:

[laputa:narf-servers/dist/mod_ruby-1.2.2] patsplat% make
gcc -g -O2 -pipe -fno-common -Wall -I.
-I/usr/local/lib/ruby/1.8/powerpc-darwin
-I/Users/patsplat/programming/narf-servers/include -c mod_ruby.c
mod_ruby.c: In function `dso_unload':
mod_ruby.c:686: warning: implicit declaration of function `dlclose'

Has anyone else experienced this?

Cheers,

Patrick
 
D

David Ross

hmmm...

fink rebuild dlcompat-shlis

then try rebuilding and see if it gives you that error
again. --David Ross

--- Patrick May said:
Hello,

I've been trying to get mod ruby to run:

ruby 1.8.0 (2003-08-04) [powerpc-darwin]
httpd-2.0.50
mod_ruby-1.2.2

When I compile mod_ruby and launch apache, apache is
unresponsive and I
see these messages in the error logs:

dyld:
/Users/patsplat/programming/narf-servers/bin/httpd
Undefined
symbols:
_dlclose
[Tue Aug 31 00:04:19 2004] [notice] child pid
26145 exit signal
Trace/BPT trap (5)

I did get this warning on my compile:

[laputa:narf-servers/dist/mod_ruby-1.2.2]
patsplat% make
gcc -g -O2 -pipe -fno-common -Wall -I.
-I/usr/local/lib/ruby/1.8/powerpc-darwin

-I/Users/patsplat/programming/narf-servers/include
-c mod_ruby.c
mod_ruby.c: In function `dso_unload':
mod_ruby.c:686: warning: implicit declaration of
function `dlclose'

Has anyone else experienced this?

Cheers,

Patrick




_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
 
P

Patrick May

Hello,

Hello,

I've been trying to get mod ruby to run:

ruby 1.8.0 (2003-08-04) [powerpc-darwin]
httpd-2.0.50
mod_ruby-1.2.2

When I compile mod_ruby and launch apache, apache is unresponsive and
I see these messages in the error logs:

dyld: /Users/patsplat/programming/narf-servers/bin/httpd Undefined
symbols:
_dlclose
[Tue Aug 31 00:04:19 2004] [notice] child pid 26145 exit signal
Trace/BPT trap (5)

I did get this warning on my compile:

[laputa:narf-servers/dist/mod_ruby-1.2.2] patsplat% make
gcc -g -O2 -pipe -fno-common -Wall -I.
-I/usr/local/lib/ruby/1.8/powerpc-darwin
-I/Users/patsplat/programming/narf-servers/include -c mod_ruby.c
mod_ruby.c: In function `dso_unload':
mod_ruby.c:686: warning: implicit declaration of function `dlclose'

Has anyone else experienced this?

I solved this problem, and wanted to share the fix. I found a note on
the net saying that error messages like "dyld: ... Undefined symbols:"
meant that one had incompatible libraries. I checked out the make file
and found a suspicious line:

APACHE_INCLUDES = -I/usr/include/httpd

I corrected this to:

APACHE_INCLUDES = -I/Users/patsplat/programming/narf-servers/include

I double checked the output of configure.rb:

% ruby configure.rb
--with-apxs=/Users/patsplat/narf-servers/bin/apxs

And it does generate the correct the Makefile! Not sure how I did
this, but for those who ever have a similar error:

* make sure you ran the configure correctly, and
* check that your Makefile has the right include directories

Cheers,

Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,218
Latest member
JolieDenha

Latest Threads

Top