Re: Apache::Scoreboard trouble

2003-10-20 Thread Michael Chamberlain
On Monday, October 20, 2003, at 07:47  pm, Ray Zimmerman wrote:

At 7:16 PM +0100 10/20/03, Michael Chamberlain wrote:
Ok, the reason I thought that was the problem, is that when you start 
porting a module
from modperl1 to modperl2, you get similar error messages. Basically, 
you've got a module which is links
against modperl1/apache1 in some way, and it can't find those symbols.

Which leads me to conclude you can't use Apache::Scoreboard outside 
of a modperl1/apache1 environment.

Try writing an apache handler using it, rather than a perl script.
That can't be the problem either ... the same script runs just fine on 
a Linux box with the same versions of everything.


It is. Linux doesn't attempt to resolve everything at link time, only 
when the function is actually used. Darwin attempts to resolve 
everything as the program links, causing the error.

Maybe you could try building it statically.

Mike.



Re: Apache::Scoreboard trouble

2003-10-20 Thread Michael Chamberlain
On Monday, October 20, 2003, at 02:50  pm, Ray Zimmerman wrote:

At 5:58 PM +0100 10/18/03, Michael Chamberlain wrote:
On Friday, October 17, 2003, at 09:36  pm, Ray Zimmerman wrote:

I have perl-5.8.0 installed in /usr/local with no problems.

Today I installed Apache::Scoreboard but when I try running ...

#!/usr/bin/perl -w
use strict;
use Apache::Scoreboard;
1;
... I get ...

dyld: perl Undefined symbols:
_ap_rwrite
_ap_send_http_header
_ap_set_content_length
_sv2request_rec
Trace/BPT trap
Any ideas?

My guess would be your running an apache1 version of 
Apache::Scoreboard with
an apache2 binary.
I don't think this is possible. I'm sure the httpd that I'm running is 
1.3.28 ... and I don't think I've ever even touched this machine with 
anything related to Apache 2. In any case, from the output of 'make' 
it looks like the only place it is looking for Apache stuff is in 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/darwin/auto/Apache/
and that definitely doesn't have anything related to Apache 2 in it.

Any other ideas?


Ok, the reason I thought that was the problem, is that when you start 
porting a module
from modperl1 to modperl2, you get similar error messages. Basically, 
you've got a module which is links
against modperl1/apache1 in some way, and it can't find those symbols.

Which leads me to conclude you can't use Apache::Scoreboard outside of 
a modperl1/apache1 environment.

Try writing an apache handler using it, rather than a perl script.

Mike.




Re: Apache::Scoreboard trouble

2003-10-18 Thread Michael Chamberlain
On Friday, October 17, 2003, at 09:36  pm, Ray Zimmerman wrote:

I have perl-5.8.0 installed in /usr/local with no problems.

Today I installed Apache::Scoreboard but when I try running ...

#!/usr/bin/perl -w
use strict;
use Apache::Scoreboard;
1;
... I get ...

dyld: perl Undefined symbols:
_ap_rwrite
_ap_send_http_header
_ap_set_content_length
_sv2request_rec
Trace/BPT trap
Any ideas?

My guess would be your running an apache1 version of Apache::Scoreboard 
with
an apache2 binary.

Mike.