Skip site navigation (1) Skip section navigation (2)

Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Murad Nayal <murad(at)godel(dot)bioc(dot)columbia(dot)edu>, pgsql-ports(at)postgresql(dot)org, bugs(at)postgresql(dot)org
Subject: Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64
Date: 2000-05-23 00:58:57
Message-ID: 21570.959043537@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-bugspgsql-hackerspgsql-ports
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

pgsql-ports by date

Next:From: Tom LaneDate: 2000-05-23 01:11:25
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Previous:From: Bruce MomjianDate: 2000-05-22 23:58:45
Subject: Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64

pgsql-hackers by date

Next:From: Tom LaneDate: 2000-05-23 01:11:25
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Previous:From: Chris BitmeadDate: 2000-05-23 00:57:12
Subject: Re: OO Patch

pgsql-admin by date

Next:From: Tom LaneDate: 2000-05-23 01:11:25
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Previous:From: Bruce MomjianDate: 2000-05-22 23:58:45
Subject: Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64

pgsql-bugs by date

Next:From: Tom LaneDate: 2000-05-23 01:11:25
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Previous:From: Adam HaberlachDate: 2000-05-23 00:20:15
Subject: Just checking on a few bugs...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group