Compile in Cygwin 1.1.4

From: Pedro(dot)Simoes(dot)Machado(at)bancobpi(dot)pt
To: pgsql-ports(at)postgresql(dot)org
Subject: Compile in Cygwin 1.1.4
Date: 2000-11-21 12:11:15
Message-ID: 6618D5A77FBDD41181EE00508BEEDFE818CE8C@CRIEXC01
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Hi,

I'm trying to compile Postgres 7.0.2 in Cygwin 1.1.4 in a Windows NT 4.0
system.

I've configured with the template provided to cygwin, and I get the
following error in the compilation process:

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/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/SUBSYS.o
utils/SUBSYS.o ../utils/version.o -L/usr/local/lib -lcygipc -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 `/usr/source/src/backend'
make: *** [all] Error 2

I was unable to resolve this error. I suppose the problem resides in the
Cygwin implementation, the _sys_nerr is an external variable in the .c files
(elog.c and exc.c) that should reside in the cygwin.dll ! (I'v tried to
understand the comments in version.h)

Anyone have experienced something like this? I suppose I should install a
previous version of Cygwin.

Thanks,
Pedro Machado

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Pete Forman 2000-11-21 12:44:48 Re: Compile in Cygwin 1.1.4
Previous Message Jason Tishler 2000-11-20 19:04:11 Building PostgreSQL 7.0.3 on Cygwin 1.1.5