Re: cygwin + postgres 7.1 + tcl support

Поиск
Список
Период
Сортировка
От s0lao@netscape.net (S. L.)
Тема Re: cygwin + postgres 7.1 + tcl support
Дата
Msg-id 3734C086.03BDC6F8.00013D13@netscape.net
обсуждение исходный текст
Ответ на cygwin + postgres 7.1 + tcl support  ("Jae-Woong Hwnag" <jaewh@email.com>)
Список pgsql-ports
[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
withcygwin). 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
PostgreSQLshould become. You either build your own cygwin version for tcl/tk or pick an already built one. [... where
thediscussion becomes OT, the cygwin port of tcl/tk could exist in two flavours, the MS windowing environment or the X
windowone, 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/

В списке pgsql-ports по дате отправления:

Предыдущее
От: "Louis Bertrand"
Дата:
Сообщение: RE: HP-UX 11 + GCC + --with-CXX = pain
Следующее
От: "Tim Dunnington"
Дата:
Сообщение: Re: cygwin + postgres 7.1 + tcl support