Обсуждение: installation of 7.1.2 with tcl/tk

Поиск
Список
Период
Сортировка

installation of 7.1.2 with tcl/tk

От
Jie Liang
Дата:
Hi, all,
I need your help.
If I config without tcl, compile seems fine.
However, when I config with tcl/tk, I always got some
error, similar case occurs when I tried to install it
via ports.
my OS is FreeBSD4.3 and postgresql-7.1.2, any idea??
I couldn't find tcl.h
I got following when installing:

./configure --with-perl --with-tcl --with-tk --with-CXX
--with-setproctitle --with-tclconfig=/usr/local/lib/tcl8.3/
--with-tkconfig=/usr/local/lib/tk8.3/

gmake
gmake[3]: Leaving directory
`/usr/local/postgresql-7.1.2/src/interfaces/libpq++'
gmake[3]: Entering directory
`/usr/local/postgresql-7.1.2/src/interfaces/libpgtcl'
/usr/local/bin/gmake -C ../../../src/interfaces/libpq all
gmake[4]: Entering directory
`/usr/local/postgresql-7.1.2/src/interfaces/libpq'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory
`/usr/local/postgresql-7.1.2/src/interfaces/libpq'
gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic
-DPIC -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: No such file or directory
In file included from pgtcl.c:20:
pgtclCmds.h:17: tcl.h: No such file or directory
In file included from pgtcl.c:19:
libpgtcl.h:21: syntax error before `*'
libpgtcl.h:22: syntax error before `*'
In file included from pgtcl.c:20:
pgtclCmds.h:44: syntax error before `Tcl_Interp'
pgtclCmds.h:80: syntax error before `cData'
pgtclCmds.h:82: syntax error before `cData'
pgtclCmds.h:84: syntax error before `cData'
pgtclCmds.h:86: syntax error before `cData'
pgtclCmds.h:88: syntax error before `cData'
pgtclCmds.h:90: syntax error before `cData'
pgtclCmds.h:92: syntax error before `cData'
pgtclCmds.h:94: syntax error before `cData'
pgtclCmds.h:96: syntax error before `cData'
pgtclCmds.h:108: syntax error before `cData'
pgtclCmds.h:110: syntax error before `cData'
pgtclCmds.h:114: syntax error before `cData'
pgtclCmds.h:116: syntax error before `cData'
pgtclCmds.h:118: syntax error before `cData'
pgtclCmds.h:120: syntax error before `cData'
pgtclCmds.h:122: syntax error before `cData'
pgtclCmds.h:124: syntax error before `cData'
pgtclCmds.h:126: syntax error before `cData'
In file included from pgtcl.c:21:
pgtclId.h:18: syntax error before `*'
pgtclId.h:37: syntax error before `*'
pgtclId.h:39: syntax error before `cData'
pgtclId.h:40: syntax error before `cData'
pgtclId.h:41: syntax error before `cData'
pgtclId.h:42: syntax error before `*'
pgtclId.h:43: syntax error before `*'
pgtclId.h:44: syntax error before `*'
pgtclId.h:45: syntax error before `*'
pgtclId.h:49: syntax error before `clientData'
pgtclId.h:63: syntax error before `Pg_ConnType'
pgtclId.h:43: syntax error before `*'
pgtclId.h:44: syntax error before `*'
pgtclId.h:45: syntax error before `*'
pgtclId.h:49: syntax error before `clientData'
pgtclId.h:63: syntax error before `Pg_ConnType'
pgtclId.h:63: warning: type defaults to `int' in declaration of
`Pg_ConnType'
pgtclId.h:63: warning: data definition has no type or storage class
pgtcl.c:30: syntax error before `*'
pgtcl.c:31: warning: no previous prototype for `Pgtcl_Init'
pgtcl.c: In function `Pgtcl_Init':
pgtcl.c:43: warning: implicit declaration of function `Tcl_CreateCommand'
pgtcl.c:43: `interp' undeclared (first use in this function)
pgtcl.c:43: (Each undeclared identifier is reported only once
pgtcl.c:43: for each function it appears in.)
pgtcl.c:46: `ClientData' undeclared (first use in this function)
pgtcl.c:46: syntax error before `0'
pgtcl.c:51: syntax error before `0'
pgtcl.c:56: syntax error before `0'
pgtcl.c:61: syntax error before `0'
pgtcl.c:66: syntax error before `0'
pgtcl.c:71: syntax error before `0'
pgtcl.c:76: syntax error before `0'
pgtcl.c:81: syntax error before `0'
pgtcl.c:86: syntax error before `0'
pgtcl.c:102: syntax error before `0'
pgtcl.c:107: syntax error before `0'
pgtcl.c:113: syntax error before `0'
pgtcl.c:118: syntax error before `0'
pgtcl.c:123: syntax error before `0'
pgtcl.c:128: syntax error before `0'
pgtcl.c:133: syntax error before `0'
pgtcl.c:138: syntax error before `0'
pgtcl.c:143: syntax error before `0'
pgtcl.c:145: warning: implicit declaration of function `Tcl_PkgProvide'
pgtcl.c:147: `TCL_OK' undeclared (first use in this function)
pgtcl.c:148: warning: control reaches end of non-void function
pgtcl.c: At top level:
pgtcl.c:152: syntax error before `*'
pgtcl.c:153: warning: no previous prototype for `Pgtcl_SafeInit'
pgtcl.c: In function `Pgtcl_SafeInit':
pgtcl.c:154: `interp' undeclared (first use in this function)
gmake[3]: *** [pgtcl.o] Error 1
gmake[3]: Leaving directory
`/usr/local/postgresql-7.1.2/src/interfaces/libpgtcl'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/local/postgresql-7.1.2/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/postgresql-7.1.2/src'
gmake: *** [all] Error 2
*** Error code 2


Jie LIANG

St. Bernard Software

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.stbernard.com
www.ipinc.com


Re: installation of 7.1.2 with tcl/tk

От
Tom Lane
Дата:
Jie Liang <jliang@ipinc.com> writes:
> ./configure --with-perl --with-tcl --with-tk --with-CXX
> --with-setproctitle --with-tclconfig=/usr/local/lib/tcl8.3/
> --with-tkconfig=/usr/local/lib/tk8.3/

Looks like you need --with-includes (and probably --with-libs, as well).
tclConfig.sh does not give any hints about where to find Tcl's
includes... so if you don't have them in the standard include search
path, it's up to you to tell configure where to look.

            regards, tom lane

Re: installation of 7.1.2 with tcl/tk

От
Jie Liang
Дата:
yes, I solved it.
thanks anyway.

Jie LIANG

St. Bernard Software

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.stbernard.com
www.ipinc.com

On Mon, 4 Jun 2001, Tom Lane wrote:

> Jie Liang <jliang@ipinc.com> writes:
> > ./configure --with-perl --with-tcl --with-tk --with-CXX
> > --with-setproctitle --with-tclconfig=/usr/local/lib/tcl8.3/
> > --with-tkconfig=/usr/local/lib/tk8.3/
>
> Looks like you need --with-includes (and probably --with-libs, as well).
> tclConfig.sh does not give any hints about where to find Tcl's
> includes... so if you don't have them in the standard include search
> path, it's up to you to tell configure where to look.
>
>             regards, tom lane
>