Re: --with-tcl build on AIX (and others) fails

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: --with-tcl build on AIX (and others) fails
Date: 2002-01-09 17:00:09
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA41EB496@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-01-09 17:05:45 Re: --with-tcl build on AIX (and others) fails
Previous Message Daniel Kalchev 2002-01-09 16:37:49 Re: again on index usage