Postgres 7.2-3 --with-tcl from source

From: Andrew Klimov <and_k_98(at)yahoo(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Postgres 7.2-3 --with-tcl from source
Date: 2003-01-14 13:30:26
Message-ID: 20030114133026.52682.qmail@web20413.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin


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 reference 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

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2003-01-14 13:59:25 Re: Postgres 7.2-3 --with-tcl from source
Previous Message Henshall, Stuart - Design & Print 2003-01-14 10:57:09 Re: $ initdb -D /usr/share/postgresql/data