Re: Trouble Compiling Postgres 7.0.2 under Windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trouble Compiling Postgres 7.0.2 under Windows
Дата
Msg-id 20160.969027525@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trouble Compiling Postgres 7.0.2 under Windows  (<Oliver_Hall@scee.net>)
Список 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 по дате отправления:

Предыдущее
От: ghaverla@freenet.edmonton.ab.ca
Дата:
Сообщение: Re: Unable to install DBD module
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Unable to install DBD module