Re: PL/Perl compilation error

Поиск
Список
Период
Сортировка
От Gilles DAROLD
Тема Re: PL/Perl compilation error
Дата
Msg-id 39EB3C30.63FB0CE2@darold.net
обсуждение исходный текст
Ответ на Re: PL/Perl compilation error  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: PL/Perl compilation error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Bruce Momjian wrote:

> Can you send me a patch?
>
> > Hi,
> >
> > I have take a look to the source code concerning PL/Perl, it seems that 2 variables
> > have a bad call : errgv and na.
> >
> > If you replace them by their normal call (in 5.6.0) PL_errgv and PL_na you will get
> > success to compile the lib plperl.so.
> >

This patch (simple diff) applies to postgresql-7.0.2.
See attachment...

Regards

Gilles DAROLD



328c328
<     if (SvTRUE(GvSV(PL_errgv)))
---
>     if (SvTRUE(GvSV(errgv)))
334c334
<         elog(ERROR, "creation of function failed : %s", SvPV(GvSV(PL_errgv), PL_na));
---
>         elog(ERROR, "creation of function failed : %s", SvPV(GvSV(errgv), na));
444c444
<     if (SvTRUE(GvSV(PL_errgv)))
---
>     if (SvTRUE(GvSV(errgv)))
450c450
<         elog(ERROR, "plperl : error from function : %s", SvPV(GvSV(PL_errgv), PL_na));
---
>         elog(ERROR, "plperl : error from function : %s", SvPV(GvSV(errgv), na));
654c654
<         (SvPV(perlret, PL_na),
---
>         (SvPV(perlret, na),
2192c2192
<     output = perl_eval_pv(SvPV(output, PL_na), TRUE);
---
>     output = perl_eval_pv(SvPV(output, na), TRUE);

В списке pgsql-general по дате отправления:

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: Re: Error building JDBC Driver
Следующее
От: "Roderick A. Anderson"
Дата:
Сообщение: [Q] createdb for existing directory