Lists: | pgsql-interfaces |
---|
From: | Fabian Peters <fabian(at)ngi(dot)de> |
---|---|
To: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | PL/Tcl: internal error - cannot create 'normal' interpreter |
Date: | 2003-04-24 12:34:36 |
Message-ID: | BACDA67C.8F68%fabian@ngi.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
Hi everybody,
I'm stuck getting PL/Tcl to work with postgresql-7.3.2 and Tcl8.4 under OS X
10.2.4. I compiled from source with the following configure flags:
./configure --with-includes=/sw/include/ --with-libraries=/sw/lib --with-tcl
--with-tkconfig=/Library/Frameworks/Tk.framework
The pgtclsh seems to work fine but calling a function in a database from
psql results in the following:
> ERROR: pltcl: internal error - cannot create 'normal' interpreter
I ran the test suite, which also produces the above error. A search of the
archives didn't return much, so I'm pretty clueless now.
Any ideas as to what might be the problem or how to get some more detailed
info greatly appreciated...
cheers
Fabian
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Fabian Peters <fabian(at)ngi(dot)de> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: PL/Tcl: internal error - cannot create 'normal' interpreter |
Date: | 2003-04-25 02:40:52 |
Message-ID: | 4873.1051238452@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
Fabian Peters <fabian(at)ngi(dot)de> writes:
>> ERROR: pltcl: internal error - cannot create 'normal' interpreter
> Any ideas as to what might be the problem or how to get some more detailed
> info greatly appreciated...
Apparently Tcl_CreateSlave() is failing. Although it doesn't say so on
its man page, it seems likely to me that the parent interpreter's result
would be set to a possibly-useful error message. You might try adding
code to pltcl.c to add the "hold" interpreter's result to this error
message.
We've heard other reports of strange failures involving Tcl_CreateSlave,
but AFAIR the other ones prevented pltcl.so from even getting linked.
If you learn anything I'd like to hear about it...
regards, tom lane
From: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Fabian Peters <fabian(at)ngi(dot)de>, pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: PL/Tcl: internal error - cannot create 'normal' interpreter |
Date: | 2003-04-26 02:22:31 |
Message-ID: | 3EA9ED67.354FBDC2@Yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
I cannot think of any reason why it would fail to create the 'normal'
interpreter after successfully creating the 'hold' one ... so CC me on
that please.
Jan
Tom Lane wrote:
>
> Fabian Peters <fabian(at)ngi(dot)de> writes:
> >> ERROR: pltcl: internal error - cannot create 'normal' interpreter
>
> > Any ideas as to what might be the problem or how to get some more detailed
> > info greatly appreciated...
>
> Apparently Tcl_CreateSlave() is failing. Although it doesn't say so on
> its man page, it seems likely to me that the parent interpreter's result
> would be set to a possibly-useful error message. You might try adding
> code to pltcl.c to add the "hold" interpreter's result to this error
> message.
>
> We've heard other reports of strange failures involving Tcl_CreateSlave,
> but AFAIR the other ones prevented pltcl.so from even getting linked.
> If you learn anything I'd like to hear about it...
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
From: | Fabian Peters <fabian(at)ngi(dot)de> |
---|---|
To: | PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jan Wieck <JanWieck(at)Yahoo(dot)com> |
Subject: | Re: PL/Tcl: internal error - cannot create 'normal' |
Date: | 2003-04-28 15:31:07 |
Message-ID: | BAD315DB.9089%fabian@ngi.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
Tom, Jan,
thanks for your feedback! I suspect there might be a problem with the OS X
way of linking. Right now I don't have the time to investigate this any
further. But I'll have to get back to it in a couple of weeks and will keep
you posted...
cheers
Fabian
> Fabian Peters <fabian(at)ngi(dot)de> writes:
>>> ERROR: pltcl: internal error - cannot create 'normal' interpreter
>
>> Any ideas as to what might be the problem or how to get some more detailed
>> info greatly appreciated...
>
> Apparently Tcl_CreateSlave() is failing. Although it doesn't say so on
> its man page, it seems likely to me that the parent interpreter's result
> would be set to a possibly-useful error message. You might try adding
> code to pltcl.c to add the "hold" interpreter's result to this error
> message.
>
> We've heard other reports of strange failures involving Tcl_CreateSlave,
> but AFAIR the other ones prevented pltcl.so from even getting linked.
> If you learn anything I'd like to hear about it...
>
> regards, tom lane