surprise! Help needed on Win2K Postgres - Mailing list pgsql-ports

From Tim Dunnington
Subject surprise! Help needed on Win2K Postgres
Date
Msg-id 200103201643.LAA31082@jenkins.timshouse.com
Whole thread Raw
Responses Re: surprise! Help needed on Win2K Postgres
List 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

pgsql-ports by date:

Previous
From: Jason Tishler
Date:
Subject: Re: using postgresql on win2k
Next
From: Tom Lane
Date:
Subject: Re: surprise! Help needed on Win2K Postgres