Обсуждение: surprise! Help needed on Win2K Postgres

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

surprise! Help needed on Win2K Postgres

От
"Tim Dunnington"
Дата:
Okay, tried getting 7.0.3 running but no luck.

Downloaded beta6 of 7.1, and I got some compiler errors about missing
definitions of tcl functions.

Tcl support is mandatory for my application, so I can't get around this.

I had to add the compiler flag "-L/usr/lib -ltcl80" to GNUMakefile.shlib, in
the win section, for the dll wrapper.

Here is what I get now:

dlltool --export-all --output-def pgtcl.def pgtcl.o pgtclCmds.o pgtclId.o
dllwrap -o pgtcl.dll --dllname pgtcl.dll --def pgtcl.def pgtcl.o pgtclCmds.o
pgtclId.o ../../../src/utils/dllinit.o  -L../../../src/backend -lpostgres -
lcygipc -lcygwin -lcrypt -lkernel32 -L../../../src/interfaces/libpq -lpq -
L/usr/local/lib -lcrypt  -L/usr/lib -ltcl80
pgtclId.o(.text+0xa98):pgtclId.c: undefined reference
to 'Tcl_CreateFileHandler'

pgtclId.o(.text+0xac8):pgtclId.c: undefined reference to
`Tcl_DeleteFileHandler'

collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make[2]: *** [libpgtcl.a] Error 1
make[2]: Leaving directory `/usr/src/postgresql-
7.1beta6/src/interfaces/libpgtcl
'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-7.1beta6/src/interfaces'
make: *** [all] Error 2



Any ideas what I need to do?


This is similar to a problem I had with compiling on AIX.  In both cases,
even though configure has an option for the tclConfig.sh, and finds it, it
doesn't actually use it.  I had to add compiler flags in the Makefiles for
AIX too.

Thanks,
Tim

Re: surprise! Help needed on Win2K Postgres

От
Tom Lane
Дата:
"Tim Dunnington" <timbert@timshouse.com> writes:
> pgtclId.o(.text+0xa98):pgtclId.c: undefined reference
> to 'Tcl_CreateFileHandler'

> pgtclId.o(.text+0xac8):pgtclId.c: undefined reference to
> `Tcl_DeleteFileHandler'

Just a WAG: is it possible you are picking up include files for a
different version of Tcl than what you are linking with?  IIRC, we
have support for a couple of different generations of Tcl, and whether
we should call those two routines or not is one of the version-dependent
issues.  If configure got the wrong include files then possibly this
could be the outcome.

            regards, tom lane