Postgres 7.3 from source --with-tcl : Errors again... (part 2)

From: Andrew Klimov <and_k_98(at)yahoo(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Postgres 7.3 from source --with-tcl : Errors again... (part 2)
Date: 2003-01-14 17:31:25
Message-ID: 20030114173125.64002.qmail@web20422.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin


Thank you, Jason, for fast reply to my previous e-mail.These errors were occured while linking:

dllwrap -o pgtcl.dll --dllname pgtcl.dll --def pgtcl.def pgtcl.o pgtclCmds.o pgtclId.o ../../../src/utils/dllinit.o -L/usr/local/lib -L../../../src/interfaces/libpq -lpq -L/usr/local/lib -lcrypt

pgtcl.o(.text+0x13d):pgtcl.c: undefined reference to `_Tcl_GetVar'
pgtcl.o(.text+0x147):pgtcl.c: undefined reference to `_Tcl_GetDouble'
pgtcl.o(.text+0x186):pgtcl.c: undefined reference to `_Tcl_CreateCommand'
pgtcl.o(.text+0x1a0):pgtcl.c: undefined reference to `_Tcl_CreateCommand'
pgtcl.o(.text+0x1ba):pgtcl.c: undefined reference to `_Tcl_CreateCommand'
pgtcl.o(.text+0x1d4):pgtcl.c: undefined reference to `_Tcl_CreateCommand'
pgtcl.o(.text+0x1ee):pgtcl.c: undefined reference to `_Tcl_CreateCommand'

....

However, I've seems to be fixed it by myself by modifying SHLIB_LINK variable in /src/interfaces/libpgtcl. Original SHLIB_LINK :

SHLIB_LINK = $(libpq)

My SHLIB_LINK:

SHLIB_LINK = -lcygtcl83 -lcygtk83 $(libpq) (I'm not sure about -lcygtk83 necessity.)

With this make proceeds building pgtcl.dll and pq.dll successfully.However, when go to /src/pl/tcl directory and trying to build pltcl:

make[3]: Entering directory `/usr/src/postgresql-7.3.1/src/pl/tcl'
gcc-2 -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -c -o pltcl.o pltcl.c

In file included from pltcl.c:40:
/usr/include/tcl.h:234: warning: `DLLIMPORT' redefined
../../../src/include/pg_config_os.h:26: warning: this is the location of the previous definition

dlltool --export-all --output-def pltcl.def pltcl.o
dllwrap -o pltcl.dll --dllname pltcl.dll --def pltcl.def pltcl.o ../../../src/utils/dllinit.o -L/usr/local/lib -L/usr/lib -lcygtcl83

tcl.o(.text+0x4):pltcl.c: undefined reference to `_TopMemoryContext'
tcl.o(.text+0x18):pltcl.c: undefined reference to `_fmgr_info_cxt'
tcl.o(.text+0x108):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x13b):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x17c):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x3a3):pltcl.c: undefined reference to `_SPI_connect'
tcl.o(.text+0x3b7):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x3c8):pltcl.c: undefined reference to `_SPI_finish'
tcl.o(.text+0x3df):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x56f):pltcl.c: undefined reference to `_SPI_exec'
tcl.o(.text+0x579):pltcl.c: undefined reference to `_SPI_tuptable'
tcl.o(.text+0x57f):pltcl.c: undefined reference to `_SPI_freetuptable'
tcl.o(.text+0x596):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x59f):pltcl.c: undefined reference to `_SPI_processed'
tcl.o(.text+0x5c4):pltcl.c: undefined reference to `_SPI_exec'
tcl.o(.text+0x5dd):pltcl.c: undefined reference to `_elog'
tcl.o(.text+0x5e6):pltcl.c: undefined reference to `_SPI_processed'
tcl.o(.text+0x600):pltcl.c: undefined reference to `_SPI_tuptable'
tcl.o(.text+0x606):pltcl.c: undefined reference to `_SPI_freetuptable'

... (The same thing was in Postgresql 7.2.3)

Does these errors points to another missing -l<library> option in makefile from /usr/src/pl/tcl? And what is the name of this library?

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 20:13:52 Re: Postgres 7.3 from source --with-tcl : Errors again...
Previous Message Jason Tishler 2003-01-14 16:14:16 Re: Postgres 7.3 from source --with-tcl : Errors again...