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

Re: cygwin + postgres 7.1 + tcl support

From: "Tim Dunnington" <timbert(at)timshouse(dot)com>
To: "S(dot) L(dot)" <s0lao(at)netscape(dot)net>, <jaewh(at)email(dot)com>
Cc: <pgsql-ports(at)postgresql(dot)org>
Subject: Re: cygwin + postgres 7.1 + tcl support
Date: 2001-05-14 13:23:25
Message-ID: 002501c0dc79$0eb413d0$030a000a@brahms (view raw or flat)
Thread:
Lists: pgsql-ports
I had the same problem a while back, and I tried both of these things to no
avail.  I couldn't get configure to work on the tcl sources, so I couldn't
build tcl in the first place.

I also noticed that the binary distro of postgres doesn't have tcl built in,
even though a few months ago Jason sent out the build command he was going
to use, and it included --with-tcl.  I'm guessing he didn't have any luck
either?

At any rate, has anyone actually been able to do this (compile libpgtcl on
cygwin)?

TIm

----- Original Message -----
From: "S. L." <s0lao(at)netscape(dot)net>
To: <jaewh(at)email(dot)com>
Cc: <pgsql-ports(at)postgresql(dot)org>
Sent: Monday, May 14, 2001 1:19 AM
Subject: Re: [PORTS] cygwin + postgres 7.1 + tcl support


> [actually I'm very happy now admin-ing my 7.1 with pgaccess, after
tweaking near this problem a couple of hours]
> "Jae-Woong Hwnag" <jaewh(at)email(dot)com> wrote:
> >
> > Hi, all
> >
> > Somehow, I can not compile postgres 7.1 with tcl support using cygwin.
> > I am getting the below error messages:
> >
> > --
> > 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
> > pgt
> > clId.o
> > ../../../src/utils/dllinit.o -lcygipc -lcrypt -L../../../src/interfaces/
> > libpq -lpq -L/usr/lib -L/usr/local/lib -lcrypt
>
> It's obvious you don't link libtclXX.a (i.e. you don't have a "-ltclXX.a",
where XX is the tcl/tk version installed with cygwin). Configure doesn't
seem to add this automatically, even if you passed a --with-tcl=DIR option.
Solutions are:
>
> 1. You add -ltclXX.a by hand to dllwrap command line
> 2. You don't install the binary distro of tcl/tk that comes with cygwin,
as it is a mingw32 one, not a cygwin, as PostgreSQL should become. You
either build your own cygwin version for tcl/tk or pick an already built
one. [... where the discussion becomes OT, the cygwin port of tcl/tk could
exist in two flavours, the MS windowing environment or the X window one,
bla, bla]
>
> > pgtcl.o(.text+0xf9):pgtcl.c: undefined reference to `Tcl_CreateCommand'
> > pgtcl.o(.text+0x113):pgtcl.c: undefined reference to `Tcl_CreateCommand'
> > pgtcl.o(.text+0x12d):pgtcl.c: undefined reference to `Tcl_CreateCommand'
> > ...
> >
> > I would appreciate if somebody can point how to compile postgres 7.1
with
> > tcl
> > using cygwin.
> >
> > Thanks,
> > Jae
> >
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> >
>
> Hope it helped,
>
>
>                             SLao
> __________________________________________________________________
> Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>


In response to

Responses

pgsql-ports by date

Next:From: Jason TishlerDate: 2001-05-14 15:31:44
Subject: Re: cygwin + postgres 7.1 + tcl support
Previous:From: S. L.Date: 2001-05-14 06:19:28
Subject: Re: cygwin + postgres 7.1 + tcl support

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