Re: cygwin + postgres 7.1 + tcl support - Mailing list pgsql-ports

From Tim Dunnington
Subject Re: cygwin + postgres 7.1 + tcl support
Date
Msg-id 002501c0dc79$0eb413d0$030a000a@brahms
Whole thread Raw
In response to cygwin + postgres 7.1 + tcl support  ("Jae-Woong Hwnag" <jaewh@email.com>)
Responses Re: cygwin + postgres 7.1 + tcl support
List 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@netscape.net>
To: <jaewh@email.com>
Cc: <pgsql-ports@postgresql.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@email.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@postgresql.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
>


pgsql-ports by date:

Previous
From: s0lao@netscape.net (S. L.)
Date:
Subject: Re: cygwin + postgres 7.1 + tcl support
Next
From: Jason Tishler
Date:
Subject: Re: cygwin + postgres 7.1 + tcl support