Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Embedding under threaded Perl 5.6.1

I have a small (<=100 lines of C) application that embeds the Perl interpreter and

What should I do ?

Edit Masem 2001-11-04 - Some formatting editing

  • Comment on Help building embedded threaded perl 5.6.1 (was: Stanley Hopcroft)

Replies are listed 'Best First'.
Re: Help building embedded threaded perl 5.6.1 (was: Stanley Hopcroft)
by chromatic (Archbishop) on Nov 06, 2001 at 06:34 UTC
    That depends on what you want to do.

    If I were you, I'd trim it down to the simplest code that exhibits the behavior, and file a bug report with perlbug. If you were feeling especially noble, you could download the latest Perl snapshot (see perlhack) and test it there.

    With 5.6.1, you might not get a lot of thread help. 5.8 will be much, much better in that regard.

    If it works with threaded 5.5.3 but not 5.6.1, you're probably running into thread model differences that happened in 5.6.0. perldelta may be your friend then.

      Thank you very much for your advice.

      I have tried Jon Orwants example (persistent.pl/persistent.c) in perlembed with the sameesults.

      So, I have tried out perlbug.

      Thanks again for you advice; unfortunately this work is a small part of the Netsaint/Nagios (http://www.Netsaint.ORG) project, so development versions of Perl are not an option.

Re: Help building embedded threaded perl 5.6.1 (was: Stanley Hopcroft)
by Anonymous Monk on Nov 08, 2001 at 16:23 UTC
    The C program text requires
    #include <XSUB.h>

    for a threaded Perl (tried with 5.6.1 & 5.7.2 on FreeBSD 4.3-STABLE)

    This probably should be in the perlembed man page