Обсуждение: plperl does not build on RH7.1
Is there a way to build plperl on RH7.1?
Here the error output:
plperl.c: In function `plperl_create_sub':
plperl.c:306: warning: passing arg 1 of `perl_call_pv' from incompatible
pointer type
plperl.c:306: warning: passing arg 2 of `perl_call_pv' makes pointer
from integer without a cast
plperl.c:306: too few arguments to function `perl_call_pv'
plperl.c:317: `thr' undeclared (first use in this function)
plperl.c:317: (Each undeclared identifier is reported only once
plperl.c:317: for each function it appears in.)
plperl.c: In function `plperl_call_perl_func':
plperl.c:425: warning: passing arg 1 of `perl_call_sv' from incompatible
pointer type
plperl.c:425: warning: passing arg 2 of `perl_call_sv' makes pointer
from integer without a cast
plperl.c:425: too few arguments to function `perl_call_sv'
plperl.c:437: `thr' undeclared (first use in this function)
plperl.c: In function `plperl_build_tuple_argument':
plperl.c:810: warning: passing arg 1 of `perl_eval_pv' from incompatible
pointer type
plperl.c:810: warning: passing arg 2 of `perl_eval_pv' makes pointer
from integer without a cast
plperl.c:810: too few arguments to function `perl_eval_pv'
Thanks in advance
Stefan
--
-----------------------------
Dr. Stefan Holzheu
Tel.: 0921/55-5720
Fax.: 0921/55-5799
BITOeK Wiss. Sekretariat
Universitaet Bayreuth
D-95440 Bayreuth
-----------------------------
In the previous message I have forgotten to give some important information: postgresql 7.4 perl 5.6.1 > Is there a way to build plperl on RH7.1? > > Here the error output: > > plperl.c: In function `plperl_create_sub': > plperl.c:306: warning: passing arg 1 of `perl_call_pv' from incompatible > pointer type > plperl.c:306: warning: passing arg 2 of `perl_call_pv' makes pointer > from integer without a cast > plperl.c:306: too few arguments to function `perl_call_pv' > plperl.c:317: `thr' undeclared (first use in this function) > plperl.c:317: (Each undeclared identifier is reported only once > plperl.c:317: for each function it appears in.) > plperl.c: In function `plperl_call_perl_func': > plperl.c:425: warning: passing arg 1 of `perl_call_sv' from incompatible > pointer type > plperl.c:425: warning: passing arg 2 of `perl_call_sv' makes pointer > from integer without a cast > plperl.c:425: too few arguments to function `perl_call_sv' > plperl.c:437: `thr' undeclared (first use in this function) > plperl.c: In function `plperl_build_tuple_argument': > plperl.c:810: warning: passing arg 1 of `perl_eval_pv' from incompatible > pointer type > plperl.c:810: warning: passing arg 2 of `perl_eval_pv' makes pointer > from integer without a cast > plperl.c:810: too few arguments to function `perl_eval_pv' > > > Thanks in advance > > Stefan > -- ----------------------------- Dr. Stefan Holzheu Tel.: 0921/55-5720 Fax.: 0921/55-5799 BITOeK Wiss. Sekretariat Universitaet Bayreuth D-95440 Bayreuth -----------------------------
Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de> writes:
> In the previous message I have forgotten to give some important information:
> postgresql 7.4
> perl 5.6.1
>> Is there a way to build plperl on RH7.1?
You need this patch:
2003-11-24 08:16 petere
* configure, configure.in, src/include/pg_config.h.in,
src/interfaces/ecpg/ecpglib/connect.c,
src/interfaces/ecpg/ecpglib/misc.c, src/port/thread.c,
src/tools/thread/thread_test.c: Rename USE_THREADS to
ENABLE_THREAD_SAFETY to avoid name clash with Perl. Fixes
compilation failure with --enable-thread-safety --with-perl and
Perl 5.6.1.
Or, don't do --enable-thread-safety.
regards, tom lane