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: (view raw, whole thread or download thread mbox)
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>
#define sys_nerr _sys_nerr

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-2017 The PostgreSQL Global Development Group