Thread: compiling 7.2.3 with tcl -- tcl.h

compiling 7.2.3 with tcl -- tcl.h

From
Stefan Reuschke
Date:
This works well with the sources of 7.2.3 with Suse 8.0:

./configure \
--enable-locale \
--enable-multibyte \
--with-CXX \
--with-perl \
--with-python \
--enable-odbc \
--enable-syslog \
--with-tcl \
--with-tclconfig=/usr/local/ActiveTcl/lib \
--with-tkconfig=/usr/local/ActiveTcl/lib

With gmake it's interrupted by following error message:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I../../../src/interfaces/libpq -I../../../src/include
-c -o pgtcl.o pgtcl.c 
In file included from pgtcl.c:19:
libpgtcl.h:19: tcl.h: Datei oder Verzeichnis nicht gefunden -> means file or folder not found
In file included from pgtcl.c:20:
pgtclCmds.h:17: tcl.h: Datei oder Verzeichnis nicht gefunden
gmake[3]: *** [pgtcl.o] Fehler 1 -> means error 1
gmake[3]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/postgresql-7.2.3/src/interfaces/libpgtcl«
gmake[2]: *** [all] Fehler 2
gmake[2]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/postgresql-7.2.3/src/interfaces«
gmake[1]: *** [all] Fehler 2
gmake[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/postgresql-7.2.3/src«
gmake: *** [all] Fehler 2

But it's there:
/usr/local/ActiveTcl/include/tcl.h

Every idea how to handle the problem is welcome.
Thanx
Stefan
______________________________________________________________________________
PREMIERE exklusiv bei WEB.DE: 3 Monate gratis + d-box-1 ab 1 Euro
Online solange der Vorrat reicht! http://premiere.web.de/?mc=999937&lp=2



Re: compiling 7.2.3 with tcl -- tcl.h

From
Tom Lane
Date:
Stefan Reuschke <reuschke_ukl@web.de> writes:
> libpgtcl.h:19: tcl.h: Datei oder Verzeichnis nicht gefunden -> means file or folder not found

> But it's there:
> /usr/local/ActiveTcl/include/tcl.h

I think you need a --with-includes pointing at that directory.

As of Tcl 8.4, the tclConfig.sh script finally includes a symbol
indicating where to find Tcl's include files, but Postgres doesn't
yet know to use it.  With earlier Tcl releases you'd need a manual
--with-includes anyway :-(
        regards, tom lane