Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

Next:From: devalDate: 2000-09-15 16:12:03
Subject: Re: Access import
Previous:From: ghaverlaDate: 2000-09-15 14:05:28
Subject: Re: Unable to install DBD module

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group