> I am further confused by posts in the archive and elsewhere. Some seem
> to say, 'Find the old offending libraries and remove them.' While
[quoted text clipped - 3 lines]
>
> So which approach is correct?
> ...
>
> But that is not the case here. You're not building an ordinary module
> - you're building mod_perl. Do Hyun Kim's answer in this case is
> appropriate - try building your Perl with a dynamic libperl instead
> of the default static libperl.
I'll try that next. I had opted not to build mod_perl as a DSO since the
Mason book specifically recommends against it, and running Mason was the
point of this now tiresome exercise :-) Further, since Apache and
mod_perl work fine until I add the Mason related directives to
httpd.conf, I assumed the culprit was not mod_perl.
> (I've encountered similar problems
> building mod_perl on older versions of Solaris - it can be a finicky
> build.)
Yes, Voodoo is great fun ;-)
Thanks,
Andrew
Sherm Pendley - 15 Jul 2004 20:41 GMT
> I'll try that next. I had opted not to build mod_perl as a DSO since
> the
> Mason book specifically recommends against it
That's a different question. You could try building Perl with a dynamic
libperl, and still build mod_perl as a static Apache extension. That
combination might work better than building both statically - I don't
know, I haven't tried that particular combination on Mac OS X.
The recipe varies. On the old Solaris machines I mentioned earlier,
Apache would refuse to start if they both libperl and mod_perl were
static, or both dynamic - one and only one of them had to be dynamic.
The truly bizarre part was that it didn't matter which one. (That was
one of the very few occasions where I gave up trying to figure out the
logical answer, and simply accepted that the voodoo worked...)
> point of this now tiresome exercise :-) Further, since Apache and
> mod_perl work fine until I add the Mason related directives to
> httpd.conf, I assumed the culprit was not mod_perl.
Have you tried any other directives that try to load an XS module?
> Yes, Voodoo is great fun ;-)
I'm glad you think so, because the next step involves a bell, a book, a
candle, and liberal applications of holy water. The demons in the
machine must be exorcised! ;-)
sherm--
Joseph Alotta - 15 Jul 2004 21:45 GMT
This might be a little out of our developed world mindset, but I have
heard numerous missionaries report that people in their host countries
will do the exorcism first off on all kinds of equipment, especially
cars and trucks and generators and household appliances. The general
conclusion is that it works well and it is lot cheaper then finding
a mechanic or engineer.
Could be they know things that some of us don't know.
Joe.
>> Yes, Voodoo is great fun ;-)
>
[quoted text clipped - 3 lines]
>
> sherm--
Alan Olsen - 17 Jul 2004 02:29 GMT
> This might be a little out of our developed world mindset, but I have
> heard numerous missionaries report that people in their host countries
[quoted text clipped - 4 lines]
>
> Could be they know things that some of us don't know.
No! No! No!
Hardware requires *blood* sacrifices.
Software required applied daemonology. (Or percussive maintenance.)
> Joe.
>
[quoted text clipped - 5 lines]
>>
>> sherm--
Ken Williams - 15 Jul 2004 22:52 GMT
>> ...
>>
[quoted text clipped - 8 lines]
> the
> point of this now tiresome exercise :-)
I know of no problems with DSO mod_perl & Mason on OS X. You should be
safe using it, assuming you can get it to work in the first place.
The problems we referred to in the book were mostly on a couple flaky
distributions of Linux.
-Ken
David Wheeler - 15 Jul 2004 23:01 GMT
> I know of no problems with DSO mod_perl & Mason on OS X. You should
> be safe using it, assuming you can get it to work in the first place.
>
> The problems we referred to in the book were mostly on a couple flaky
> distributions of Linux.
Actually, I think it has to do with how malloc is compiled into the
Perl used by the mod_perl DSO. See:
http://perl.apache.org/docs/1.0/guide/install.html#When_DSO_can_be_Used
On Panther, I get:
% /usr/bin/perl5.8.1 -V:usemymalloc
usemymalloc='n';
So it's probably usable.
Regards,
David
David Wheeler - 15 Jul 2004 23:03 GMT
> On Panther, I get:
>
> % /usr/bin/perl5.8.1 -V:usemymalloc
> usemymalloc='n';
>
> So it's probably usable.
Actually, to be more specific:
% /usr/bin/perl5.8.1 -V:bincompat5005 -V:usemymalloc
bincompat5005='UNKNOWN';
usemymalloc='n';
So it should work, provided that the mod_perl DSO that ships with
Panther uses the same Perl library.
Regards,
David