|
Posted by Sisyphus on March 1, 2006, 6:54 pm
Please log in for more thread options
> Hi,
>
> Wondering if anyone can help, I'm trying to install forks version 0.18
> and running into problems.
>
> perl makefile.PL works fine, but when I make I get whats attached
> below, any ideas ?
>
> For info:
>
> Solaris 9, Perl version v5.8.7
>
> the only thing i can think of it that I have some higher versions of
> the modules required, do they have to be exactly that version, if so
> where do I get them ?
Higher versions should be fine. (Older versions of modules can be found on
backpan.)
.
.
> forks.xs: In function `XS_threads__shared_cond_timedwait':
> forks.xs:192: parse error before `int'
> forks.xs:195: `count' undeclared (first use in this function)
.
.
In forks.xs, find the function 'cond_timedwait'. You'll see near the
beginning of that function:
PREINIT:
SV *ref2;
Make that:
PREINIT:
SV *ref2;
int count;
Further down in the same function, you'll find:
int count = call_pv( "threads::shared::_remote",G_ARRAY );
Change that to:
count = call_pv( "threads::shared::_remote",G_ARRAY );
Then run 'make clean', 'perl Makefile.PL' and 'make' and see what happens.
If I've got it right, you shouldn't get any errors in relation to
cond_timedwait. Not sure if that's going to take care of *all* errors,
however.
(Many recent compilers will accept the code in cond_timedwait as is ....
apparently your compiler won't.)
Cheers,
Rob
|