Re: cygwin + postgres 7.1 + tcl support

From: "guard" <guard(at)ficnet(dot)net>
To: pgsql-ports(at)postgresql(dot)org
Subject: Re: cygwin + postgres 7.1 + tcl support
Date: 2001-05-23 03:35:19
Message-ID: 9efb40$312a$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

i try cygwin+pgsql 7.1
not work please help me

> configure --with-tcl --with-tclconfig=/lib --with-perl ok
> ln -s /bin/cygtclsh80.exe /bin/tclsh ok
> ln -s /bin/cygwish80.exe /bin/wish ok
> configure --with-tcl --with-tclconfig=/lib --with-perl ok
> make -i ok
> cd src/interfaces/libpgtcl/ ok
>
> ( [...] here I edited pgTclId.c and commented out 2 lines with undefined
refferences to Tcl_CreateFileHandler and Tcl_DeleteFileHandler -- 693/694
and 715 -- respectively) ok
>
> make NOT OK
error message
PgtclId.o ....undefined referend to 'Tcl_Alloc'
PgtclId.o ....undefined referend to 'Tcl_...'
PgtclId.o ....undefined referend to 'Tcl_...'

> 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 -lcry
pt -ltcl80

"S. L." <s0lao(at)netscape(dot)net> gl
news:04410B88(dot)3F3582D2(dot)00013D13(at)netscape(dot)net(dot)(dot)(dot)
> "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 -lcry
pt -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/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Tegge, Bernd 2001-05-23 10:46:30 Re: Re: pgsql + qnx
Previous Message Peter Eisentraut 2001-05-22 20:57:09 Re: Re: pgsql + qnx