Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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 

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-
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, and finds it, it 
doesn't actually use it.  I had to add compiler flags in the Makefiles for 
AIX too.



pgsql-ports by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group