perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Hay <steve.m....@googlemail.com>
Subject Re: [PATCH] Don't call modperl_threaded_mpm() et al. from XS code
Date Wed, 15 Oct 2014 20:19:40 GMT
On 15 October 2014 09:20, Niko Tyni <ntyni@debian.org> wrote:
> r594345 (and later r1241983 and r1245916, all merged into trunk with
> r1602105) modified modperl_trace() to call functions that are provided
> by mod_perl.c. However, the same code is compiled into the APR XS module
> without mod_perl.o linkage, so we end up with missing symbols in APR.so.
>
> % objdump -T blib/arch/auto/APR/APR.so|grep UND|grep modperl
> 0000000000000000      D  *UND*  0000000000000000              modperl_is_running
> 0000000000000000      D  *UND*  0000000000000000              modperl_threaded_mpm
> 0000000000000000      D  *UND*  0000000000000000              modperl_threads_started
>
> For the most part these missing symbols don't matter when modperl_trace()
> doesn't actually get called, but CPAN modules like Apache-Gallery that
> use APR and run their suites with PERL_DL_NONLAZY=1 now fail their tests
> because of this.
>
> Guard the problematic invocations with #ifndef MP_IN_XS, which is
> defined for the XS module builds.
>
> Bug-Debian: https://bugs.debian.org/765174
> ---
>  src/modules/perl/modperl_common_log.c | 2 ++
>  1 file changed, 2 insertions(+)
>

Thanks, committed in revision 1632172.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message