Обсуждение: Tcl_CreateExitHandle error

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

Tcl_CreateExitHandle error

От
Porter of PDSW
Дата:
hello everyone,

i tried compiling (LINUX_ELF set to true) postgres95 along with pgtclsh and
pgtksh compilation options on slakware linux 1.2.13, running on a 120 MHz
pentium, with tcl7.4 and tk4.0 and flex/bison
versions supplied with corresponding slakware version.

with some warnings compilation was over and binaries were created. For any help
if you need information on these warnings here they are ...

-------------------------------
make[2]: Entering directory `/hacktmp/avinash/src/backend/bootstrap'
gcc -Wall -Wmissing-prototypes -m486 -Dlinux  -I.. -I../port/linux -I../../include  -Wno-error   -c bootparse.c -o
bootparse.o
/usr/lib/bison.simple: In function `Int_yyparse':
/usr/lib/bison.simple:294: warning: implicit declaration of function `Int_yyerror'
/usr/lib/bison.simple:354: warning: implicit declaration of function `Int_yylex'
gcc -Wall -Wmissing-prototypes -m486 -Dlinux  -I.. -I../port/linux -I../../include  -Wno-error   -c bootscanner.c -o
bootscanner.o
lex.Int_yy.c:678: warning: no previous prototype for `Int_yylex'
bootscanner.l:138: warning: no previous prototype for `Int_yyerror'
make[2]: Leaving directory `/hacktmp/avinash/src/backend/bootstrap'

..... similar errors snipped ......

make[3]: Entering directory `/hacktmp/avinash/src/backend/storage/ipc'
gcc -Wall -Wmissing-prototypes -m486 -Dlinux  -I../.. -I../../port/linux -I../../../include   -c ipc.c -o ipc.o
In file included from /usr/include/sys/sem.h:8,
                 from ipc.c:37:
/usr/include/asm/bitops.h:23: warning: no previous prototype for `set_bit'
/usr/include/asm/bitops.h:33: warning: no previous prototype for `clear_bit'
/usr/include/asm/bitops.h:43: warning: no previous prototype for `change_bit'
/usr/include/asm/bitops.h:57: warning: no previous prototype for `test_bit'
/usr/include/asm/bitops.h:70: warning: no previous prototype for `find_first_zero_bit'
/usr/include/asm/bitops.h:96: warning: no previous prototype for `find_next_zero_bit'
/usr/include/asm/bitops.h:128: warning: no previous prototype for `ffz'
make[3]: Leaving directory `/hacktmp/avinash/src/backend/storage/ipc'

..... similar errors snipped ......

make[1]: Entering directory `/hacktmp/avinash/src/libpq++'
../../include/c.h:63: warning: abstract declarator used as declaration
                 from testlo.cc:15:
                 from ../libpq++.H:30,
In file included from ../../include/postgres.h:41,
g++ -Wall -Wmissing-prototypes -m486 -Dlinux  -Wno-error -I.. -I../../backend -I../../include -I../../libpq  -rdynamic
-otestlo testlo.cc -lm -ldl -lbsd -L.. -lpq++ -L../../libpq -lpq  

..... similar errors snipped ......

make[1]: Leaving directory `/hacktmp/avinash/src/libpq++'

make[1]: Entering directory `/hacktmp/avinash/src/libpgtcl'
gcc -Wall -Wmissing-prototypes -m486 -Dlinux  -I../backend -I../include -I../libpq -I/usr/include/tcl/ -Wno-error -fpic
-fPIC  -c pgtcl.c -o pgtcl.o 
pgtcl.c: In function `Pgtcl_AtExit':
pgtcl.c:54: warning: implicit declaration of function `Tcl_DeleteExitHandler'
pgtcl.c: In function `Pgtcl_Init':
pgtcl.c:81: warning: implicit declaration of function `Tcl_CreateExitHandler'
pgtcl.c:174: warning: implicit declaration of function `Tcl_PkgProvide'
-------------------------------------------------------------------------

Can anyone suggest - what can be possible problems causing these warnings??

Last few warnings "Tcl_Create..... variety", don't let either of pgtclsh and
pgtksh execute. I get error message as
    pgtclsh:can't resolve symbol 'Tcl_CreateExitHandler'


any help regarding how to get rid of above warnings and how to be able to run
pgtclsh and pgtksh succesfully, will be great help.

sandeep
(san@cs.unipune.ernet.in)


Re: [INTERFACES] Tcl_CreateExitHandle error

От
"Thomas G. Lockhart"
Дата:
> i tried compiling (LINUX_ELF set to true) postgres95

I assume you are actually trying the latest release, labeled PostgreSQL
v6.3.2?? If not, that is the one you should be working with.

> For any help
> if you need information on these warnings here they are ...
> /usr/lib/bison.simple:294: warning: implicit declaration of function `Int_yyerror'
> ..... similar errors snipped ......
> /usr/include/asm/bitops.h:23: warning: no previous prototype for `set_bit'
> ..... similar errors snipped ......

Down to here these are very normal "errors". yacc/bison doesn't declare
a prototype for the generated parsing routines so gcc complains since we
have warnings turned on. Also, Linux omits prototype declarations for
some inline bit manipulation assembler routines since the actual code is
in the .h file anyway. Causes the compiler to whine about missing
prototypes and, yes, they are missing...

Sorry, don't have any experience with the C++ and tcl warnings...

                    - Tom