Thread:
I have installed Fedora core 1.b The compilation failed and it gives me some errors. Can you help me? thank you from marco these are the last rows of the compilation: make[4]: Leaving directory `/usr/local/src/postgresql-7.4.1/src/interfaces/ecpg/preproc' make[3]: Leaving directory `/usr/local/src/postgresql-7.4.1/src/interfaces/ecpg' make[3]: Entering directory `/usr/local/src/postgresql-7.4.1/src/interfaces/libpgtcl' make -C ../../../src/interfaces/libpq all make[4]: Entering directory `/usr/local/src/postgresql-7.4.1/src/interfaces/libpq' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/usr/local/src/postgresql-7.4.1/src/interfaces/libpq' gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I../../../src/interfaces/libpq -I../../../src/include -D_GNU_SOURCE -c -o pgtcl.o pgtcl.c In file included from pgtcl.c:19: libpgtcl.h:19:17: tcl.h: No such file or directory In file included from pgtcl.c:19: libpgtcl.h:21: error: syntax error before '*' token libpgtcl.h:22: error: syntax error before '*' token In file included from pgtcl.c:20: pgtclCmds.h:17:17: tcl.h: No such file or directory In file included from pgtcl.c:20: pgtclCmds.h:53: error: syntax error before "Tcl_Interp" pgtclCmds.h:53: warning: no semicolon at end of struct or union pgtclCmds.h:59: warning: type defaults to `int' in declaration of `notify_hash' pgtclCmds.h:59: warning: data definition has no type or storage class pgtclCmds.h:62: error: syntax error before '}' token pgtclCmds.h:62: warning: type defaults to `int' in declaration of `Pg_TclNotifies' pgtclCmds.h:62: warning: data definition has no type or storage class pgtclCmds.h:76: error: syntax error before "Pg_TclNotifies" pgtclCmds.h:76: warning: no semicolon at end of struct or union pgtclCmds.h:84: error: syntax error before '}' token pgtclCmds.h:84: warning: type defaults to `int' in declaration of `Pg_ConnectionId' pgtclCmds.h:84: warning: data definition has no type or storage class pgtclCmds.h:95: error: syntax error before "cData" pgtclCmds.h:97: error: syntax error before "cData" pgtclCmds.h:99: error: syntax error before "cData" pgtclCmds.h:101: error: syntax error before "cData" pgtclCmds.h:103: error: syntax error before "cData" pgtclCmds.h:105: error: syntax error before "cData" pgtclCmds.h:107: error: syntax error before "cData" pgtclCmds.h:109: error: syntax error before "cData" pgtclCmds.h:111: error: syntax error before "cData" pgtclCmds.h:121: error: syntax error before "cData" pgtclCmds.h:123: error: syntax error before "cData" pgtclCmds.h:126: error: syntax error before "cData" pgtclCmds.h:128: error: syntax error before "cData" pgtclCmds.h:130: error: syntax error before "cData" pgtclCmds.h:132: error: syntax error before "cData" pgtclCmds.h:134: error: syntax error before "cData" pgtclCmds.h:136: error: syntax error before "cData" pgtclCmds.h:138: error: syntax error before "cData" pgtclCmds.h:140: error: syntax error before "cData" In file included from pgtcl.c:21: pgtclId.h:18: error: syntax error before '*' token pgtclId.h:37: error: syntax error before '*' token pgtclId.h:39: error: syntax error before "cData" pgtclId.h:40: error: syntax error before "cData" pgtclId.h:41: error: syntax error before "cData" pgtclId.h:42: error: syntax error before '*' token pgtclId.h:44: error: syntax error before '*' token pgtclId.h:45: error: syntax error before '*' token pgtclId.h:46: error: syntax error before '*' token pgtclId.h:47: error: syntax error before '*' token pgtclId.h:48: error: syntax error before '*' token pgtclId.h:49: error: syntax error before '*' token pgtclId.h:50: error: syntax error before '*' token pgtclId.h:51: error: syntax error before "clientData" pgtclId.h:64: error: syntax error before "Pg_ConnType" pgtclId.h:64: warning: type defaults to `int' in declaration of `Pg_ConnType' pgtclId.h:64: warning: data definition has no type or storage class pgtcl.c:30: error: syntax error before '*' token pgtcl.c:31: warning: no previous prototype for `Pgtcl_Init' pgtcl.c: In function `Pgtcl_Init': pgtcl.c:48: warning: implicit declaration of function `Tcl_GetDouble' pgtcl.c:48: error: `interp' undeclared (first use in this function) pgtcl.c:48: error: (Each undeclared identifier is reported only once pgtcl.c:48: error: for each function it appears in.) pgtcl.c:48: warning: implicit declaration of function `Tcl_GetVar' pgtcl.c:48: error: `TCL_GLOBAL_ONLY' undeclared (first use in this function) pgtcl.c:53: warning: implicit declaration of function `Tcl_CreateCommand' pgtcl.c:56: error: `ClientData' undeclared (first use in this function) pgtcl.c:56: error: `Tcl_CmdDeleteProc' undeclared (first use in this function) pgtcl.c:56: error: syntax error before ')' token pgtcl.c:61: error: syntax error before ')' token pgtcl.c:66: error: syntax error before ')' token pgtcl.c:71: error: syntax error before ')' token pgtcl.c:76: error: syntax error before ')' token pgtcl.c:81: error: syntax error before ')' token pgtcl.c:86: error: syntax error before ')' token pgtcl.c:91: error: syntax error before ')' token pgtcl.c:96: error: syntax error before ')' token pgtcl.c:112: error: syntax error before ')' token pgtcl.c:117: error: syntax error before ')' token pgtcl.c:123: error: syntax error before ')' token pgtcl.c:128: error: syntax error before ')' token pgtcl.c:133: error: syntax error before ')' token pgtcl.c:138: error: syntax error before ')' token pgtcl.c:143: error: syntax error before ')' token pgtcl.c:148: error: syntax error before ')' token pgtcl.c:153: error: syntax error before ')' token pgtcl.c:158: error: syntax error before ')' token pgtcl.c:160: warning: implicit declaration of function `Tcl_PkgProvide' pgtcl.c:162: error: `TCL_OK' undeclared (first use in this function) pgtcl.c: At top level: pgtcl.c:167: error: syntax error before '*' token pgtcl.c:168: warning: no previous prototype for `Pgtcl_SafeInit' pgtcl.c: In function `Pgtcl_SafeInit': pgtcl.c:169: error: `interp' undeclared (first use in this function) make[3]: *** [pgtcl.o] Error 1 make[3]: Leaving directory `/usr/local/src/postgresql-7.4.1/src/interfaces/libpgtcl' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/src/postgresql-7.4.1/src/interfaces' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/src/postgresql-7.4.1/src' make: *** [all] Error 2
marco <cocram@inwind.it> writes: > I have installed Fedora core 1.b > The compilation failed and it gives me some errors. > In file included from pgtcl.c:19: > libpgtcl.h:19:17: tcl.h: No such file or directory Don't say --with-tcl if you don't have Tcl installed ... regards, tom lane