Re: cygwin + postgres 7.1 + tcl support

From: s0lao(at)netscape(dot)net (S(dot) L(dot))
To: pgsql-ports(at)postgresql(dot)org
Subject: Re: cygwin + postgres 7.1 + tcl support
Date: 2001-05-15 09:19:00
Message-ID: 04410B88.3F3582D2.00013D13@netscape.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

"Tim Dunnington" <timbert(at)timshouse(dot)com> wrote:
[...]
> At any rate, has anyone actually been able to do this (compile libpgtcl on
> cygwin)?
>
> TIm

Here's the way I did it today -- to recall the steps (excerpts from $HOME/.bash_history -- with some irrelevant cut-outs and notes added):

tar xvzf postgresql-7.1.tar.gz
cd postgresql-7.1/
configure --with-tcl --with-tclconfig=/lib --with-perl
ln -s /bin/cygtclsh80.exe /bin/tclsh
ln -s /bin/cygwish80.exe /bin/wish
configure --with-tcl --with-tclconfig=/lib --with-perl
make -i
cd ../../interfaces/libpgtcl/

( [...] here I edited pgTclId.c and commented out 2 lines with undefined refferences to Tcl_CreateFileHandler and Tcl_DeleteFileHandler -- 693/694 and 715 -- respectively)

make
dllwrap -o pgtcl.dll --dllname pgtcl.dll --def pgtcl.def pgtcl.o pgtclCmds.o pgtclId.o ../../../src/utils/dllinit.o  -lcygipc -lcrypt -L../../../src/interfaces/libpq -lpq -L/usr/local/lib -lcrypt -ltcl80

(NOTE about -ltcl80 which is hand inserted)

make -i install
cp /usr/local/pgsql/lib/pgtcl.dll /usr/local/pgsql/libpgtcl.dll

(this is how pgaccess expects the library name)

. /pgrc
ipc-daemon &
initdb
pg
psql -h localhost template1
PGLIB=c:/cygwin/usr/local/pgsql/lib cygwish80 c:/cygwin/usr/local/pgsql/share/pgaccess/main.tcl
pg stop

Final notes:
1. ". /pgrc" and "pg" commands are some shell scripts I use to initialize PG vars and to use pg_ctl according to windows cygwin specs.
2. This is done under windows 98 SE; I have no means to make a built under NT/2000 -- but 100% this built works on NT/2000.
3. The c:/cygwin/usr[...] notation in cygwish80 command line is necessary, as tcl/tk are mingw32, so they don't know anything about cygwin mounts
4. My cygwin1.dll is 1.1.6.

Hope it helps,

                       SLao
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Brother Tuck 2001-05-17 17:03:24 Win32 native port question
Previous Message Lamar Owen 2001-05-15 04:15:23 Re: [PORTS] 7.1.1-2.PGDG RPMset.