> I don't think we dare risk a wholesale change in the way 
> pltcl is built
> for 7.2.  We're already through the ports testing process for 7.2, and
> I don't want to start it over again.

Ok, that is what I asked for, that you look at it, thanks. 7.3 then.
(Of course there have been other portability problems introduced recently, 
so ...)

This leaves the question how many port testers actually built 
and tested --with-tcl and actually tried a load and pg_connect in tclsh. 
My guess is not too many.
Imho we should start to require port reports to contain certain --with 
features, like perl, tcl, ....

> As for the libpgtcl part of the patch, I don't understand why the Tcl
> library should be linked into libpgtcl.  libpgtcl is supposed to be
> loaded into a Tcl interpreter, not carry its own interpreter 
> along with
> it; but it sure looks like that's what will happen with this patch.

On AIX this is actually an imports file. Now the tricky part is 
the first line of this file. This line has to be correct.

Since the tcl Interpreter is linked with this same exports file
the library is only supposed to be loaded once.
Does anybody have an idea how to actually test this (without tk) ?

pgtclsh does work, but the shlib with above Makefile cannot be loaded 
by tclsh because it misses a -bnoentry flag :-(

With -bnoentry it does load and pg_connect and pg_exec and pg_result, 
is this a sufficient test ?
This again is probably a bug in Makefile.shlib on aix, since I guess 
all of our shlibs don't have a main function. Unfortunately a different 
flag has to be used on different aix Versions :-( Don't know if we still 
need to worry about AIX 4.2 and below, though.

Andreas

Wed, 9 Jan 2002 18:00:09 +0100
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: --with-tcl build on AIX (and others) fails 
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> This leaves the question how many port testers actually built 
> and tested --with-tcl and actually tried a load and pg_connect in tclsh. 
> My guess is not too many.

Good point.

> Imho we should start to require port reports to contain certain --with 
> features, like perl, tcl, ....

Yes, it'd be nice to ask people to check those things.  However if
someone doesn't have Tcl installed, I'm not going to reject the
port report...

> pgtclsh does work, but the shlib with above Makefile cannot be loaded 
> by tclsh because it misses a -bnoentry flag :-(
> With -bnoentry it does load and pg_connect and pg_exec and pg_result, 
> is this a sufficient test ?

I think so.

			regards, tom lane

Wed, 09 Jan 2002 12:05:45 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: --with-tcl build on AIX (and others) fails 