Re: Cygwin PostgreSQL with TCL support (was Re: hi)

From: s0lao(at)netscape(dot)net (S(dot) L(dot))
To: guard(at)ficnet(dot)net
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Cygwin PostgreSQL with TCL support (was Re: hi)
Date: 2001-06-21 05:49:39
Message-ID: 5A56EF29.76EC8796.00013D13@netscape.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin


"guard" <guard(at)ficnet(dot)net> wrote:
>
> Dear SLao
>
> very thanks,
> I had RUN step
> my step
> 1. cd /postgresql-7.1.2/src/pl/tcl
> make
> 2.set (Makefile.tcldefs) TCL_SHARED_BUILD = 1

Here is your mistake -- as I stated, your step 1. doesn't execute, you are just noticed your tcl isn't build SHARED. So you must change places for the steps 2 and 1, respectively.

> 3.(Makefile.tcldefs) not found @VALUE@

The @VALUE@ is a generic specification, not an actual item in the Makefile.tcldefs file. You could use instead of VALUE name, any name you found in Makefile.tcldefs between @ and @ :)

> 4.because not pltcl.o so
> RUN "dllwrap -o pltcl.dll --def pltcl.def pltcl.o
> ../../../src/utils/dllinit.o -lcygipc -lcrypt -ltcl80 -L../../backend -lpost
> gres
>
> Error ----
> gcc: pltcl.o: No such file or directory
> dllwrap: gcc exited with status 1

It will be present after completing the exchange between your 1 and 2 steps.

>
> please help me,thanks
>
>
>
>
> > To quote from your last private message related to the above pgsql-ports
> thread:
> >
> > > I have make ok pgsql
> > > have make pgtcl.dll
> > > but i create pltcl Error
> > >
> > > My step......
> > >
> > > $psql database
> > > ??CREATE FUNCTION pltcl_call_handler () RETURNS OPAQUE AS
> > > ????'/usr/local/pgsql/lib/pgtcl.dll' LANGUAGE 'C';
> > >
> > > Error: ERROR: Can't find function pltcl_call_handler in file
> > > /usr/local/pgsql/lib/pgtcl.dll
> > >
> >
> > This looks like you don't want to use PostgreSQL from tcl/tk scripts
> (where pgtcl.dll is needed), but you'd rather want to use tcl programming
> language from inside PostgreSQL (where should be needed pltcl.dll). To use a
> language from those in src/pl, you should first either do a createlang
> command, or a CREATE LANGUAGE statement for a database.
> >
> > Here's how you should build pltcl.dll.
> > The source is found in src/pl/tcl. There are some differences from
> building pgtcl, but here are the steps:
> >
> > 1. You should edit by hand Makefile.tcldefs
> >    a. You must set TCL_SHARED_BUILD = 1 , else the make would notice the
> extension can't be build.
> >    b. For the other lines having right values in form @VALUE@, you should
> delete the @VALUES(at)(dot)
> >
> > 2. Like the case of pgtcl, the dllwrap command won't add "-ltcl80" option,
> so you must add it by hand. In my case, I had to add
> "-L../../backend -lpostgres" also.
> >
> > My dllwrap command was:
> >
> > "dllwrap -o pltcl.dll --def pltcl.def pltcl.o
> ../../../src/utils/dllinit.o -lcygipc -lcrypt -ltcl80 -L../../backend -lpost
> gres"
> >
> > That should be it.
> >
> >                     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
>

Regards,

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

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message S. L. 2001-06-21 13:37:14 Re: Cygwin PostgreSQL with TCL support (was Re: hi)
Previous Message Bruce Momjian 2001-06-21 01:56:03 Re: [PATCHES] Cygwin contrib patch