TCL installation troubles - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject TCL installation troubles
Date
Msg-id 3635DD46.D3BBD7CB@alumni.caltech.edu
Whole thread Raw
Responses Configure problem, redux (was Re: TCL installation troubles)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I started out with a Makefile.custom which has in it the following:

USE_TCL= true
TCL_LIB= -ltcl
X_LIBS= -L/usr/X11/lib
TK_LIB= -ltk

Did a "configure", without specifying --with-tcl, then did a "make
install". The installation process hangs forever at the
"mkMakefile.tcldefs.sh" stage:

make[2]: Entering directory `/opt/postgres/pgsql/src/bin/pgtclsh'
Makefile:20: Makefile.tcldefs: No such file or directory
/bin/sh mkMakefile.tcldefs.sh
make[2]: *** Deleting file `Makefile.tcldefs'
make[2]: *** [Makefile.tcldefs] Interrupt
make[1]: *** [install] Interrupt
make: *** [install] Interrupt

Did a ^C to exit. Then, I reran configure with --with-tcl specified this
time, and from the bin/pgtclsh directory did a "make":

golem$ make
Makefile:20: Makefile.tcldefs: No such file or directory
Makefile:22: Makefile.tkdefs: No such file or directory
/bin/sh mkMakefile.tkdefs.sh
/bin/sh mkMakefile.tcldefs.sh
gcc -I../../include -I../../backend   -O2  -m486  -Wall
-Wmissing-prototypes -I/usr/X11R6/include -I../../interfaces/libpgtcl   
-c pgtclAppInit.c -o pgtclAppInit.o

It looks like it now made the file which is required by the Makefile
(!?), so retrying "make" seems to run to completion.

I know there was quite a bit of discussion on the hackers list about how
to do this installation, but it doesn't seem quite right or at lesat
finished (though I know that the "USE_TCL" in my Makefile.custom might
have thrown it off a little bit). Did this result in any written docs on
how to install? Is someone prepared to fix up the Makefile to make it
more robust (e.g. it can't include a file which hasn't been constructed
yet, though there are ways around that by conditionally including it and
then running make from within that makefile).
                        - Tom


pgsql-hackers by date:

Previous
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: rules regression test diff (was Re: [HACKERS] Last call?)
Next
From: Sferacarta Software
Date:
Subject: Re[2]: [HACKERS] Re: [INTERFACES] Odbc parser error