Thread: Postgres on Windows NT

Postgres on Windows NT

From
Christos Poulkas
Date:
Hi,

I tried to install postgresql on my NT machine but in vain.
Following your instructions, I have already installed successfully
cygwin (1.1.4)  and cygipc (1.1.7).

I started ipc-daemon & and executed the following commands:
1. configure --prefix=$HOME/local/pgsql
2. make
I fails during the make procedure reporting the error message below:


dlltool --export-all --output-def postgres.def access/SUBSYS.o bootstrap/SUBSYS.
o catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS
.o main/SUBSYS.o parser/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o
 postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSY
S.o utils/SUBSYS.o ../utils/version.o
dlltool --dllname postgres.exe --def postgres.def --output-lib libpostgres.a
dlltool --dllname postgres.exe --output-exp postgres.exp --def postgres.def
gcc -g -o postgres.exe -Wl,--base-file,postgres.base postgres.exp access/SUBSYS.
o bootstrap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SU
BSYS.o libpq/SUBSYS.o main/SUBSYS.o parser/SUBSYS.o nodes/SUBSYS.o optimizer/SUB
SYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/
SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o ../utils/version.o -L/usr/local/lib -lcygi
pc -lcrypt -lcygwin -lkernel32
utils/SUBSYS.o(.text+0x42ec7):elog.c: undefined reference to `_sys_nerr'
utils/SUBSYS.o(.text+0x438a5):exc.c: undefined reference to `_sys_nerr'
collect2: ld returned 1 exit status
make[1]: *** [postgres] Error 1
make[1]: Leaving directory `/home/administrator/progs/pgsql/postgresql-7.0.2/src
/backend'
make: *** [all] Error 2

Can you please provide me a workaround? Thanks Christos

Re: Postgres on Windows NT

From
Pete Forman
Date:
Christos Poulkas writes:
 [...]
 > utils/SUBSYS.o(.text+0x42ec7):elog.c: undefined reference to `_sys_nerr'
 > utils/SUBSYS.o(.text+0x438a5):exc.c: undefined reference to `_sys_nerr'

Use my patch of 2000-10-26 posted on this list instead of the part of
Jason's patch that modifies those two files in backend/utils/error/.
--
Pete Forman                 -./\.- Disclaimer: This post is originated
Western Geophysical           -./\.-  by myself and does not represent
pete.forman@westgeo.com         -./\.-  the opinion of Baker Hughes or
http://www.crosswinds.net/~petef  -./\.-  its divisions.