Re: Trouble Compiling Postgres 7.0.2 under Windows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver_Hall(at)scee(dot)net
Cc: pgsql-novice(at)hub(dot)org
Subject: Re: Trouble Compiling Postgres 7.0.2 under Windows
Date: 2000-09-15 14:18:45
Message-ID: 20160.969027525@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<Oliver_Hall(at)scee(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message deval 2000-09-15 16:12:03 Re: Access import
Previous Message ghaverla 2000-09-15 14:05:28 Re: Unable to install DBD module