Thread: Postgres 7.2-3 --with-tcl from source

Postgres 7.2-3 --with-tcl from source

From
Andrew Klimov
Date:

Please, can anybody explain me how ...the hell... to compile Postgres 7.2 from source --with-tcl option. My steps  (according to read from forums) were :

1.
ln -s /bin/cygtclsh80.exe /bin/tclsh
ln -s /bin/cygwish80.exe /bin/wish

2.Add manually -lcygtcl83 to DLLLIBS in "/src/makefiles/Makefile.win".Now my DLLLIBS looks like this: DLLLIBS= -L/usr/local/lib -lcygipc -lcrypt -lcygtcl83

3. go to /src/pl/tcl and run make.

make produces "makefile.tcldefs" .I'd read that "Makefile" needs the TCL_SHARED_BUILD = 1 from that file.

4. return to /usr/src/postgresql-7.2.3 and run configure than make.make does well until it goes to build pltcl.When compiling pltcl.c compiler gives me many "undefined reference" errors and then obviously fails:

pltcl.o(.text+0x14):pltcl.c: undefined reference to `_TopMemoryContext'
pltcl.o(.text+0x1d):pltcl.c: undefined reference to `_fmgr_info_cxt'
pltcl.o(.text+0x12b):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x165):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x1ac):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x453):pltcl.c: undefined reference to `_SPI_connect'
pltcl.o(.text+0x46c):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x479):pltcl.c: undefined reference to `_SPI_finish'
pltcl.o(.text+0x492):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x61a):pltcl.c: undefined reference to `_SPI_exec'
pltcl.o(.text+0x633):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x639):pltcl.c: undefined reference to `_SPI_processed'
pltcl.o(.text+0x662):pltcl.c: undefined reference to `_SPI_exec'
pltcl.o(.text+0x67b):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x681):pltcl.c: undefined re ference to `_SPI_processed'
pltcl.o(.text+0x6a6):pltcl.c: undefined reference to `_elog'
pltcl.o(.text+0x6b0):pltcl.c: undefined reference to `_SPI_tuptable'
pltcl.o(.text+0x6c3):pltcl.c: undefined reference to `_SPI_fnumber'
pltcl.o(.text+0x6d0):pltcl.c: undefined reference to `_SPI_processed'
pltcl.o(.text+0x6d8):pltcl.c: undefined reference to `_SPI_tuptable'
pltcl.o(.text+0x6f1):pltcl.c: undefined reference to `_SPI_getvalue'
...
make[3]: *** [pltcl.dll] Error 1
make[3]: Leaving directory `/usr/src/postgresql-7.2.3/src/pl/tcl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/postgresql-7.2.3/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-7.2.3/src'
make: *** [all] Error 2

I've no idea what this all about.  If these bugs are fixed in new Postgres7.3 source,I'd better will go to compile PostgreSQL 7.3 from source.If not -please, help me.I completely tired to find why ... the hell... --with-tcl won't compile.

Any help would be very appreciated.

Andrew.



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Re: Postgres 7.2-3 --with-tcl from source

From
Jason Tishler
Date:
Andrew,

On Tue, Jan 14, 2003 at 05:30:26AM -0800, Andrew Klimov wrote:
> I've no idea what this all about.  If these bugs are fixed in new
> Postgres7.3 source,I'd better will go to compile PostgreSQL 7.3 from
> source.If not -please, help me.I completely tired to find why ... the
> hell... --with-tcl won't compile.

I would try again with the latest PostgreSQL source (i.e., 7.3.1) and
upgrade your Cygwin setup to the latest Tcl/Tk (i.e., 20021218-1 which
is 8.3 based).  If you have luck, then I will re-release Cygwin
PostgreSQL configured with --with-tcl too.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6