surprise! Help needed on Win2K Postgres

From: "Tim Dunnington" <timbert(at)timshouse(dot)com>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: surprise! Help needed on Win2K Postgres
Date: 2001-03-20 16:43:10
Message-ID: 200103201643.LAA31082@jenkins.timshouse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

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

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Fred Yankowski 2001-03-20 19:25:32 Re: PostGreSQL on NT 4.0
Previous Message Tom Lane 2001-03-20 16:23:20 Re: surprise! Help needed on Win2K Postgres