perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beau E. Cox" <b...@beaucox.com>
Subject Re: [mp2] Re: Getting help for MasonX::Apache2Handler
Date Sat, 17 Apr 2004 07:22:36 GMT
On Friday 16 April 2004 08:40 pm, Stas Bekman wrote:
> Beau E. Cox wrote:
> > On Friday 16 April 2004 10:38 am, Stas Bekman wrote:
> >>Fred Moyer wrote:
[snipped]
> >>>The 'perl Makefile.PL' statement ran properly without errors on Linux
> >>>2.6.3 but on Darwin 7.0.3 building the Makefile generated the following
> >>>error.  This occurs with the latest releases as well as cvs tips of
> >>>apreq2 and mp2.  Perl 5.8.3 and httpd-2.0.49 were used.
> >>>
> >>>Checking if your kit is complete...
> >>>Looks good
> >>>dyld: perl Undefined symbols:
> >>>/Users/fredmoyer/dev/perl-5.8.3/lib/site_perl/5.8.3/darwin-2level/auto/
> >>>APR/Table/Table.bundle undefined reference to _modperl_hash_tie
> >>>expected to be defined in a dynamic image
> >>>/Users/fredmoyer/dev/perl-5.8.3/lib/site_perl/5.8.3/darwin-2level/auto/
> >>>APR/Table/Table.bundle undefined reference to _modperl_hash_tied_object
> >>>expected to be defined in a dynamic image
> >>>Trace/BPT trap
> >>
> >>It shouldn't try to load APR::Table unless mod_perl is loaded and
> >> running. Where is it getting loaded from?
> >
> > Hi Stas and Fred -
> >
> > I am befuddled. Fred says this happended 'building the make file'
> > which I take to mean running Makefile.PL (is that what you mean Fred?)
> > The 'Makefile.PL' is pretty standard:
>
> Beau, I haven't tried your handler so I can't tell. But what I can tell is
> how to reproduce Fred's issue. OSX and a few other platforms runtime
> loaders require resolution of all symbols in a shared library that's about
> to be loaded at the startup. Most other platforms do symbol resolution on
> demand, so you could be unware of an unresolved symbol unless it's used.
> There is a way though to force the symbols resolution at the startup, by
> setting the environment variable RTLD_NOW=1. Not sure why the DynaLoader
> manpage doesn't mention that. It probably should.

Hi -

On my Sorcerer Linux -

Linux version 2.6.5 (Beau E. Cox on @cathy.beaucox.com)
(gcc version 3.3.3) #1 Mon Apr 5 22:15:29 HST 2004

I did this:

$ export RTLD_NOW=1
$ perl Makefile.PL
-----------------------------------------------------------
    MasonX::Apache2Handler is an EXPERIMENTAL BETA RELEASE!
       Please install and use it only on a test system.
    (But it really, really works! The brave-hearted can use
                    it in production.)
                      Aloha => Beau;
-----------------------------------------------------------
Checking if your kit is complete...
Looks good
Writing Makefile for MasonX::Apache2Handler
$ set|grep RTLD
RTLD_NOW=1

Everything ok. Can't seem to reproduce your problem, Fred.

Aloha => Beau;


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message