From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Murad Nayal <murad@godel.bioc.columbia.edu>
Cc: pgsql-ports@postgresql.org
Cc: bugs@postgresql.org
Subject: Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64
Date: Mon, 22 May 2000 20:58:57 -0400
Message-ID: <21570.959043537@sss.pgh.pa.us> (raw)
In-Reply-To: <200005222358.TAA01876@candle.pha.pa.us>
References: <200005222358.TAA01876@candle.pha.pa.us>
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> Good point, but that's no solution --- the reason that the makefile
>> isn't keeping the main CFLAGS is that Tcl (and hence pltcl) may be
>> built with a different compiler than Postgres is being built with.
>> The Tcl compiler may not like the other compiler's switches. I guess
>> we could arrange to insert just the -I switches from your
>> --with-includes configuration command, however.
> Tom, do you want his verion in Makefile, or the original?
I'm working on it now --- need to fix configure to export a list of
just the -I switches, so we can include those into the pltcl build.
plperl may have the same problem, haven't looked yet.
There is a potential problem in this area that I've actually seen
happen, but don't know a way around: the two compilers may have
different default search paths. For example, on my system gcc includes
/usr/local/include in its default search path, but the system cc does
not. So, if you've built Tcl with system cc, and installed it in
/usr/local, and then try to build Postgres with gcc and --with-tcl,
everything goes fine until you get to pltcl, whereupon it falls over
because pltcl will be built with cc and cc doesn't find tcl.h.
That will still happen with this fix. The only way to build that
configuration successfully is to explicitly say
"--with-includes=/usr/local/include --with-libs=/usr/local/lib".
Arguably this is a bug in Tcl's tclConfig.sh, since it probably ought to
put "-I/usr/local/include" into its own CFLAGS settings when it's been
built that way ... but it doesn't ...
I don't have an answer to solving that problem automatically,
but I thought it'd be good to mention it for the archives.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, murad@godel.bioc.columbia.edu, pgsql-ports@postgresql.org, bugs@postgresql.org
Subject: Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64
In-Reply-To: <21570.959043537@sss.pgh.pa.us>
References: <200005222358.TAA01876@candle.pha.pa.us> <21570.959043537@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox