Re: Build fails for pl/tcl on OpenBSD - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Build fails for pl/tcl on OpenBSD
Date
Msg-id 4320.989035853@sss.pgh.pa.us
Whole thread Raw
In response to Re: Build fails for pl/tcl on OpenBSD  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
I said:
> OpenBSD's tcl package is broken, then.  It's their responsibility to put
> the necessary compiler flags into tclConfig.sh, not the responsibility
> of every Tcl-using software to second guess where the include files are.

After thinking about this a little more, I'm confused again.  How did
you manage to get past src/interfaces/libpgtcl, which also includes
tcl.h without benefit of any hand-hacked -I switches?

I'm still of the opinion that adding
    -I $(TCL_PREFIX)/include/tcl$(TCL_VERSION)
to src/pl/tcl/Makefile is an inappropriate thing to do.  But it seems
that the correct way to deal with nonstandardly-located packages is to
say
    --with-includes=/usr/local/include/tcl8.3
to configure (more than likely you'll also need
--with-libs=/usr/local/lib/tcl8.3), and I'm just wondering how come you
didn't seem to need that to build libpgtcl.  It shouldn't have gotten as
far as pl/tcl ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Build fails for pl/tcl on OpenBSD
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Error in rounding of timestamp