I am trying to build 5.10.0 perl rpm. I also need to upgrade threads, and threads::shared module. So I replaced the threads folder under perl-5.10.0/ext/threads and perl-5.10.0/ext/threads/shared with the newer versions of threads and threads::shared. Also added the
if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
# Core
push(@conditional_params, 'MAN3PODS' => {}, 'NORECURS' => 1); }
to Makefile.PL After that I get an error
threads.xs: In function 'S_ithread_run':
threads.xs:526: error: 'G_WANT' undeclared (first use in this function)
threads.xs:526: error: (Each undeclared identifier is reported only once
threads.xs:526: error: for each function it appears in.)
threads.xs: In function 'XS_threads_join':
threads.xs:1224: error: 'G_WANT' undeclared (first use in this function)
threads.xs: In function 'XS_threads_wantarray':
threads.xs:1561: error: 'G_WANT' undeclared (first use in this function)
make: *** [threads.o] Error 1
So I added
'DEFINE' => '-DHAS_PPPORT_H'
to conditional_params. Everything built fine but some of the tests for threads, and threads::shared failed. Can some one help me building perl with updated core moudles?