On Sun, Dec 17, 2000 at 12:18:35AM -0600, Craig A. Berry wrote:
> The dynamic library (shareable image in vmsspeak) that comprises the
> bulk of Perl's innards needs to be told exactly what symbols to make
> externally visible. We do this by running perl.h through the C
> preprocessor and rummaging through the output looking for "extern"
> declarations. We do this somewhat selectively, so the movement of
> routines into children of perl.h can prevent their inclusion in the
> shareable image and cause link errors, such as we've been seeing for
> PerlIO_getpos and PerlIO_setpos.
>
> The patch below includes a modification to vms/gen_shrfls.pl that
> causes it to include symbols from perlio.h and corrects those link
> errors. However, this casts the net rather too widely since not all
> extern prototypes in perlio.h actually exist when stdio is being used
> for PerlIO, so we end up telling the shareable image to include
> symbols that can't be resolved, generating link errors when we
> attempt to create the image. Consequently the patch also tinkers
> with perlio.h to hide those symbols that aren't needed when
> PERLIO_IS_STDIO is defined.
>
> --- perlio.h;-0 Mon Dec 11 21:31:32 2000
> +++ perlio.h Sat Dec 16 18:43:38 2000
Thanks, applied.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen