[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: MakeMaker change needed to fix Apache/mod_perl coredumps



Alan Burlison <Alan.Burlison@uk.sun.com> writes:
>
>The second is to modify MakeMaker so that all the .so files it produces
>from XS code have an explicit dependency on the perl libperl.so.  This
>would mean adding 
>"-L <path to libperl.so> -lperl" to the linker line in the Makefiles
>output by MakeMaker.
>
>Can anyone think of any deleterious effects of doing this?  If not, I'll
>get folks on the mod_perl list to check that the fix actually works on
>all the affected systems and then submit an official patch to p5p.

The reason -lperl is NOT added to related .so builds is that SunOS4
(and perhaps closely related BSD) complains if the "same" file is 
attempted to be loaded twice.

i.e. if perl is loaded and loads -lperl then if Tk is linked with -lperl
too (as it perhaps should be) then SunOS4 has kittens because the 
two -lperls are at different base addresses and it can't cope.
While -lperl was not that much of an issue at the time other shared
libs linked to perl were, so they are removed.

Which just says we need a 'hint' file for old systems like SunOS4,
but at the time this got implemented SunOS was very common.

-- 
Nick Ing-Simmons


Follow-Ups from:
Alan Burlison <Alan.Burlison@uk.sun.com>
References to:
Alan Burlison <Alan.Burlison@uk.sun.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]