Re: Trouble Compiling Postgres 7.0.2 under Windows - Mailing list pgsql-novice

From Tom Lane
Subject Re: Trouble Compiling Postgres 7.0.2 under Windows
Date
Msg-id 20160.969027525@sss.pgh.pa.us
Whole thread Raw
In response to Trouble Compiling Postgres 7.0.2 under Windows  (<Oliver_Hall@scee.net>)
List pgsql-novice
<Oliver_Hall@scee.net> 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'
> collect2: ld returned 1 exit status
> make[1]: *** [postgres] Error 1

> I can't find any reference to sys_nerr in the source so I'm a bit stumped
> how PostgreSQL would compile?

src/include/port/win.h contains

#include <cygwin/version.h>
#if (CYGWIN_VERSION_API_MAJOR >= 0) && (CYGWIN_VERSION_API_MINOR >= 8)
#define sys_nerr _sys_nerr
#endif

which looks a tad fragile.  This is referenced as "extern int sys_nerr"
in src/backend/utils/error/elog.c and src/backend/utils/error/exc.c.

            regards, tom lane

pgsql-novice by date:

Previous
From: ghaverla@freenet.edmonton.ab.ca
Date:
Subject: Re: Unable to install DBD module
Next
From: Neil Conway
Date:
Subject: Re: Unable to install DBD module