Thread: Can not compile --with-tcl ???

Can not compile --with-tcl ???

From
"sam"
Date:
Hello :




I  have  comiple  tcl 8.3.2  and  tk 8.3.2  complete
but  I  want  to  compile  postgresql 7.1.3  with  tcl

./configure --with-tcl --with-tclconfig=3D/usr/local/tcl8.3.2/unix --with-t=
kconfig=3D/usr/local/tk8.3.2/unix

make=20

and  I  got    the  error


  gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -DP=
IC -I../../../src/interfaces/libpq -I../../../src/include   -c -o pgtcl.o p=
gtcl.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:63: warning: type defaults to `int' in declaration of `Pg_ConnTyp=
e'
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.3/src/interfaces/lib=
pgtcl'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/local/postgresql-7.1.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/postgresql-7.1.3/src'
gmake: *** [all] Error 2
*** Error code 2




thanks=20


=20=20



-------------------------------------------------------
Young-net  Technology      Sam
phone:04-23763808#20
e-mail:sam@young-net.com.tw

How can I unsubscribe the mail t list

From
"yxy"
Date:
DQogIC0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0gDQogIEZyb206IHNh
bSANCiAgVG86IHBnc3FsLWJ1Z3NAcG9zdGdyZXNxbC5vcmcgDQogIFNlbnQ6
IFN1bmRheSwgSnVseSAyMCwgMjAwMyAxMjowOCBBTQ0KICBTdWJqZWN0OiBb
QlVHU10gQ2FuIG5vdCBjb21waWxlIC0td2l0aC10Y2wgPz8/DQoNCg0KICBI
ZWxsbyA6DQogICANCiAgIA0KICAgDQogICANCiAgSSAgaGF2ZSAgY29taXBs
ZSAgdGNsIDguMy4yICBhbmQgIHRrIDguMy4yICBjb21wbGV0ZQ0KICBidXQg
IEkgIHdhbnQgIHRvICBjb21waWxlICBwb3N0Z3Jlc3FsIDcuMS4zICB3aXRo
ICB0Y2wNCiAgIA0KICAuL2NvbmZpZ3VyZSAtLXdpdGgtdGNsIC0td2l0aC10
Y2xjb25maWc9L3Vzci9sb2NhbC90Y2w4LjMuMi91bml4IC0td2l0aC10a2Nv
bmZpZz0vdXNyL2xvY2FsL3RrOC4zLjIvdW5peA0KDQogIG1ha2UgDQoNCiAg
YW5kICBJICBnb3QgICAgdGhlICBlcnJvcg0KICAgDQogICANCiAgICBnY2Mg
LXBpcGUgLU8yIC1XYWxsIC1XbWlzc2luZy1wcm90b3R5cGVzIC1XbWlzc2lu
Zy1kZWNsYXJhdGlvbnMgLWZwaWMgLURQSUMgLUkuLi8uLi8uLi9zcmMvaW50
ZXJmYWNlcy9saWJwcSAtSS4uLy4uLy4uL3NyYy9pbmNsdWRlICAgLWMgLW8g
cGd0Y2wubyBwZ3RjbC5jDQogIEluIGZpbGUgaW5jbHVkZWQgZnJvbSBwZ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0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQogIFlvdW5nLW5l
dCAgVGVjaG5vbG9neSAgICAgIFNhbQ0KICBwaG9uZTowNC0yMzc2MzgwOCMy
MA0KICBlLW1haWw6c2FtQHlvdW5nLW5ldC5jb20udHcNCg0K

Re: Can not compile --with-tcl ???

From
Tom Lane
Date:
"sam" <sam@young-net.com.tw> writes:
> I  have  comiple  tcl 8.3.2  and  tk 8.3.2  complete
> but  I  want  to  compile  postgresql 7.1.3  with  tcl

> ./configure --with-tcl --with-tclconfig=3D/usr/local/tcl8.3.2/unix --with-t=
> kconfig=3D/usr/local/tk8.3.2/unix

> make=20

>   gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -DP=
> IC -I../../../src/interfaces/libpq -I../../../src/include   -c -o pgtcl.o p=
> gtcl.c
> In file included from pgtcl.c:19:
> libpgtcl.h:19: tcl.h: No such file or directory

Unfortunately, it wasn't until tcl 8.4 that it occurred to the Tcl boys
that tclConfig.sh ought to provide a way to find out where Tcl's include
files have been installed.  As long as you're using 8.3 you'll need to
add an explicit --with-includes switch pointing to the Tcl include
directory to PG's configure command.

I'd also recommend using a more recent PG release than 7.1.3 ...

            regards, tom lane