General Bug Report: enabling USE_(revised) SYSLOG breaks compile of src/backend/utils/misc/trace.c

Поиск
Список
Период
Сортировка
От Unprivileged user
Тема General Bug Report: enabling USE_(revised) SYSLOG breaks compile of src/backend/utils/misc/trace.c
Дата
Msg-id 199907221338.JAA62013@hub.org
обсуждение исходный текст
Список pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Jim Mercer
Your email address      : jim@reptiles.org

Category                : install: compile
Severity                : serious

Summary: enabling USE_(revised) SYSLOG breaks compile of src/backend/utils/misc/trace.c

System Configuration
--------------------
  Operating System   : FreeBSD 2,3

  PostgreSQL version : 6.5.1

  Compiler used      : gcc

Hardware:
---------
Pentium

Versions of other tools:
------------------------


--------------------------------------------------------------------------

Problem Description:
--------------------
the USE_SYSLOG define is in "config.h", which is not included when trace.c tries to include <syslog.h>


--------------------------------------------------------------------------

Test Case:
----------
enable USE_SYSLOG in include/config.h
compile

--------------------------------------------------------------------------

Solution:
---------
move the #ifdef/#include <syslog.h>/#endif
to below the #include local include files"
this needs to be done in:
src/backend/utils/misc/trace.c
src/backend/utils/error/elog.c


--------------------------------------------------------------------------


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Unprivileged user
Дата:
Сообщение: General Bug Report: enabling USE_SYSLOG breaks compile of src/backend/utils/misc/trace.c
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] General Bug Report: enabling USE_SYSLOG breaks compile of src/backend/utils/misc/trace.c