Stanley Hopcroft <[EMAIL PROTECTED]> writes:
>Dear Folks,
>
>I am writing to thank you for encouragement and help this list has been
>to me, and to ask for your comments on this situation.
>
>A small application (call it a copy) based on the persistent.c example
>from perlembed was working quite happily (modulo threaded Perls) for
>Perl 5.005_03, 5.6.1 and 5.8.0.
>
>On 5.8.1 however, it will not compile, reporting
>
>[EMAIL PROTECTED] contrib]$ make mini_epn
>perl -MExtUtils::Embed -e xsinit
>gcc -g -O2  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
>-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
>-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
>-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE  -DHAVE_CONFIG_H -c
>perlxsi.c  `perl -MExtUtils::Embed -e ccopts`
>gcc -g -O2  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
>-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
>-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
>-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE  -DHAVE_CONFIG_H -c
>mini_epn.c `perl -MExtUtils::Embed -e ccopts`
>mini_epn.c: In function `main':
>mini_epn.c:116: error: `my_perl' undeclared (first use in this function)
>mini_epn.c:116: error: (Each undeclared identifier is reported only once
>mini_epn.c:116: error: for each function it appears in.)
>make: *** [mini_epn] Error 1

> 
>The difference between code that compiles (and runs) on the 5.8.1 system
>is _only_ the name of the Perl interpreter variable,

Which as you have discovered is important.
If your perl is configured for threads or multiplicity 
(and yours is both) there must be a 

   PerlInterpreter *my_perl

in scope before you call almost any of perl's internals.
Which line is 116 ?
 
And can we see perl -V output for the perl you used there.

Reply via email to