Anyone using perl-5.12 and WITH_PERL_MALLOC?

Kevin Oberman kob6558 at gmail.com
Sat Jun 23 19:00:34 UTC 2012


On Sat, Jun 23, 2012 at 11:05 AM, Michael Scheidell
<scheidell at freebsd.org> wrote:
>
>
> On 6/23/12 12:31 PM, Kevin Oberman wrote:
>
> (I noticed in the Makefile, if you have WITH_THREADS && WITH_PERL_MALLOC,
> .if defined(WITH_THREADS)
> #XXX .if ${ARCH} == "amd64"
> #XXX IGNORE=    Threaded perl does not pass tests on ${ARCH}
> #XXX .endif
> CONFIGURE_ARGS+=        -Dusethreads=y
> PKGNAMESUFFIX=          -threaded
> WITH_PTHREAD=           yes
> # it seems perl malloc has problems with threaded perl on FreeBSD
> .undef WITH_PERL_MALLOC
>
>
> I wonder if this is true for WITH_PTHREAD (which is on by default)
>
> anyone using it this way? with_perl_malloc?  on 7.x?
>
> is it broken on 7.x?
>
> On my 9.0-Stable (4/28/12) system I have perl-threaded installed with
> PERL_MALLOC selected. 'perl5 -V' reports:
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
>                         PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
> USE_64_BIT_ALL
>                         USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
>                         USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
>   Built under freebsd
>   Compiled at Feb 16 2012 10:25:18
>
> I believe you were tricked by the above .if defined in the Makefile
>
> mine (without_threads), and (without_perl_malloc) says same thing
> 'perl_malloc_wrap'
>
> (I ASSUME that WITH_PERL_MALLOC     and WITHOUT_THREADS, it would say
> perl_malloc?
>
> here is mine: (that runs, without_perl_malloc)
>
>
> Characteristics of this binary (from libperl): this is the default build.
>
>   Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
> USE_64_BIT_ALL
>                         USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
>                         USE_PERL_ATOF

Yes, I agree that perl is not really being built with PERL_MALLOC, but
selecting THREADS and PERL_MALLOC options does produce a working
threaded perl. Neither THREADS nor PERL_MALLOC are defaults, but I
have ports installed that require threaded perl.
-- 
R. Kevin Oberman, Network Engineer
E-mail: kob6558 at gmail.com


More information about the freebsd-ports mailing list