Subject: | Compiling with perl-5.6.1 fails |
In file Process\Process.xs function Create()
contain two pieces of code that break:
#if PERL_VERSION > 5
env = PerlEnv_get_childenv();
#endif
and
#if PERL_VERSION > 5
PerlEnv_free_childenv(env);
#endif
These fail because iperlsys.h (of perl-5.6.1) contains
#define PerlEnv_get_childenv() get_childenv()
#define PerlEnv_free_childenv(e) free_childenv((e))
but does not provide prototypes for get_childenv and free_childenv.
File win32/win32.c of perl-5.6.1 contains this:
void*
get_childenv(void)
{ return NULL; }
void
free_childenv(void* d)
{}
Simply removing the call of PerlEnv_get_childenv and
PerlEnv_free_childenv fixes the problem.